12,162
社区成员
发帖
与我相关
我的任务
分享
Type : System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Got unexpected type of System.Data.SqlClient.SqlConnection instead of a ProfiledConnection
Source : HibernatingRhinos.Profiler.Appender
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void set_DbConnection(System.Data.Common.DbConnection)
Stack Trace :
Server stack trace:
在 HibernatingRhinos.Profiler.Appender.ProfiledDataAccess.ProfiledCommand.set_DbConnection(DbConnection value)
在 System.Data.Common.DbCommand.set_Connection(DbConnection value)
在 HibernatingRhinos.Profiler.Appender.ProfiledDataAccess.ProfiledCommand.set_DbConnection(DbConnection value)
在 System.Data.Common.DbCommand.set_Connection(DbConnection value)
在 System.Data.Entity.Internal.InterceptableDbCommand.set_DbConnection(DbConnection value)
在 System.Data.Common.DbCommand.set_Connection(DbConnection value)
在 System.Data.Entity.Core.Common.Utils.CommandHelper.SetStoreProviderCommandState(EntityCommand entityCommand, EntityTransaction entityTransaction, DbCommand storeProviderCommand)
在 System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.PrepareEntityCommandBeforeExecution(EntityCommand entityCommand)
在 System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
在 System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlan.Execute[TResultType](ObjectContext context, ObjectParameterCollection parameterValues)
在 System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass3.<GetResults>b__2()
在 System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
在 System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass3.<GetResults>b__1()
在 System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
在 System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
在 System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()
在 System.Lazy`1.CreateValue()
Exception rethrown at [0]:
在 HibernatingRhinos.Profiler.Appender.ProfiledDataAccess.ProfiledCommand.set_DbConnection(DbConnection value)
在 System.Data.Common.DbCommand.set_Connection(DbConnection value)
在 HibernatingRhinos.Profiler.Appender.ProfiledDataAccess.ProfiledCommand.set_DbConnection(DbConnection value)
在 System.Data.Common.DbCommand.set_Connection(DbConnection value)
在 System.Data.Entity.Internal.InterceptableDbCommand.set_DbConnection(DbConnection value)
在 System.Data.Common.DbCommand.set_Connection(DbConnection value)
在 System.Data.Entity.Core.Common.Utils.CommandHelper.SetStoreProviderCommandState(EntityCommand entityCommand, EntityTransaction entityTransaction, DbCommand storeProviderCommand)
在 System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.PrepareEntityCommandBeforeExecution(EntityCommand entityCommand)
在 System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
在 System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlan.Execute[TResultType](ObjectContext context, ObjectParameterCollection parameterValues)
在 System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass3.<GetResults>b__2()
在 System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
在 System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass3.<GetResults>b__1()
在 System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
在 System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
在 System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()
在 System.Lazy`1.CreateValue()
在 System.Lazy`1.LazyInitValue()
在 System.Lazy`1.get_Value()
在 System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
在 SalesPlatform.BLL.CommonBll.GetPageActionByCondition(DtoActionRoleQuery dtoActionRoleQuery)