用户 'sa' 登录失败。
说明:执行当前Web请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。异常详细信息:System.Data.SqlCli...
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Data.SqlClient.SqlException: 用户 'sa' 登录失败。
源错误:
行 26: SqlConnection connection = new SqlConnection(ConnectionString.GetConnectionString());
行 27: SqlCommand command = new SqlCommand("SELECT ConfigID,SiteName,SiteUrl,CompanyName,Linkman,Phone,Mobile,Email,Postalcode,Address,SiteLogo,SiteTitle,MetaDescription,MetaKeywords,Copyright,SmtpServer,SmtpAccount,SmtpPassword,SmtpMailbox,SmtpPort,SmtpValidate,SmtpCode,DateFormat,MarkUnit,ShopStop,ShopStopWords,UseCache,CacheTime,LinkAllowApply,LinkLogoWidth,LinkLogoHeight,UploadType,MaxFileSize,ProductPageSize,BulletinSizeInIndex,NewProductSizeInIndex,HotProductSizeInIndex,CommendProductSizeInIndex,DiscountProductSizeInIndex,[Language],TemplateFolder,StatsToolName,StatsCode,StatsLoginUrl,DefaultHeadAD,StorageAlert,AliPaySettings,Settings,html,SCode,PhoneMessage,uKeyEnabled,UKeyCode,WatermarkText FROM Config WHERE\tConfigID =" + configID, connection);
行 28: connection.Open();
行 29: SqlDataReader reader = command.ExecuteReader();
行 30: if (reader.HasRows)
源文件: c:\Inetpub\wwwroot\B2C鐢靛瓙鍟嗗姟绯荤粺\B2C电子商务系统\App_Code\wqeshop\Utility\ConfigDB.cs 行: 28
堆栈跟踪:
[SqlException (0x80131904): 用户 'sa' 登录失败。]
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +435
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
wqeshop.Utility.ConfigDB.GetConfigDetails(Int32 configID) in c:\Inetpub\wwwroot\B2C鐢靛瓙鍟嗗姟绯荤粺\B2C电子商务系统\App_Code\wqeshop\Utility\ConfigDB.cs:28
wqeshop.Utility.ConfigDB.ValidateLicense(String url) in c:\Inetpub\wwwroot\B2C鐢靛瓙鍟嗗姟绯荤粺\B2C电子商务系统\App_Code\wqeshop\Utility\ConfigDB.cs:422
WebUI.Global.Application_EndRequest(Object sender, EventArgs e) in c:\Inetpub\wwwroot\B2C鐢靛瓙鍟嗗姟绯荤粺\B2C电子商务系统\App_Code\WebUI\Global.cs:81
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +157
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +65 展开
异常详细信息: System.Data.SqlClient.SqlException: 用户 'sa' 登录失败。
源错误:
行 26: SqlConnection connection = new SqlConnection(ConnectionString.GetConnectionString());
行 27: SqlCommand command = new SqlCommand("SELECT ConfigID,SiteName,SiteUrl,CompanyName,Linkman,Phone,Mobile,Email,Postalcode,Address,SiteLogo,SiteTitle,MetaDescription,MetaKeywords,Copyright,SmtpServer,SmtpAccount,SmtpPassword,SmtpMailbox,SmtpPort,SmtpValidate,SmtpCode,DateFormat,MarkUnit,ShopStop,ShopStopWords,UseCache,CacheTime,LinkAllowApply,LinkLogoWidth,LinkLogoHeight,UploadType,MaxFileSize,ProductPageSize,BulletinSizeInIndex,NewProductSizeInIndex,HotProductSizeInIndex,CommendProductSizeInIndex,DiscountProductSizeInIndex,[Language],TemplateFolder,StatsToolName,StatsCode,StatsLoginUrl,DefaultHeadAD,StorageAlert,AliPaySettings,Settings,html,SCode,PhoneMessage,uKeyEnabled,UKeyCode,WatermarkText FROM Config WHERE\tConfigID =" + configID, connection);
行 28: connection.Open();
行 29: SqlDataReader reader = command.ExecuteReader();
行 30: if (reader.HasRows)
源文件: c:\Inetpub\wwwroot\B2C鐢靛瓙鍟嗗姟绯荤粺\B2C电子商务系统\App_Code\wqeshop\Utility\ConfigDB.cs 行: 28
堆栈跟踪:
[SqlException (0x80131904): 用户 'sa' 登录失败。]
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +435
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
wqeshop.Utility.ConfigDB.GetConfigDetails(Int32 configID) in c:\Inetpub\wwwroot\B2C鐢靛瓙鍟嗗姟绯荤粺\B2C电子商务系统\App_Code\wqeshop\Utility\ConfigDB.cs:28
wqeshop.Utility.ConfigDB.ValidateLicense(String url) in c:\Inetpub\wwwroot\B2C鐢靛瓙鍟嗗姟绯荤粺\B2C电子商务系统\App_Code\wqeshop\Utility\ConfigDB.cs:422
WebUI.Global.Application_EndRequest(Object sender, EventArgs e) in c:\Inetpub\wwwroot\B2C鐢靛瓙鍟嗗姟绯荤粺\B2C电子商务系统\App_Code\WebUI\Global.cs:81
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +157
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +65 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询