Search code examples
iis-7dotnetnukedotnetnuke-7

DotNetNuke - First request returns 404


I am having an issue with DotNetNuke platform that I cannot understand for the life of me... Google and SO searches have been no help.

The very first time any user tries to hit the site, regardless of the URL they are requesting, they are redirected to the URL below, and given the 404 error shown below. After that initial 404, if the user requests that exact same URL, everything works perfectly for that user going forward. They are redirected to the correct login page and everything works correctly from that point forward.

Does anyone know why this would only happen on the very first request to the site for each user? I have a Development, Test and Production environments set up, and the issue is consistent across all environments.

Requested URL: http://intranet.domain.com/page

Redirected URL: http://intranet.domain.com/Login.aspx?ReturnUrl=/DesktopModules/AuthenticationServices/ActiveDirectory/WindowsSignin.aspx

Server Error in '/' Application.

The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Login.aspx

  • IIS: v7
  • DNN: v7.02.01
  • Default DNN authentication is disabled and Active Directory Authentication module is enabled. (v5.0.6)

Please let me know if there is any other configuration information I can provide.


Solution

  • I finally found the answer over two years later...

    The problem was solved by commenting out "add name="Authentication" ..." line in web.config. This disabled autologin feature completely.

    http://www.dnnsoftware.com/forums/threadid/459907/scope/posts/site-redirecting-to-desktopmodules-authenticationservices-activedirectory-windowssigninaspx