天天看點

windows2008+iis7.5+mvc5+mssqllocaldb

iis7.5 enable url

https://devio.wordpress.com/2014/12/05/deploying-asp-net-mvc-5-on-windows-server-2008/

<system.webServer>

    <modules  runAllManagedModulesForAllRequests="true">

      <remove name="FormsAuthentication" />

      <remove name="UrlRoutingModule-4.0" />

      <add name="UrlRoutingModule-4.0"

          type="System.Web.Routing.UrlRoutingModule" 

          preCondition="" />

      <remove name="BundleModule" />

      <add name="BundleModule" 

          type="System.Web.Optimization.BundleModule" />

    </modules>

iis7.5 register .net 4.5 app pool

http://stackoverflow.com/questions/21623654/issue-deploying-asp-net-mvc-5-to-iis-server

c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -ir

install mssql local db

http://www.cnblogs.com/hudianxing/p/5052726.html

https://download.microsoft.com/download/5/7/4/574AAAA3-FA70-40B9-9DCE-17450FC05905/CHS/x64/SqlLocalDB.msi

run mssql local db

http://blog.sina.com.cn/s/blog_3f2ef1180101587x.html

sqllocaldb start

setting mssql local db to app pool

https://blogs.msdn.microsoft.com/gaurav/2013/12/21/deployment-of-sql-express-localdb-on-iis/

loadUserProfile="true" 

繼續閱讀