Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# metallica 4/14/2007 10:23 PM
When I run from VS 2005 ít's OK, nothing happen. But when i Browse from IIS it's error. I don't know what error is. Somebody help me!!
Login failed for user 'MANUTD\ASPNET'.

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.Data.SqlClient.SqlException: Login failed for user 'MANUTD\ASPNET'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SqlException (0x80131904): Login failed for user 'MANUTD\ASPNET'.]
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +437
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
NHibernate.Connection.DriverConnectionProvider.GetConnection() +71

[ADOException: Could not create connection from Driver]
NHibernate.Connection.DriverConnectionProvider.GetConnection() +119
NHibernate.Impl.SessionFactoryImpl.OpenConnection() +29

[ADOException: cannot open connection]
NHibernate.Impl.SessionFactoryImpl.OpenConnection() +83
NHibernate.Impl.SessionImpl.get_Connection() +32
NHibernate.Impl.BatcherImpl.Prepare(IDbCommand command) +105
NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd) +24
NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session) +175
NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) +243
NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) +65
NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet querySpaces, IType[] resultTypes) +169
NHibernate.Hql.QueryTranslator.List(ISessionImplementor session, QueryParameters queryParameters) +64
NHibernate.Impl.SessionImpl.Find(String query, QueryParameters parameters) +200

[ADOException: Could not execute query]
NHibernate.Impl.SessionImpl.Find(String query, QueryParameters parameters) +255
NHibernate.Impl.QueryImpl.List() +84
NHibernate.Impl.AbstractQueryImpl.UniqueResult() +7
Cuyahoga.Core.DataAccess.SiteStructureDao.GetSiteAliasByUrl(String url) +201
ProxyInterfaceDataAccessSiteStructureDao_ISiteStructureDao_ISerializable.callback__GetSiteAliasByUrl(String ) +10
__delegate_2.Call(Object[] ) +52
Castle.Windsor.Proxy.DefaultMethodInvocation.Proceed(Object[] args) +164
Castle.Facilities.AutomaticTransactionManagement.TransactionInterceptor.Intercept(IMethodInvocation invocation, Object[] args) +169
Castle.Windsor.Proxy.DefaultMethodInvocation.Proceed(Object[] args) +123
Castle.Windsor.Proxy.InterceptorChain.Intercept(IMethodInvocation invocation, Object[] args) +182
ProxyInterfaceDataAccessSiteStructureDao_ISiteStructureDao_ISerializable.GetSiteAliasByUrl(String url) +105
Cuyahoga.Core.Service.SiteStructure.SiteService.GetSiteAliasByUrl(String url) +10
Cuyahoga.Web.UI.PageEngine.OnInit(EventArgs e) +53
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692


# mgaerber 4/15/2007 2:12 AM
When not run from VS, the ASPNET account should have the correct rights set to access the db. How is your database set up?

Regards,

Max
# metallica 4/15/2007 3:00 AM
My DB is not problem. Connection String is rite. I think if db has Problem, debug in VS it will wrong.
So I don't think it's a problem.

Thank's Max.
# mgaerber 4/16/2007 1:40 AM
I think if db has Problem, debug in VS it will wrong
Not quite. When you run in VS, the app "impersonates" your account. When run in IIS the ASPNET account is used for accessing all sorts of resources (including db).

I'd check if your cuyahoga db grants access to the ASPNET (or IUSR_[PC NAME] ) account.

Regards,

Max
# metallica 4/16/2007 2:08 PM
the ASPNET account has set to access the db when i browsed from IIS. But it's still shown that error.

Thank's Max.