ASP.NET IIS Web.config [Internal Server Error]

前端 未结 8 1631
小蘑菇
小蘑菇 2020-12-24 05:55

I changed PC / Windows (XP -> 7) so IIS (6 -> 7,5) and trying to move my website

But I can\'t run my site from this server . . . error :

相关标签:
8条回答
  • 2020-12-24 06:14

    I had a problem with runAllManagedModulesForAllRequests, code 0x80070021 and http error 500.19 and managed to solve it

    With command prompt launched as Admnistrator, go to : C:\Windows\Microsoft.NET\Framework64\v4.0.30319>

    execute

    aspnet_regiis -i

    bingo!

    0 讨论(0)
  • 2020-12-24 06:15

    I had the same problem. Don't remember where I found it on the web, but here is what I did:

    Click "Start button"

    in the search box, enter "Turn windows features on or off"

    in the features window, Click: "Internet Information Services"

    Click: "World Wide Web Services"

    Click: "Application Development Features"

    Check (enable) the features. I checked all but CGI.

    IIS - this configuration section cannot be used at this path (configuration locking?)

    0 讨论(0)
  • 2020-12-24 06:18

    I experienced the same issue, and found out that the applicationdeployed was of .NET version 3.5, but the Application pool was using .NET 2.0. That caused the problem you described above. Hope it helps someone.

    My error:

    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 BeginRequest 
    Handler Not yet determined 
    Error Code 0x80070021 
    
    Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".  
    Config File \\?\C:\inetpub\MyService\web.config 
    Requested URL http://localhost:80/MyService.svc 
    Physical Path C:\inetpub\DeployService\DeployService.svc 
    Logon Method Not yet determined 
    Logon User Not yet determined 
     Config Source
    101:        </modules>
      102:      <handlers>
      103:          <remove name="WebServiceHandlerFactory-Integrated"/>
    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 BeginRequest 
    Handler Not yet determined 
    Error Code 0x80070021 
    Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".  
    
    Config File \\?\C:\inetpub\DeployService\web.config 
    Requested URL http://localhost:80/DeployService.svc 
    Physical Path C:\inetpub\DeployService\DeployService.svc 
    Logon Method Not yet determined 
    Logon User Not yet determined 
     Config Source
      101:      </modules>
      102:      <handlers>
      103:          <remove name="WebServiceHandlerFactory-Integrated"/>`
    
    0 讨论(0)
  • 2020-12-24 06:19

    Check this in the web.config and change overrideModeDefault from Deny to Allow.

    <configSections>
      <sectionGroup name="system.webServer">
        <section name="handlers" overrideModeDefault="Deny" /> 
        <section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />
    

    You can also manage sections on web server level in your IIS management console from "Feature Delegation".

    0 讨论(0)
  • 2020-12-24 06:20

    If you have python, you can use a package called iis_bridge that solves the problem. To install:

    pip install iis_bridge
    

    then in the python console:

    import iis_bridge as iis
    iis.install()
    
    0 讨论(0)
  • 2020-12-24 06:22

    I had the same problem.

    Solution:

    1. Click the right button in your site folder in "iis"
    2. "Convert to Application".
    0 讨论(0)
提交回复
热议问题