Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Config Elmah

Posted on 2013-12-24
2
Medium Priority
?
311 Views
Last Modified: 2014-01-20
Hi,

 I am using local IIS Express with visual studio 2012 now when

 I am running the application is working fine , now i have configured

  the Elmah to log the errors , here when i run the application is working fine

 but when i check the elmah

http://localhost:4551/Elmah.axd

I am getting following error

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication'
 beyond application level.
 This error can be caused by a virtual directory not being
configured as an application in IIS.


could you please guide me on this.
0
Comment
Question by:praveen1981
  • 2
2 Comments
 

Accepted Solution

by:
praveen1981 earned 0 total points
ID: 39737861
Hi,

I found the solution ,

The problem is under the

 <location path="elmah.axd">


the following was added

<profile defaultProvider="DefaultProfileProvider">
        <providers>
          <add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
        </providers>
      </profile>
     
which is not requried so , i commented it and tested

which is working fine.

           Thanks.
0
 

Author Closing Comment

by:praveen1981
ID: 39796141
working fine
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Integration Management Part 2

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question