启动时NHibernate异常

时间:2012-06-21 09:11:01

标签: .net nhibernate windows-xp castle-windsor

我有带SP3的Windows XP。我使用nhibernate v2.0.50727,castle windsor v4.0.30319和System.Data.SqlServerCe v4.0.30319运行.NET程序。它运行在Windows 7但不运行在Windows XP SP3上。这是一个例外:

  
    

框架版本:v4.0.30319         描述:由于未处理的异常,进程终止。         异常信息:NHibernate.HibernateException         堆:           在Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateConstructorArguments(Castle.Core.ConstructorCandidate,     Castle.MicroKernel.Context.CreationContext,System.Type [] ByRef)           在Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(Castle.MicroKernel.Context.CreationContext)           在Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(Castle.MicroKernel.Context.CreationContext)           在Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(Castle.MicroKernel.Context.CreationContext)           在Castle.MicroKernel.Lifestyle.SingletonLifestyleManager.Resolve(Castle.MicroKernel.Context.CreationContext)           在Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(Castle.MicroKernel.Context.CreationContext,     布尔值,布尔值)           在Castle.MicroKernel.Handlers.AbstractHandler.Resolve(Castle.MicroKernel.Context.CreationContext,     布尔)           在Castle.MicroKernel.Handlers.AbstractHandler.Resolve(Castle.MicroKernel.Context.CreationContext)           在Castle.MicroKernel.DefaultKernel.ResolveComponent(Castle.MicroKernel.IHandler,     System.Type,System.Collections.IDictionary)           在Castle.MicroKernel.DefaultKernel.Resolve(System.Type)           在Castle.Windsor.WindsorContainer.Resolve [系统._ 佳能,mscorlib,版本= 4.0.0.0,文化=中立,     公钥= b77a5c561934e089]           在LunchApplication.Bootstrapper.InitializeShell()           在PrismContrib.WindsorExtensions.WindsorBootstrapper.Run(布尔)           在Microsoft.Practices.Prism.Bootstrapper.Run()           在LunchApplication.App.OnStartup(System.Windows.StartupEven         2012-05-08 10:26:12         tArgs)           在System.Windows.Application。< .ctor> b _1(System.Object)           在System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate,     System.Object,Int32)           在MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object,     System.Delegate,System.Object,Int32,System.Delegate)           在System.Windows.Threading.DispatcherOperation.InvokeImpl()           在System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)           在System.Threading.ExecutionContext.runTryCode(System.Object)           在System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode,     CleanupCode,System.Object)           在System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,     System.Threading.ContextCallback,System.Object)           在System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,     System.Threading.ContextCallback,System.Object,Boolean)           在System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,     System.Threading.ContextCallback,System.Object)           在System.Windows.Threading.DispatcherOperation.Invoke()           在System.Windows.Threading.Dispatcher.ProcessQueue()           在System.Windows.Threading.Dispatcher.WndProcHook(IntPtr,Int32,IntPtr,IntPtr,Boolean ByRef)           在MS.Win32.HwndWrapper.WndProc(IntPtr,Int32,IntPtr,IntPtr,Boolean ByRef)           在MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)           在System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate,     System.Object,Int32)           在MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object,     System.Delegate,System.Object,Int32,System.Delegate)           在System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority,     System.TimeSpan,System.Dele         2012-05-08 10:26:12         gate,System.Object,Int32)           在MS.Win32.HwndSubclass.SubclassWndProc(IntPtr,Int32,IntPtr,IntPtr)           在MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG)     为ByRef)           在System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)           在System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)           在System.Windows.Threading.Dispatcher.Run()           在System.Windows.Application.RunDispatcher(System.Object)           在System.Windows.Application.RunInternal(System.Windows.Window)           在System.Windows.Application.Run(System.Windows.Window)           在System.Windows.Application.Run()           在LunchApplication.App.Main()

  

0 个答案:

没有答案