Phó giám đốc công an thành phố hải phòng

Cannot open database "WebAppHpNew" requested by the login.

Bạn đang xem: Phó giám đốc công an thành phố hải phòng

The login failed.Login failed for user "webapphp".

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.

Xem thêm: 8 Cách Sửa Lỗi Không Xóa Được Ảnh Trong Thẻ Nhớ Máy Ảnh ? Help: Thẻ Nhớ Ko Xoá Được + Fomat Được Dữ Liệu

Exception Details: System.Data.SqlClient.SqlException: Cannot open database "WebAppHpNew" requested by the login. The login failed.Login failed for user "webapphp". Source Error:
Line 435:string whereClause = "(BiXoa = 0 Or BiXoa Is Null)";Line 436:whereClause += " And WebsiteId in (select WebsiteId from Host where Domainname = N'" + request.Headers<"host">.ToString() + "')";Line 437:WebApp.Entities.TList listWebsite = websiteService.GetPaged(whereClause, string.Empty, 0, 0, out intTotal);Line 438:if (listWebsite.Count != 1)Line 439:{
Source File:
e:\Projects\WebAppHp\App_Code\Util.cs Line: 437 Stack Trace:
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager) +1431 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +1085 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) +70 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +964 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +109 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +1529 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +156 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +258 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +312 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +202 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +413 System.Data.SqlClient.SqlConnection.Open() +128 Microsoft.Practices.EnterpriseLibrary.Data.Database.GetNewOpenConnection() +223 Microsoft.Practices.EnterpriseLibrary.Data.Database.GetWrappedConnection() +35 Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteReader(DbCommand command) +54 WebApp.Data.Utility.ExecuteReader(Database database, DbCommand dbCommand) +156 WebApp.Data.SqlClient.SqlWebsiteProviderBase.GetPaged(TransactionManager transactionManager, String whereClause, String orderBy, Int32 start, Int32 pageLength, Int32& count) +1405 WebApp.Services.WebsiteServiceBase.GetPaged(String whereClause, String orderBy, Int32 start, Int32 pageLength, Int32& totalCount) +469 WebApp.Util.get_CurrentWebsite() in e:\Projects\WebAppHp\App_Code\Util.cs:437 WebApp.Util.get_CurrentUrlMapping() in e:\Projects\WebAppHp\App_Code\Util.cs:634 WebApp.Util.get_GetUrlRewrite() in e:\Projects\WebAppHp\App_Code\Util.cs:572 Myapp2013.Global.Application_BeginRequest(Object sender, EventArgs e) in e:\Projects\WebAppHp\App_Code\Global.cs:125 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88
Version Information:
Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3770.0