ASP.NET 5 project hosting on IIS -


i want host asp.net 5 project uses mvc 6 , entity framework 7 on amazon free micro instance. can't find step-by-step manual on how host asp.net 5 projects on iis, materials mention possible without guides. basically, i'm deploying local folder , copying newly created site, nothing working. unfortunately, can't use azure has 1 month free trial, not year.

i'm using visual studio 2015 preview create asp.net 5 projects. don't think that's difficult deploy on iis now. first publish website publishing file system in vs 2015 preview, copy published folder server, create application in iis , set application folder wwwroot folder (rather root folder), that's all. aware, check if "microsoft.aspnet.server.iis" exists in website project.json before publishing it.

edit: there should web.config in wwwroot folder, content of web.config may (with precompile option when publishing):

<?xml version="1.0" encoding="utf-8"?> <configuration>   <appsettings>     <add key="kpm-package-path" value="..\approot\packages" />     <add key="bootstrapper-version" value="1.0.0-beta1" />     <add key="kre-package-path" value="..\approot\packages" />     <add key="kre-version" value="1.0.0-beta1" />     <add key="kre-clr" value="coreclr" />     <add key="kre-app-base" value="..\approot\packages\rvc.popupsite\1.0.0\root" />   </appsettings> </configuration> 

or (without precompile option):

<?xml version="1.0" encoding="utf-8"?> <configuration>   <appsettings>     <add key="kpm-package-path" value="..\approot\packages" />     <add key="bootstrapper-version" value="1.0.0-beta1" />     <add key="kre-package-path" value="..\approot\packages" />     <add key="kre-version" value="1.0.0-beta1" />     <add key="kre-clr" value="coreclr" />     <add key="kre-app-base" value="..\approot\src\rvc.popupsite" />   </appsettings> </configuration> 

please notice value of kre-app-base. value empty string after publishing in visual studio.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -