Using LocalDB with Full IIS

来源:互联网 发布:centos重启vnc服务 编辑:程序博客网 时间:2024/05/29 07:34

使用了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

详细信息请参考:

1)http://blogs.msdn.com/b/sqlexpress/archive/2011/12/09/using-localdb-with-full-iis-part-1-user-profile.aspx

2)http://blogs.msdn.com/b/sqlexpress/archive/2011/12/09/using-localdb-with-full-iis-part-2-instance-ownership.aspx


0 0
原创粉丝点击