Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Inheritance disaster! DNN 5.6.1 in root, .net 2 app in subfolderInheritance disaster! DNN 5.6.1 in root, .net 2 app in subfolder
Previous
 
Next
New Post
2/15/2011 3:31 AM
 
Hello,
Any thoughts on how to get an old app to work?  Before upgrading to DNN 5.6.1 and migrating to IIS7/Win2008, the 2 apps would work together.
I tried the <location path="." inheritInChildApplications="false"> trick but it keeps giving me 500 errors.
(Server Error - 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.) -- no more info than that.

I also created a virtual directory and downgraded the ASP.NET version to 3.5 (lowest it can go, but it worked fine before on that version).  Still no luck.

If I put in location tag, I get a non-specific 500 error.  If I don't put it in, DNN site works OK but the application subdirectory shoots off errors related to DNN web.config.

At a loss for what to do.  Anyone!?!!












Ref: http://runtingsproper.blogspot.com/2010/04/solved-breaking-parent-webconfig.html

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



I want to use Razor Scripts so that's why I upgraded to .NET4.


 
New Post
2/15/2011 3:55 AM
 
Well after HOURS of trying, I finally figured it out.

<location path="." inheritInChildApplications="false"> goes right above <system.webServer>

I tried to add comments like <!-- REMOVE ME PRIOR TO UPGRADE -->  on top and below the modifications, and believe it or not, the COMMENTS are the only thing I changed.  Very finicky!  If you put comments in, you get the errors.. so strange

Of course I closed the </location> tag below </system.web>

 
New Post
2/15/2011 10:41 AM
 
If you are also wrapping the <system.web> section with a <location . . . > element, please check the Event Viewer (when logged in as host) and also the web.config bindingRedirect nodes for System.Web.Extensions and System.Web.Extensions.Design assemblies to make sure that the automatic modifications which are made to web.config when ASP.Net 4.0 is detected are NOT being made over and over again with resultant growth in the length of web.config, an application restart, and error logged with each attempt.

This issue has been reported several times in cases where a <location . . > element wraps the <system.web> section.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
2/16/2011 1:19 AM
 
Thanks William --
I am getting lots of these:
" UpgradeNet: Upgraded Site to .NET 4.0"

Also gettings tons of scheduler exceptions now.. as in pages and pages.
N/A - Reflection Permission required is one example -- will have host check permissions.

Is there ANY solution to keep the web.config from growing?  It's triple its size over less than 24 hours.

Thanks!
 
New Post
2/16/2011 2:33 AM
 
http://www.dotnetnuke.com/tabid/795/forumid/107/postid/406868/scope/posts/default.aspx

I also checked and my httpRuntime tag DOES contain  requestValidationMode="2.0"  -- so that's not the issue

http://www.dotnetnuke.com/tabid/795/forumid/200/postid/405377/scope/posts/default.aspx -- also, all 3 "upgrades" to the web.config for asp.net 4 are correctly placed in my web.config.

Maybe I should downgrade to .net 3.5?  Or is it possible to make web.config read-only?  Would this mess anything up as long as I'm not installing modules or upgrading the site?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Inheritance disaster! DNN 5.6.1 in root, .net 2 app in subfolderInheritance disaster! DNN 5.6.1 in root, .net 2 app in subfolder


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out