My stacktrace is as follows.
" at System.Security.CodeAccessSecurityEngine.Check(Object demand,
StackCrawlMark& stackMark, Boolean isPermSet)\r\n at
System.Security.PermissionSet.Demand()\r\n at
System.Data.Common.DbConnectionOptions.DemandPermission()\r\n at
System.Data.SqlClient.SqlConnection.PermissionDemand()\r\n at
System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection
outerConnection)\r\n at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory)\r\n at
System.Data.SqlClient.SqlConnection.Open()\r\n at
NHibernate.Connection.DriverConnectionProvider.GetConnection()\r\n
at
NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare()
\r\n at
NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect
dialect, IConnectionHelper connectionHelper)\r\n at
NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactory
sessionFactory)\r\n at
NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping
mapping, Settings settings, EventListeners listeners)\r\n at
NHibernate.Cfg.Configuration.BuildSessionFactory()\r\n at
Castle.ActiveRecord.Framework.SessionFactoryHolder.GetSessionFactory(Type
type)\r\n at
Castle.ActiveRecord.Framework.SessionFactoryHolder.CreateSession(Type
type)\r\n at Castle.ActiveRecord.ActiveRecordBase.FindAll(Type
targetType, DetachedCriteria detachedCriteria, Order[] orders)\r\n
at Castle.ActiveRecord.ActiveRecordBase.FindAll(Type targetType)\r\n
at Castle.ActiveRecord.ActiveRecordBase`1.FindAll()\r\n at
TxLocates.TxLocate..ctor()\r\n at TxLocates.Program.Main()\r\n at
System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r
\n at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)\r\n at System.Runtime.Hosting.ManifestRunner.Run(Boolean
checkAptModel)\r\n at
System.Runtime.Hosting.ManifestRunner.NewThreadRunner()\r\n at
System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n
at System.Threading.ExecutionContext.runTryCode(Object userData)\r\n
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
code, CleanupCode backoutCode, Object userData)\r\n at
System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state)\r\n at
System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)\r\n at
System.Threading.ThreadHelper.ThreadStart()"
This exception still persits with Lazy = false on all my entities.
On Nov 12, 4:11 am, Roelof Blom <
roelof.b...@gmail.com> wrote:
> Hi Mike,
>
> From your error it seems you are using ActiveRecord w/ LazyLoad. If so, if
> you disable that is the error going away?
>
> Also, please send a full stacktrace and as much information as you can as
> the crystal balls are shut down here for the weekend.
>
> -- Roelof.
>
> On Thu, Nov 11, 2010 at 9:32 PM, Mike Cameron
> <
michael.came...@hydroone.com>wrote:
>
>
>
>
>
>
>
> > Before anyone asks, yes, this is a crosspost from SO which can be
> > found at
> >
http://stackoverflow.com/questions/4148394/compiling-castle-activerec...
> > .
> >
castle-project-u...@googlegroups.com<castle-project-users%2Bun
subs...@googlegroups.com>
> > .