Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 什么类型的事情会导致sgen msbuild任务因访问冲突而间歇性失败?_.net_Msbuild_Xsd.exe_Sgen_Sgen.exe - Fatal编程技术网

.net 什么类型的事情会导致sgen msbuild任务因访问冲突而间歇性失败?

.net 什么类型的事情会导致sgen msbuild任务因访问冲突而间歇性失败?,.net,msbuild,xsd.exe,sgen,sgen.exe,.net,Msbuild,Xsd.exe,Sgen,Sgen.exe,在项目的MSBuild文件中,我们生成了一个包含xml序列化期间使用的类的程序集。这些类是通过xsd.exe生成的 我们使用以下SGen任务配置 <SGen ToolPath="$(SdkPath)" ShouldGenerateSerializer="true" UseProxyTypes="false" BuildAssemblyName="AssemblyName.dll" BuildAssemblyPath="Outputs"

在项目的MSBuild文件中,我们生成了一个包含xml序列化期间使用的类的程序集。这些类是通过xsd.exe生成的

我们使用以下SGen任务配置

<SGen ToolPath="$(SdkPath)" 
      ShouldGenerateSerializer="true" 
      UseProxyTypes="false" 
      BuildAssemblyName="AssemblyName.dll" 
      BuildAssemblyPath="Outputs" 
      ContinueOnError="false"  />
我们使用Hudson来管理构建,因此msbuild和sgen进程由Hudson.exe执行


关于SGen的这类错误,互联网上没有太多内容。当然没什么具体的

这似乎是由生成sgen.exe实例的32位版本的Java运行时环境造成的。生成服务器正在Windows server 2003 x64上运行双Opteron


切换到64位版本的JRE似乎已经解决了随机AccessViolationExceptions的问题。

事实证明,上述方法并没有解决问题。在使用64位JRE之后开始的进一步构建仍然会导致相同的sgen问题。搜索还在继续。。。
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
E:\Path_ToBuild_Workspace\SolutionBuild.MSBuild(74,5): error MSB6006: "sgen.exe" exited with code -1073741819.