如何解决.net运行时错误和应用程序错误

编程入门 行业动态 更新时间:2024-10-26 05:17:14
本文介绍了如何解决运行时错误和应用程序错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

actully我做了window service.i在windowservice.it中编写了一些代码完全在调试模式下执行,但是当我通过发布模式创建exe文件并安装时它正常工作当我在窗口日志事件中看到错误时出错显示运行时错误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 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运行时错误和应用程序错误

本文发布于:2023-11-15 21:43:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1598210.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   如何解决   应用程序   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!