Last post Jan 30, 2006 10:20 PM by paul.meyer
Jan 29, 2006 10:40 AM|sjurmr|LINK
I'm having trouble placing dotnetnuke (3.2) in the root folder of my site. It seems dotnetnuke steals the sessions (or whatever happens, I don't know) for all other applications. I get the dreaded yellow-screen of death with errors
"Configuration Error" pointing to the dotnetnuke web.config @ this line:
<add name="UrlRewrite" type="DotNetNuke.HttpModules.UrlRewriteModule, DotNetNuke.HttpModules.UrlRewrite" />
Is there a way to avoid this except putting the dotnetnuke-install in a subfolder?
Jan 30, 2006 10:20 PM|paul.meyer|LINK
The problem is that your application is in a subfolder that inherits some settings from the DotNetNuke web.config when DotNetNuke is in the root.
Since the HttpModule and the HttpHandler section are inherited from the root application, any dlls that they need have to be in your sub-folder application as well.
So you have to copy the DotNetNuke HttpModule and HttpHandler dlls from the DotNetNuke bin folder to your applications bin folder. The dlls that need to be copied are: DotNetNuke.HttpModules.Authentication.dll, DotNetNuke.HttpModules.DNNMembership.dll,
DotNetNuke.HttpModules.Exception.dll, DotNetNuke.HttpModules.Personalization.dll, DotNetNuke.HttpModules.UrlRewrite.dll, DotNetNuke.HttpModules.UsersOnline.dll, FreeTextBox.dll, and MemberRole.dll
Then you have to edit your application's web.config to unload the HttpModules and HttpHandlers. You also need to add back any HttpModules or HttpHandlers you want.
For example, in your applications web.config, you will want to had a HttpModules section like the following:
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
The <clear /> tag unloads any httpModules from the root applications web.config. The Session httpModule is added back in the example above so that ASP.NET sessions can be used.
For HttpHandlers you can add an empty section like this:
This should work for DotNetNuke 3.2 running on ASP.NET 1.1. I haven't tried this on ASP.NET 2.0.