iis7的连接字符串 [英] Connection string for iis7

查看:58
本文介绍了iis7的连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为iis7配置连接字符串



这里是我在vs的连接字符串



connectionString =数据源= .\SQLEXPRESS;集成安全性= SSPI; AttachDBFilename = | DataDirectory | \ aspnetdb.mdf;用户实例= trueproviderName =System.Data.SqlClient/>



i有另一个连接字符串



< add name =Connectionstringconnectionstring =Data Source =(LocalDB)\ v11.0; AttachDbFilename = C:\Desktop \ MyPAP \ App_Data \ blah.mdf; Integrated Security = True; Connect Timeout = 30providername =System.Data.SqlClient>

解决方案

Configure connectionstring for iis7

here is my connectionstring in vs

connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />

i have another connection string

<add name="Connectionstring" connectionstring="Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Desktop\MyAPP\App_Data\blah.mdf;Integrated Security=True;Connect Timeout=30" providername="System.Data.SqlClient">

解决方案

这篇关于iis7的连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆