請幫我這個! 我已經把我的網站上somee.com,他們給這個連接字符串託管網站後連接字符串問題
Connection string: workstation id=GWAPDataBase.mssql.somee.com;packet size=4096;user id=xxxx;pwd=xxxxx;data source=GWAPDataBase.mssql.somee.com;persist security info=False;initial catalog=GWAPDataBase
和我的自動生成的連接字符串時,我是本地主機上是
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
<add name="GWAP_Entities" connectionString="metadata=res://*/App_Code.GWAPModel.csdl|res://*/App_Code.GWAPModel.ssdl|res://*/App_Code.GWAPModel.msl;provider=System.Data.SqlClient;provider connection string="data source=.\SQLEXPRESS;attachdbfilename=|DataDirectory|\aspnetdb.mdf;integrated security=True;user instance=True;multipleactiveresultsets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
我試圖修改它,但我得到一個錯誤,說
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
Source Error:
Line 19: #region Constructors Line 20: Line 21: public GWAP_Entities() Line 22: : base(ConnectionString, ContainerName) Line 23: {
請幫我怎麼修改連接字符串?
您可能不希望放棄數據庫框的域名,用戶名和密碼。只是說。 –
僅供參考:請確保這些不是您的連接字符串的實際用戶名和密碼。 –
更改密碼_right now_ – SLaks