Product class is correctly mapped? please, show us your mapping and how/where you are starting NH.
2016-09-27 8:37 GMT-03:00 Waqas Hameed <[email protected]>: > Hi, > > I am getting N-hibernate exception in ASP.Net MVC application when bulk of > user accessing application. > > Detail : An ExceptionDetail, likely created by > IncludeExceptionDetailInFaults=true, whose value is: > NHibernate.Exceptions.GenericADOException: could not load an entity: > Product > System.Data.SqlClient.SqlException: Invalid object name 'Product'. > at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, > Boolean breakConnection, Action`1 wrapCloseInAction) > at > System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject > stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) > at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, > SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet > bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) > at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() > at System.Data.SqlClient.SqlDataReader.get_MetaData() > at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, > RunBehavior runBehavior, String resetOptionsString) > at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior > cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, > Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior > cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, > TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean > asyncWrite) > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior > cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) > at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior > behavior, String method) > at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior > behavior) > at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() > at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd) > at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean > autoDiscoverTypes, Boolean callable, RowSelection selection, > ISessionImplementor session) > at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, > QueryParameters queryParameters, Boolean returnProxies) > at > NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor > session, QueryParameters queryParameters, Boolean returnProxies) > at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, > Object id, IType identifierType, Object optionalObject, String > optionalEntityName, Object optionalIdentifier, IEntityPersister persister) > --- End of inner ExceptionDetail stack trace --- > at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, > Object id, IType identifierType, Object optionalObject, String > optionalEntityName, Object optionalIdentifier, IEntityPersister persister) > > > Please help me how to solve this issue. > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/nhusers. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
