IIS 8.0 ASP.NET and Error 500.19

后端 未结 9 1861
故里飘歌
故里飘歌 2020-12-08 06:58

I can\'t seem to get any ASP.NET sites to run under IIS8 on Windows 8. Under IIS Express they are fine, but I\'ve:

  1. Installed IIS8
  2. Installed ASP.NET 3
相关标签:
9条回答
  • 2020-12-08 07:03

    If you have a new machine / formatted your machine, while installing IIS, make sure that you ticked installing ASP.Net (appropriate version).

    Hint : Turn Windows Feature ON/OFF --> IIS --> Application Development Features --> ASP.Net 3.5 / 4.6

    Recently I have upgraded to Windows 10 (IIS 10) & as I had forgot to install ASP.Net, I was facing this issue.

    Other troubleshooting tips are:

    2) Make sure you have given read permission to IIS_IUSRS group on your application folder.

    3) You may check if your Application Pool has correct target .Net framework selected.

    4) Make sure your Web.config is proper (well defined XML) and has no errors. Thanks.

    0 讨论(0)
  • 2020-12-08 07:05
    1. Click "Start button"
    2. in the search box, enter "Turn windows features on or off"
    3. in the features window, Click: "Internet Information Services"
    4. Click: "World Wide Web Services"
    5. Click: "Application Development Features"
    6. Check (enable) the features. I checked all but not CGI.

    i'm using w10 technical preview

    0 讨论(0)
  • 2020-12-08 07:06

    I had same issue, this is because the app pool doesn't have rights to the web site directory or web.config. Try to grant rights for "IIS_IUSRS" with : Read,Execute,List.

    0 讨论(0)
  • 2020-12-08 07:10

    I had the same issue when moving a web application from IIS 7 to 8, and I solved it by installing the URL Rewrite module, which I had completely forgot. So check that you have the correct modules etc. installed on your new server/IIS.

    You can install this module with WPI (Web Platform Installer) also.

    0 讨论(0)
  • 2020-12-08 07:18

    Look in the web.config for invalid config sections.

    In the IIS manager I couldn't open any of the features such as Module etc.

    In my web.config I had an invalid config section from a chart object that I used before:

    <system.webServer>
        <httpHandlers>
            <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
        </httpHandlers>
    </system.webServer>
    

    After I removed it everything worked.

    0 讨论(0)
  • 2020-12-08 07:18

    Finally sorted mine! Jesus. I was using git hub for my project and downloading it to slightly different locations on each PC.

    When I tried to unc to the config file the error mentioned I noticed it was actually the path the other pc uses. Couldn't fine this listed in the project at all so just right clicked the project file in VS and unloaded it, the loaded it again and it now works.

    0 讨论(0)
提交回复
热议问题