Access denied evaluating ANTS profiler

I just installed ANTS profiler and when I try to profile my MVC application I get this:

Access is denied.

Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.

Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.

The application runs well without the profiler.
I'm using IIS Express



  • Jessica RJessica R Posts: 1,159 Rose Gold 4
    Thanks for your post and sorry to hear you're running into an issue!

    From a quick search, it looks like this error can happen if Windows Authentication is not enabled -

    Can I just check- are you profiling one of the listed sites from the provided drop-down menu, or do you use "Profile an application not shown in this list"?

    If the former, can you please open the applicationhost.config file in %userprofile%\Documents\IISExpress\config in a text editor and make sure windowsAuthentication is enabled?

    If the latter, ANTS creates a temporary config file to profile your site. You should be able to make it enable Windows Authentication by default by enabling it from the template applicationhost.config file in C:\Program Files\IIS Express\AppServer.

    Can you please give this a try?

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?

Sign In or Register to comment.