Handler “aspNetCore” has a bad module “AspNetCoreModuleV2” in its module list

前端 未结 12 1555
遇见更好的自我
遇见更好的自我 2020-12-29 19:32

I used angular .net core 2.2 template to build application.In localhost working fine,When i host to IIS Im getting this error.Im using IIS 10 to host the application.

<
12条回答
  •  春和景丽
    2020-12-29 19:51

    There are a couple ways you can fix this:

    1. Install the latest .NET Core Runtime
    2. Inspect the applicationhost.config file used by your IIS. You should have the following entry in its appropriate locations:
    
        
            ...
            
                ...
                
            
        
        ...
        
            
                
                    ...
                    
                
            
        
    
    

    Just make sure you actually have the file for aspnetcorev2.dll in your IIS bin directory.

提交回复
热议问题