the*_*pil 4 c# quickbooks add-on filenotfoundexception
我已经开发了一个应用程序大约2个月.这是我以前第一次做过这么大的事情.既然我已经接近让所有进程按照我希望的方式运行,那么当我尝试运行应用程序时,我会收到以下错误.
我之前创建的应用程序运行得很好......实际上在其他机器上更好.但这个应用程序正在破坏我的印章.
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: logopicking.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 4f4e6509
Problem Signature 04: System.Drawing
Problem Signature 05: 4.0.0.0
Problem Signature 06: 4ba1e086
Problem Signature 07: 30
Problem Signature 08: 14
Problem Signature 09: System.IO.FileNotFoundException
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Run Code Online (Sandbox Code Playgroud)
这就是它给我的错误.
要添加更多信息,我将发布使用
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using Interop.QBFC11;
Run Code Online (Sandbox Code Playgroud)
我不知道这些中的任何一个是否有问题可能会产生一个阻止应用程序启动的问题.
你得到了一个System.IO.FileNotFoundException.您的应用程序正在尝试访问在"其他计算机"上找不到的文件
此链接将进一步帮助您:http://channel9.msdn.com/Forums/TechOff/258689-NET-20-Win-App-Eror-EventType-clr20r3
取自那里:
"实现UnhandledExceptionHandler并将异常信息记录到事件日志中,以便您可以获得有关导致应用程序崩溃的原因以及在何种上下文中的更好信息."
// C# 2.0
static void Main(string[] args)
{
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(
delegate(object sender, UnhandledExceptionEventArgs e) {
if (e.IsTerminating) {
object o = e.ExceptionObject;
Debug.WriteLine(o.ToString());
}
}
);
// rest of your Main code
}
Run Code Online (Sandbox Code Playgroud)