Virtual directory inside of ASP.NET Core app in IIS

后端 未结 5 1064
终归单人心
终归单人心 2020-12-01 09:26

We have an application using ASP.NET Core 1.0 RC1 and hosted on IIS. It works fine. Now we have static content, that is available on a file share and should be accessible fr

5条回答
  •  鱼传尺愫
    2020-12-01 10:09

    I encountered this problem today, and finally managed to fix it. The trick (for me, probably not for everyone) is making sure the aspNetCore handler is disabled in the sub-application and enabled in the main (ASP.NET Core) application.

    My ASP.NET Core app has a basic Web.config

    
      
        
            
        
        
      
    
    

    and the application added as a sub-application in IIS has

    
      
      
          
              
           
      
    
    

提交回复
热议问题