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

前端 未结 8 1706
小蘑菇
小蘑菇 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: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:        
      102:      
      103:          
    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:      
      102:      
      103:          `
    

提交回复
热议问题