Re: When I browse http://localhost:8004/elmah.axd, it generates 404 error.

377 views
Skip to first unread message

James_2JS

unread,
Jun 13, 2012, 10:58:47 AM6/13/12
to el...@googlegroups.com
Can you enable Failed Request Tracing in IIS and see what is going on there?



On Wednesday, June 13, 2012 10:08:02 AM UTC+1, Towhid wrote:
Hi,
When I browse http://localhost:8004/elmah.axd it shows the errors that occurred in the application, but it also generates 404 error. How I will stop this 404 error?

The details of error is:
<error errorId="deb078c8-d6a5-497a-b9b3-3787da5015fe" 
  application="/" host="UMR4" 
  type="System.Web.HttpException" message="File does not exist." 
 source="System.Web" detail="System.Web.HttpException (0x80004005): File does not exist.&#xD;&#xA;  
 at System.Web.StaticFileHandler.GetFileInfo(String virtualPathWithPathInfo, String physicalPath, HttpResponse response)&#xD;&#xA;   at  System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context, String overrideVirtualPath)&#xD;&#xA;   at  System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)&#xD;&#xA;   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()&#xD;&#xA;   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)" user="2" time="2012-06-13T08:43:04.6200168Z" statusCode="404">

I'm storing error files on a folder named ErrorLogs which is on the root directory of the application.

My webconfig file is like:

............
<configSections>
    <sectionGroup name="elmah">
      <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/>
      <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
      <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
      <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/>
    </sectionGroup>
  </configSections>

<httpHandlers>
      <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
</httpHandlers>
<httpModules>
      <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>
</httpModules>

..........

    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <add name="Elmah.ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
    </modules>

    <handlers>
      <add name="Elmah" path="elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
    </handlers>

  <elmah>
    <security allowRemoteAccess="0" />
    <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/ErrorLogs" />
  </elmah>

Towhid

unread,
Jun 13, 2012, 11:08:00 AM6/13/12
to el...@googlegroups.com
I'm running the application on development server. Do I need to host my application on IIS and then I enable Failed Request Tracing?

James_2JS

unread,
Jun 13, 2012, 11:24:38 AM6/13/12
to el...@googlegroups.com
Sorry... are you running "Cassini" from Visual Studio?

Towhid

unread,
Jun 14, 2012, 4:32:41 AM6/14/12
to el...@googlegroups.com
I'm using default development web server that is delivered with VS 2010.

Towhid

unread,
Jun 15, 2012, 3:11:35 AM6/15/12
to el...@googlegroups.com
Found the error. Almost all modern browser request for favicon.ico. That's why it was generating 404 error.
Reply all
Reply to author
Forward
0 new messages