使用了LocalDB的ASP.NET程序在部署到IIS时会报错。修改步骤如下:
1)setProfileEnvironment需设置为true
This requires editing applicationHost.config file which is usually located in C:\Windows\System32\inetsrv\config.
Following the instructions from KB 2547655 we should enable both flags for Application Pool ASP.NET v4.0, like this:
<add name="ASP.NET v4.0" autoStart="true" managedRuntimeVersion="v4.0" managedPipelineMode="Integrated">
<processModel identityType="ApplicationPoolIdentity" loadUserProfile="true" setProfileEnvironment="true" />
</add>
2)Run IIS as our Windows user
详细信息请参考: