ASP.NET 5 project hosting on IIS

后端 未结 5 1442
一整个雨季
一整个雨季 2020-11-30 06:00

I want to host my ASP.NET 5 project which uses MVC 6 and Entity Framework 7 on Amazon free micro instance. I can\'t find any step-by-step manual on how to host ASP.NET 5 pro

5条回答
  •  [愿得一人]
    2020-11-30 06:22

    I'm using Visual Studio 2015 Preview to create ASP.NET 5 projects. I don't think that's difficult to deploy on IIS now. First publish your website by publishing it as file system in VS 2015 preview, then copy the published folder to your server, create an application in IIS and set the application folder to the wwwroot folder (rather than the root folder), that's all. Be aware, check if "Microsoft.AspNet.Server.IIS" exists in your website project.json before publishing it.

    Edit: there should be a web.config in wwwroot folder, the content of web.config may be like this (with precompile option when publishing):

    
    
      
        
        
        
        
        
        
      
    
    

    or like this (without precompile option):

    
    
      
        
        
        
        
        
        
      
    
    

    Please notice the value of kre-app-base. Occasionally its value is empty string after publishing in Visual Studio.

提交回复
热议问题