从另一个程序启动时.exe崩溃c#

时间:2014-03-12 07:03:12

标签: c# process.start

我尝试从另一个自编码程序中启动自编码软件。程序本身没有任何问题,但如果程序启动程序b,我会收到来自Windows的错误消息。

我使用的是VS2012,程序用C#编写,程序a用.Net 3.5编写,程序b用.Net 4.5编写。

在程序a中开始的代码是:

Process SeitenWizard = new Process();


                SeitenWizard.StartInfo.FileName = "G:/SoftwareSources/Visual Studio 2012/Projects/Wiki-Generator_Geraeteseiten_V2_.Net/GeraeteseitenGenerator_V2/bin/Debug/GeraeteseitenGenerator_V2.exe";
                //SeitenWizard.StartInfo.Arguments = "autostart";
                SeitenWizard.StartInfo.Verb = "runas";

                SeitenWizard.Start();

我也尝试发布.exe。但结果是一样的。

我使用Process.start()启动程序b,如果我尝试启动“Notepad.exe”,则程序a中的方法可以正常工作。

我试图找出程序b与logFile崩溃的位置,但它甚至没有到达Main()方法的第一行。

Windows错误只是说:“程序-b已停止工作”如果我单击“查看详细信息”按钮我得到3个自动创建的临时文件,这对我没有帮助,因为我不明白,是什么他们试图告诉我,我得到以下链接: http://windows.microsoft.com/en-US/windows7/windows-7-privacy-statement#T1=highlights

我认为您需要更多信息,但我不知道哪些信息有用,所以如果我忘记了一些重要信息,请告诉我。

感谢您的时间和帮助。

文件1

<?xml version="1.0" encoding="UTF-16"?>
<WERReportMetadata>
    <OSVersionInformation>
        <WindowsNTVersion>6.1</WindowsNTVersion>
        <Build>7601 Service Pack 1</Build>
        <Product>(0x1): Windows 7 Ultimate</Product>
        <Edition>Ultimate</Edition>
        <BuildString>7601.18247.amd64fre.win7sp1_gdr.130828-1532</BuildString>
        <Revision>1130</Revision>
        <Flavor>Multiprocessor Free</Flavor>
        <Architecture>X64</Architecture>
        <LCID>1031</LCID>
    </OSVersionInformation>
    <ParentProcessInformation>
        <ParentProcessId>1212</ParentProcessId>
        <ParentProcessPath>G:\SoftwareSources\Visual Studio 2012\Projects\Wiki-Generator_Kapitel_.Net\Upgraded\bin\KapitelWizard.vshost.exe</ParentProcessPath>
        <ParentProcessCmdLine>&quot;G:\SoftwareSources\Visual Studio 2012\Projects\Wiki-Generator_Kapitel_.Net\Upgraded\bin\KapitelWizard.vshost.exe&quot; /XP</ParentProcessCmdLine>
    </ParentProcessInformation>
    <ProblemSignatures>
        <EventType>CLR20r3</EventType>
        <Parameter0>geraeteseitengenerator_v2.exe</Parameter0>
        <Parameter1>1.0.0.0</Parameter1>
        <Parameter2>531f11e0</Parameter2>
        <Parameter3>mscorlib</Parameter3>
        <Parameter4>4.0.30319.18444</Parameter4>
        <Parameter5>52717edc</Parameter5>
        <Parameter6>442a</Parameter6>
        <Parameter7>1f4</Parameter7>
        <Parameter8>System.IO.IOException</Parameter8>
    </ProblemSignatures>
    <DynamicSignatures>
        <Parameter1>6.1.7601.2.1.0.256.1</Parameter1>
        <Parameter2>1031</Parameter2>
        <Parameter22>0a9e</Parameter22>
        <Parameter23>0a9e372d3b4ad19135b953a78882e789</Parameter23>
        <Parameter24>0a9e</Parameter24>
        <Parameter25>0a9e372d3b4ad19135b953a78882e789</Parameter25>
    </DynamicSignatures>
    <SystemInformation>
        <MID>4A956F8C-D4A6-4DBF-B14A-F4BE0B8B0D87</MID>
        <SystemManufacturer>To Be Filled By O.E.M.</SystemManufacturer>
        <SystemProductName>To Be Filled By O.E.M.</SystemProductName>
        <BIOSVersion>P2.60</BIOSVersion>
    </SystemInformation>
</WERReportMetadata>

文件2

<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="GeraeteseitenGenerator_V2.exe" FILTER="CMI_FILTER_PRIVACY">
    <MATCHING_FILE NAME="GeraeteseitenGenerator_V2.exe" SIZE="60416" CHECKSUM="0x4677790E" BIN_FILE_VERSION="1.0.0.0" BIN_PRODUCT_VERSION="1.0.0.0" PRODUCT_VERSION="1.0.0.0" FILE_DESCRIPTION="GeraeteseitenGenerator_V2" PRODUCT_NAME="GeraeteseitenGenerator_V2" FILE_VERSION="1.0.0.0" ORIGINAL_FILENAME="GeraeteseitenGenerator_V2.exe" INTERNAL_NAME="GeraeteseitenGenerator_V2.exe" LEGAL_COPYRIGHT="Copyright ©  2014" VERDATEHI="0x0" VERDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.0.0.0" UPTO_BIN_PRODUCT_VERSION="1.0.0.0" LINK_DATE="03/11/2014 13:38:40" UPTO_LINK_DATE="03/11/2014 13:38:40" VER_LANGUAGE="Sprachneutral [0x0]" EXE_WRAPPER="0x0" />
    <MATCHING_FILE NAME="GeraeteseitenGenerator_V2.vshost.exe" SIZE="22984" CHECKSUM="0xFFA4B6D0" BIN_FILE_VERSION="11.0.50727.1" BIN_PRODUCT_VERSION="11.0.50727.1" PRODUCT_VERSION="11.0.50727.1" FILE_DESCRIPTION="vshost32.exe" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Visual Studio® 2012" FILE_VERSION="11.0.50727.1" ORIGINAL_FILENAME="vshost32.exe" INTERNAL_NAME="vshost32.exe" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERDATEHI="0x0" VERDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0xCFE8" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="11.0.50727.1" UPTO_BIN_PRODUCT_VERSION="11.0.50727.1" LINK_DATE="07/26/2012 23:35:33" UPTO_LINK_DATE="07/26/2012 23:35:33" VER_LANGUAGE="Sprachneutral [0x0]" EXE_WRAPPER="0x0" />
</EXE>
<EXE NAME="KERNELBASE.dll" FILTER="CMI_FILTER_THISFILEONLY">
    <MATCHING_FILE NAME="KernelBase.dll" SIZE="274944" CHECKSUM="0x46F98ADE" BIN_FILE_VERSION="6.1.7601.18229" BIN_PRODUCT_VERSION="6.1.7601.18229" PRODUCT_VERSION="6.1.7601.18015" FILE_DESCRIPTION="Client-DLL für Windows NT-Basis-API" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Betriebssystem Microsoft® Windows®" FILE_VERSION="6.1.7601.18015 (win7sp1_gdr.121129-1432)" ORIGINAL_FILENAME="Kernelbase" INTERNAL_NAME="Kernelbase" LEGAL_COPYRIGHT="© Microsoft Corporation. Alle Rechte vorbehalten." VERDATEHI="0x0" VERDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x4F697" LINKER_VERSION="0x60001" UPTO_BIN_FILE_VERSION="6.1.7601.18229" UPTO_BIN_PRODUCT_VERSION="6.1.7601.18229" LINK_DATE="08/02/2013 01:53:26" UPTO_LINK_DATE="08/02/2013 01:53:26" EXPORT_NAME="KERNELBASE.dll" VER_LANGUAGE="Deutsch (Deutschland) [0x407]" EXE_WRAPPER="0x0" />
</EXE>
<EXE NAME="kernel32.dll" FILTER="CMI_FILTER_THISFILEONLY">
    <MATCHING_FILE NAME="kernel32.dll" SIZE="1114112" CHECKSUM="0x2325986C" BIN_FILE_VERSION="6.1.7601.18229" BIN_PRODUCT_VERSION="6.1.7601.18229" PRODUCT_VERSION="6.1.7601.18015" FILE_DESCRIPTION="Client-DLL für Windows NT-Basis-API" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Betriebssystem Microsoft® Windows®" FILE_VERSION="6.1.7601.18015 (win7sp1_gdr.121129-1432)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. Alle Rechte vorbehalten." VERDATEHI="0x0" VERDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x111A9F" LINKER_VERSION="0x60001" UPTO_BIN_FILE_VERSION="6.1.7601.18229" UPTO_BIN_PRODUCT_VERSION="6.1.7601.18229" LINK_DATE="08/02/2013 01:53:25" UPTO_LINK_DATE="08/02/2013 01:53:25" EXPORT_NAME="KERNEL32.dll" VER_LANGUAGE="Deutsch (Deutschland) [0x407]" EXE_WRAPPER="0x0" />
</EXE>
</DATABASE>

文件3

名称: “E:\ TMP \ WER9B56.tmp.mdmp” 尺寸:8,31 mb

如果我打开文件VS2012启动,我再也不知道这些信息如何帮助我。

1 个答案:

答案 0 :(得分:0)

我注意到您尝试在.NET 3.5程序中使用Process.Start()启动.NET 4.5程序。运行旧版.NET的程序试图从较新版本运行程序时可能存在问题。

尝试使用.NET 4.5重新编译.NET 3.5程序。