请任何一个帮助......

问题描述:

我在下面有网页配置..





i have web config below..


<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
    <connectionStrings>
    <remove name="connectionstr" />
    <add name="connectionstr" connectionString="Data Source=servername;Initial Catalog=dbname;Persist Security Info=True;User ID=userid;Password=Password; providerName="System.Data.SqlClient"/>
  </connectionStrings>
    <system.web>
    <!--<authentication mode="Windows"></authentication>-->
        <customErrors mode="Off"/>
        <compilation debug="true" targetFramework="4.0">
        </compilation>
        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web>

    <system.web>
    <authorization>
      <allow users="?" />
      <allow roles="admin" />
    </authorization>
    <roleManager enabled="true" />
    <authentication mode="Forms" />
        <anonymousIdentification enabled="true"/>
        <profile enabled="true">
            <properties>
                <add name="MyCart" serializeAs="Binary" type="cart.Cart" allowAnonymous="true"/>
            </properties>
        </profile>
    </system.web>

    <system.webServer>
        <httpErrors errorMode="Detailed"/>
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
</configuration>





当我上传到服务器时

i am获取与数据库相关的错误



SSE提供程序未找到连接字符串中指定的数据库文件。在配置的信任级别(低信任级别以下),SSE提供程序无法自动创建数据库文件。

正如错误消息所述找不到您在配置字符串中声明的数据库。



您可以使用SQL Server Management studio连接到数据库吗?
As the error message states it can't find the database that you have stated in your configuration string.

Can you connect to the database using SQL Server Management studio?

>

http: //www.bigresource.com/MS_SQL--cannot-find-the-database-file-specified-in-the-connection-string--jMCBLJaV.html [ ^ ]





http:/ /sqlserver.itags.org/q_sql-server_36952.html [ ^ ]