且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

.Net 4.0应用程序无法在Windows 2003上运行

更新时间:2022-02-03 02:41:02

我将假定"SystemNull异常"实际上意味着对象未设置为对象的实例".

您所要做的就是逐步浏览炸弹所在的代码,并检查您的哪个对象未返回Nothing.您的代码假设某个应该返回对象的调用实际上返回了一个对象,但实际上并没有.然后,您尝试在该对象上设置属性或执行方法,从而导致错误.

由于这似乎与日志记录有关,因此您可能试图在用户没有创建/写入权限的文件夹中打开日志文件.根据设置日志记录类的异常处理的方式,可能会导致此问题.
I''ll assume that "SystemNull exception" actually means "Object not set to an instance of an object".

All you have to do is step through the code where it bombs and check to see which one of your objects returned Nothing. Your code is making the assumption that some call that is supposed to return an object returned an object when, in fact, it didn''t. Then you tried to set a property or execute a method on that object, resulting in the error.

Since this appears to have something to do with logging, you might be trying to open a log file in a folder that the user does not have create/write permissions to. Depending on how your logging class'' exception handling is setup, it may cause this problem.