好吧我在這裏失去了一些東西。.NET WinApp將不會在其他機器上運行,具體取決於編譯機器
我有我的開發計算機(x86,Windows 7)與Visual Studio Premium。 我有一臺測試機器(x86,Windows XP)和Visual Studio Express。
在兩個計算機上,我都在相同的.net版本(3.5)中編譯完全相同的東西(winapp +少數dll項目),並且在兩種情況下都可以找到並訪問所有外部參照。在我的測試中,當我編譯,它的工作原理和它在複製和打開應用程序時都運行
在我的開發,它的工作原理和運行本身,但當我複製輸出到測試,它不會打開。
我有雙重檢查,並嘗試了所有的構建配置,它始終是相同的結果(調試/發佈,任何-CPU/86等)
我也試圖把我的代碼在嘗試捕捉並添加處理程序在appdomain未處理的異常,它始終是相同的錯誤...
我GOOGLE了錯誤嘗試了一堆東西,但我用盡想法。 關於在哪裏或要搜索什麼的線索將會受到極大的影響!
這裏的錯誤:
Type de l'événement : Erreur
Source de l'événement : .NET Runtime 2.0 Error Reporting
Catégorie de l'événement : Aucun
ID de l'événement : 5000
Date : 24-11-2010
Heure : 09:17:09
Utilisateur : N/A
Ordinateur : PCD25569
Description : EventType clr20r3, P1 waf_detours.exe, P2 1.0.0.0, P3 4ced1e3e, P4 waf_detours, P5 1.0.0.0, P6 4ced1e3e, P7 d, P8 c6, P9 system.invalidoperationexception, P10 NIL.
Pour plus d'informations, consultez le centre Aide et support à l'adresse http://go.microsoft.com/fwlink/events.asp.
Données :
0000: 63 00 6c 00 72 00 32 00 c.l.r.2.
0008: 30 00 72 00 33 00 2c 00 0.r.3.,.
0010: 20 00 77 00 61 00 66 00 .w.a.f.
0018: 5f 00 64 00 65 00 74 00 _.d.e.t.
0020: 6f 00 75 00 72 00 73 00 o.u.r.s.
0028: 2e 00 65 00 78 00 65 00 ..e.x.e.
0030: 2c 00 20 00 31 00 2e 00 ,. .1...
0038: 30 00 2e 00 30 00 2e 00 0...0...
0040: 30 00 2c 00 20 00 34 00 0.,. .4.
0048: 63 00 65 00 64 00 31 00 c.e.d.1.
0050: 65 00 33 00 65 00 2c 00 e.3.e.,.
0058: 20 00 77 00 61 00 66 00 .w.a.f.
0060: 5f 00 64 00 65 00 74 00 _.d.e.t.
0068: 6f 00 75 00 72 00 73 00 o.u.r.s.
0070: 2c 00 20 00 31 00 2e 00 ,. .1...
0078: 30 00 2e 00 30 00 2e 00 0...0...
0080: 30 00 2c 00 20 00 34 00 0.,. .4.
0088: 63 00 65 00 64 00 31 00 c.e.d.1.
0090: 65 00 33 00 65 00 2c 00 e.3.e.,.
0098: 20 00 64 00 2c 00 20 00 .d.,. .
00a0: 63 00 36 00 2c 00 20 00 c.6.,. .
00a8: 73 00 79 00 73 00 74 00 s.y.s.t.
00b0: 65 00 6d 00 2e 00 69 00 e.m...i.
00b8: 6e 00 76 00 61 00 6c 00 n.v.a.l.
00c0: 69 00 64 00 6f 00 70 00 i.d.o.p.
00c8: 65 00 72 00 61 00 74 00 e.r.a.t.
00d0: 69 00 6f 00 6e 00 65 00 i.o.n.e.
00d8: 78 00 63 00 65 00 70 00 x.c.e.p.
00e0: 74 00 69 00 6f 00 6e 00 t.i.o.n.
00e8: 20 00 4e 00 49 00 4c 00 .N.I.L.
00f0: 0d 00 0a 00 ....
你會得到什麼異常? – SLaks 2010-11-24 14:58:19