2008r2添加没有应用程序服务器,将应用程序移动到服务器2008R2 64位时的AccessViolationException...

我们正在切换到Windows Server 2008 R2 64位服务器,并且看到了一些问题。我们的Windows服务在Windows事件日志中抛出“AccessViolationException”异常。我们的旧版Windows 2003 32位服务器上从未遇到此问题。唯一的应用程序更改是重新编译为64位应用程序。

我不知道这是代码问题还是服务器设置问题。任何人都有任何想法为什么会这样?

更新

以下是两个堆栈跟踪:

Application: MyApplication1.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.AccessViolationException

Stack:

at Devart.Data.Oracle.OracleConnection.BeginTransaction(System.Data.IsolationLevel)

at MyApplication.AlertWorkerBase.persistErrors(System.String, System.String, Char)

at MyApplication.AlertWorkerBase.StartAlertWorker()

at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)

at System.Threading.ThreadHelper.ThreadStart()

Application: MyApplication2.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.AccessViolationException

Stack:

at System.Threading.Thread.InternalCrossContextCallback(System.Runtime.Remoting.Contexts.Context, IntPtr, Int32, System.Threading.InternalCrossContextDelegate, System.Object[])

at System.Runtime.Remoting.Activation.ActivationServices.DoCrossContextActivation(System.Runtime.Remoting.Activation.IConstructionCallMessage)

at System.Runtime.Remoting.Messaging.ClientContextTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage)

at System.Runtime.Remoting.Activation.ActivationServices.Activate(System.Runtime.Remoting.Proxies.RemotingProxy, System.Runtime.Remoting.Activation.IConstructionCallMessage)

at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(System.Runtime.Remoting.Messaging.IMessage)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(System.Runtime.Remoting.Proxies.MessageData ByRef, Int32)

at MyApplication2.SessStatsLookup..ctor(Energy.VT.Common.ApplicationParameters)

at MyApplication2.TCPConnection.ClientHandler.Initialize(MyApplication2.ApplicationParameters)

at MyApplication2.TCPConnection.ClientHandler.ServeClient()

at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)

at System.Threading.ThreadHelper.ThreadStart()

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值