一位用户的生产 ASP.NET Web 应用程序错误,无法在开发中重现 - 我该如何调试?
我继承了一个面向客户的 asp.net Web 应用程序,客户可以在其中将文件上传到我们的文件服务器。它适用于除一名个人之外的所有用户。两周前,她尝试上传文件并收到以下错误:
未将对象引用设置为对象的实例。
错误继续描述哪一行代码导致错误。然而,这是在我们的生产、外部环境中,并且我关闭了调试。因此,我假设这些信息或多或少都是废话(错误报告的代码行对我来说确实没有意义,因为它是错误的原因)。
我知道正在访问的某些内容为空,但我无法在我的开发环境中重现该错误,并且它对于我们的其他用户群来说工作正常。同一用户两周前遇到了该错误,然后昨天使用不同的文件再次尝试并收到了相同的错误。
我知道这一切听起来很模糊,但我想我的问题是,是否有人对如何跟踪用户的执行到错误有任何好主意,以便我可以准确地了解哪一行代码真正导致了错误?就像我说的,我无法在开发中、生产中、内部、外部重现该错误,并且没有其他用户遇到问题。我唯一的想法是向面向客户的生产站点发布调试版本,但我真的不想这样做。谢谢!
I inherited a customer facing asp.net web application, in which customers can upload files to our file servers. It works fine for all users except for one individual. Two weeks ago she tried to upload a file and received the following error:
Object reference not set to an instance of an object.
The error goes on to describe what line of code causes the error. However, this is in our production, external environment and I have debugging turned off. So this information, I am assuming is more or less bunk (the lines of code it the error is reporting really don't make sense to me as being the cause of the error).
I know something is being accessed that is null, but I have not been able to reproduce the error in my development environment and it works fine for the rest of our user base. The same user experienced the error two weeks ago, and then tried again yesterday with a different file and received the same error.
I know this all sounds very vague, but I guess my question is does anyone have any good ideas of how to trace the user's execution to the error so that I can get an accurate look of what line of code is REALLY causing it? Like I said I have not been able to reproduce the error, in dev, in production, internally, externally, and no other users have had a problem. My only idea was to publish a debug release to our customer facing production site but I don't really want to do that. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
.PDB
文件,不匹配的文件将没有任何用处。.PDB
文件与您的可发布文件一起置于版本控制之下,如果您同时拥有这两个文件以及该特定版本的代码(即对待您的编译后的输出和 .pdb 与您的源代码一样)。NullReferenceException
通过您的日志代码。.PDB
files, ones that don't match won't be any use..PDB
files under version-control along with your releaseables, it makes it a lot easier to test issues if you have both, along with the code for that specific version (i.e. treat your compiled output and .pdb's as you would your source).NullReferenceException
being caused by your logging code.