如何解决.net运行时错误和应用程序错误 [英] how to solve .net runtime error and application error

查看:85
本文介绍了如何解决.net运行时错误和应用程序错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

actully我做了window service.i在windowservice.it中编写了一些代码完全在调试模式下执行,但是当我通过发布模式创建exe文件并安装时它正常工作当我在窗口日志事件中看到错误时出错显示.net运行时错误eventid- 1026和应用程序错误eventid-1000。如何解决这个问题请帮帮我。



提前感谢....

actully i did window service.i wrote some code in windowservice.it was perfectly execute in debug mode,but when i created exe file by release mode and install at it is working properly when i saw error in window log event the error shows .net runtime error eventid- 1026 and application error eventid-1000. how to solve this problem please help me.

thanks in advance....

推荐答案

我们不能说。

你的代码失败有很多可能的原因 - 我们不知道你的代码是什么意思,更不用说它实际上做了什么,或者它是如何做到的。



我建议您开始收集信息:添加记录软件获取距离的日志,并继续添加,直到它让您至少缩小范围代码中失败的那部分。



那么至少你可以检查它,添加一些异常日志记录,或者发布相关的片段,这样我们就会知道什么正在进行。



但我们不能为你做任何事情!
We can't say.
There are so many possible reasons why your code is failing - we have no idea what you code is even meant to do, much less what it actually does, or how it does it.

What I would suggest is that you start gathering information: add a log which records how far the software gets, and keep adding until it lets you at least narrow down the part of the code which is failing.

Then at least you could examine it, add some exception logging, or post the relevant fragments so we would have some idea what is going on.

But we can't do any of that for you!


这篇关于如何解决.net运行时错误和应用程序错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆