ASP.NET Core deployment to IIS error: Development environment should not be enabled in deployed applications

后端 未结 8 2217
一个人的身影
一个人的身影 2020-12-02 20:05

I followed this article to deploy my ASP.NET MVC Core 1.0 app to local IIS on my Windows 10 that is using IIS 10. The application deployed successfully and it opens the home

8条回答
  •  天命终不由人
    2020-12-02 20:46

    First, check the value of ASPNETCORE_ENVIRONMENT variable. You will have to set this environment variable to "Production" (or other environment than Development)

    Otherwise, you can update web.config like this-

    
      
      
        
          
        
        
          
            
          
        
      
    
    

    Refer this post for more details.

提交回复
热议问题