-4
我有一個在C#中開發的應用程序,它在我的Windows 7 x64 PC上運行良好,但是當我嘗試在Windows Server 2012 R2 VPS上運行相同的應用程序時,出現錯誤認爲「(TheApplicationName」已停止工作)Windows Server 2012 R2 - System.IO.FileNotFoundException
當我點擊查看問題的詳細信息,我得到了以下信息
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: application.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 582aa3a2
Problem Signature 04: Application
Problem Signature 05: 1.0.0.0
Problem Signature 06: 582aa3a2
Problem Signature 07: 1
Problem Signature 08: 77
Problem Signature 09: System.IO.FileNotFoundException
OS Version: 6.3.9600.2.0.0.272.7
Locale ID: 1033
Additional Information 1: 5861
Additional Information 2: 5861822e1919d7c014bbb064c64908b2
Additional Information 3: 6ee2
Additional Information 4: 6ee2432e64e99bdcea5e4be767a3b1a2
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=280262
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
任何人都可以請告知問題是什麼在這裏
非常感謝
對不起,我的水晶球放錯了。您能否請您發佈一些代碼,特別是文件訪問失敗的地方? – LocEngineer
在Main函數週圍添加一個'Try ... Catch',並將錯誤情況下的異常消息記錄到事件日誌 –