Forum Themes:
Welcome !

 Trouble with forum inside another Web application

Author Message
Samuel

  • Total Posts : 11786
  • Reward points : 168350
  • Joined: May 23 '01
  • Status: offline
Trouble with forum inside another Web application Fri. Feb 27, '09 12:23 PM (permalink)
When you have a site with its web.config file and installed the forum under the site root, sometimes you will run into weird problems running the forum. For example, the WYSIWYG (or Rich Text editor) will run into problems like

localization_en_US is not defined

MsgEditor is undefined


The reason for these weird errors is mostly due to web.config inheritance - the forum inherits the settings from your own web.config file which causes conflicts with its own settings.

Also, you may experience issue like registration failures and log in failures that present as "verification failure" or with WinXP the complete inability to enter a unique user name or password.

The solution: Break the inheritance

In your site web.config, add the following:

<location path="." inheritInChildApplications="false">      
    <system.web>      
    <!-- various settings -->
    </system.web>  
    <system.webServer>
     <!-- various settings -->
   </system.webServer>
 </location>


This should prevent inheritance from happening between the site and the forum.
<message edited by Samuel on Fri. Feb 11, '11 11:45 AM>
ASPPlayground.NET
~ see our Version 4 plans here

 
#1
    Samuel

    • Total Posts : 11786
    • Reward points : 168350
    • Joined: May 23 '01
    • Status: offline
    Re:Trouble with forum inside another Web application Mon. Jul 19, '10 11:40 AM (permalink)
    If the issue happens on a different level than system.web e.g. if it shows an error like the following:
     
    Section or group name system.web.extensions is already defined
     
    You will need to follow the instruction Microsoft gives in this article as this is a bug or limitation of the .NET environment (see the second response):
     
    http://connect.microsoft....ns-inheritance-problem
    <message edited by Samuel on Mon. Jul 19, '10 11:54 AM>
    ASPPlayground.NET
    ~ see our Version 4 plans here

     
    #2
      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9