什么是的Mscorwks.dll的原因和异常code 0000005的解决方案? [英] What are the causes and solutions of exception code c0000005 in mscorwks.dll?

查看:1998
本文介绍了什么是的Mscorwks.dll的原因和异常code 0000005的解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例外code 0000005是从的Mscorwks.dll当应用程序在Windows Server 2008上运行使用测试完整R2推出抛出。其他平台(Windows  XP,Server 2003 R2中,Windows和NBSP; 7 32位和64位)。不要present此异常

The exception code C0000005 is thrown from mscorwks.dll when the application is run on Windows Server 2008 R2 launched using test complete. Other platforms (Windows XP, Server 2003 R2, Windows 7 32-bit and 64-bit) do not present this exception.

从单个执行的事件日志中有许多事件ID 1023以下事件由.NET运行库提出了:

The event log from a single execution has many of the following event with event ID 1023 raised by the .NET Runtime:

.NET运行库版本2.0.50727.4952 - 致命的执行引擎错误(7383851A)(80131506)

.NET Runtime version 2.0.50727.4952 - Fatal Execution Engine Error (7383851A) (80131506)

应用程序本身就是从的 SOAP 接口=htt​​p://en.wikipedia.org/wiki/Web_Services_Description_Language相对=nofollow> WSDL文件,与嵌入的互操作一个COM对象,瞄准的。NET 4。

The application itself makes use of a SOAP interface generated by Visual Studio from a WSDL file, a COM object with an embedded interop, and is targeting .NET 4.

SFC / SCANNOW 的已运行,发现受影响的系统上的系统文件没有问题。

sfc /scannow was run and found no problems with system files on the affected system.

可以做哪些故障排除,以确定一个解决方案?

What troubleshooting can be done to identify a solution?

推荐答案

此错误是由缺陷的方式引起的TestComplete 7在混合托管/非托管的应用程序交互堆。而不是使用 TestedApp.Run 方法使用code以下块,修改您选择的脚本语言,$ P $中的 VBScript中

This error is caused by flaws in the way that TestComplete 7 interacts with the heap in mixed managed/unmanaged applications. Instead of using the TestedApp.Run method using the following block of code, modified for you choice of scripting language, presented in VBScript:

Dim oScript, command
Set oScript = CreateObject("WScript.Shell")

command = "%comspec% /c " & PATH_TO_EXE & " " & Args
oScript.Run command, 10, True 

有关 MSDN 文章的 run方法(Windows脚本宿主)

这篇关于什么是的Mscorwks.dll的原因和异常code 0000005的解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆