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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 7.4.1 IIS exception for 404 pagesDNN 7.4.1 IIS exception for 404 pages
Previous
 
Next
New Post
10/1/2015 4:12 AM
 

I've rebuild an old website with new DNN 7.4.1 version. Some old URLs are missing on the new website because now url provider use friendly URLs

Looking at IIS I can find a lot of errors about this. Opening one of these URLs in my web browser I can see the standard 404 IIS page and not the setted 404 DNN page and the exception is not replicated on IIS.

Thanks for any help!

Below you can find one of these exceptions:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 10/1/2015 9:45:53 AM
Event time (UTC): 10/1/2015 7:45:53 AM
Event ID: 422dae176bb647deb9643c5286ffbb66
Event sequence: 348
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/12/ROOT-3-130881587133254475
    Trust level: Full
    Application Virtual Path: /
    Application Path: C:\inetpub\DNN741\
    Machine name: WEB002
 
Process information:
    Process ID: 6004
    Process name: w3wp.exe
    Account name: IIS APPPOOL\DNN741
 
Exception information:
    Exception type: HttpUnhandledException
    Exception message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.errorpage_aspx.ProcessRequest(HttpContext context)
   at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)

Server cannot set status after HTTP headers have been sent.
   at System.Web.HttpResponse.set_StatusCode(Int32 value)
   at DotNetNuke.Services.Exceptions.ErrorPage.ManageError(String status)
   at DotNetNuke.Services.Exceptions.ErrorPage. (EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 
 
Request information:
    Request URL: http://www.mywebsite.com/Default.aspx?TabId=371&myweb=View&ProductID=211
    Request path: /Default.aspx
    User host address: 223.243.93.170
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: IIS APPPOOL\DNN741
 
Thread information:
    Thread ID: 21
    Thread account name: IIS APPPOOL\DNN741
    Is impersonating: False
    Stack trace:    at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.errorpage_aspx.ProcessRequest(HttpContext context)
   at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
 
 
Custom event details:
 
New Post
10/5/2015 5:36 PM
 

that's actually IIS's server exception issue i.e. the 500-100 one. Looking in it's stack trace you can see the following:

Server cannot set status after HTTP headers have been sent.
   at System.Web.HttpResponse.set_StatusCode(Int32 value)
   at DotNetNuke.Services.Exceptions.ErrorPage.ManageError(String status)

This indicates that when DNN tries to redirect to it's custom 404 page it fails as there is already some content in the page. This 500 exception is thrown off to IIS hence why you see that. You'll have to check and see what content it is that is causing that - in similar cases in the past I've  seen this when 3rd party modules did a response.write of exceptions - this text in the buffer then means a 303 (response.redirect) cannot occur and causes a similar exception.

Checking the requests in a proxy such as Fiddler is a good first option - however it can be problematic as the issue occurs on the server end, often the best way to debug this is via vs.net (or else get a dump of w3wp.exe and review it with a tool such as Windbg)


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/5/2015 10:15 PM
 

Cathal, thankyou for your reply but the problem is that it is no possible to debug!

I've a lot of these exceptions on a lot of 404 old urls, but if I try to copy and paste one of them in my web browser the exception is not fired and nothing strange is logged on my event log, the only thing I can see strange is that I can see the 404 iis page and not the 404 Dnn page

 

 

 
New Post
10/29/2015 3:35 AM
 

This exceptions are logged also by dotnetnuke.log4net, below you can see one of them, hope this can help to understand how to fix it!


2015-10-29 03:02:35,499 [WEB][Thread:20][FATAL] DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication - System.Web.HttpException (0x80004005): Error executing child request for /ErrorPage.aspx. ---> System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Web.HttpException (0x80004005): Server cannot set status after HTTP headers have been sent.
   at System.Web.HttpResponse.set_StatusCode(Int32 value)
   at DotNetNuke.Services.Exceptions.ErrorPage.ManageError(String status)
   at DotNetNuke.Services.Exceptions.ErrorPage. (EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.errorpage_aspx.ProcessRequest(HttpContext context)
   at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
   at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
   at System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm)
   at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
   at System.Web.HttpServerUtility.Transfer(String path)
   at Satrabel.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 7.4.1 IIS exception for 404 pagesDNN 7.4.1 IIS exception for 404 pages


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