Solved

Config Elmah

Posted on 2013-12-24
2
281 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now