Visual Studio 2010 SP1,编译 WCF 应用,放到服务器上,当然第一次运行就出错了(什么是新的),输出 Stack Trace 到日志文件。
它看到了我的开发环境的路径。为什么?是因为我将它部署为 Debug 而不是 Release 还是有其他原因,或者我是否应该更加小心地输出堆栈跟踪?
04/09/2012 03:58:46: Error: Object reference not set to an instance of an object. at App1.Logging.LogMessageToFile(String msg, Boolean isUsingClickOnceApp) in C:\Users\robcube\Documents\Visual Studio 2010\Projects\AppWebService\App1\Logging.cs:line 63
at App1.App1Main.ConnectWebService(String description) in C:\Users\robcube\Documents\Visual Studio 2010\Projects\AppWebService\App1\International.cs:line 40
04/09/2012 03:58:46: Error: Object reference not set to an instance of an object. at App1.App1Main.UpdateActivityLog(String data, String userName, Boolean deleteData, Int64 firstId, Int64 lastId, String changeType) in C:\Users\robcube\Documents\Visual Studio 2010\Projects\AppWebService\App1\App1Main.cs:line 641
谢谢,-罗布