本文介绍了.mdf文件显示托管错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网站上使用Asp.net 4.0。我添加了.mdf文件来存储网站的一些数据,定义的连接字符串是

I am using Asp.net 4.0 In a website. I have added .mdf file to store some data of website the defined connection string is as

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





然后它抛出一个SQL连接的错误,但它在本地工作正常。

因此,我该怎么做才能解决这个问题。您的帮助将会很明显。



when I am deploying on the server then it is throwing an Error of sql connection but it is working fine at local.
Hence, what should I do to resolve that. Your assistance will be appreciable.

推荐答案



这篇关于.mdf文件显示托管错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 14:09