Help hosting ASP.NET site on IIS RRS feed

  • Question

  • Hi there, I am new to a lot of this and I have created a website using asp.net, and when I try to host it using IIS, I get this error

    In the config source, it just says 

    -1: 0:

    which doesnt really give me any indication of where the error is


    HTTP Error 500.19 - Internal Server Error

    The requested page cannot be accessed because the related configuration data for the page is invalid.

    Detailed Error Information:

    Module    IIS Web Core
    Notification    Unknown
    Handler    Not yet determined
    Error Code    0x80070005
    Config Error    Cannot read configuration file due to insufficient permissions
    Config File    \\?\C:\Users\breon\Documents\www\avitools\web.config
    Requested URL
    Physical Path    
    Logon Method    Not yet determined
    Logon User

       Not yet determined

    Thank you

    Friday, April 3, 2020 1:41 AM

All replies

  • Hi,
    the account under which run the w3wp.exe (IIS) must have permission to web.config.

    Best Regards / Viele Grüße
    Peter Fleischer (former MVP for Developer Technologies)
    Homepage, Tipps, Tricks

    Friday, April 3, 2020 5:48 AM
  • \\?\C:\Users\breon\Documents\www\avitools\web.config

    You need to make a folder off of the <C> call it Projects and create you Visual Stuido projects in that folder.

    By doing that, it should not have any permission issues when you deploy solution to local IIS.

    Friday, April 3, 2020 8:05 AM