Windows Apps VB.Net出错,您的应用程序中发生了未处理的异常 [英] Windows Apps VB.Net got error, unhandled exception has occurred in your application

查看:88
本文介绍了Windows Apps VB.Net出错,您的应用程序中发生了未处理的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我在VB.Net 2010中创建了一个Windows应用程序。我收到错误您的应用程序中发生了未处理的异常。如果您单击继续,应用程序将忽略此错误并尝试继续。



我添加了名为Imports Excel = Microsoft.Office.Interop.Excel的引用。



是因为这个错误来了吗?在本地计算机上没有问题工作正好安装了becoz VS2010,但是在windows server 2008中有问题。我只是将exe文件复制并粘贴到服务器2008中。





谢谢

Basit。

Dear All,

I created a Windows Apps in VB.Net 2010. I got error "unhandled exception has occurred in your application. if you click continue, the application will ignore this error and attempt to continue.

I add the reference called Imports Excel = Microsoft.Office.Interop.Excel.

Is because this error is coming? In local computer not have problem working fine becoz VS2010 installed, but in windows server 2008 have problem. I just copy and paste exe file into server 2008.


Thanks
Basit.

推荐答案

你如果没有安装ms office,则无法使用Microsoft.Office.Interop.Excel。

您是否在Windows服务器上安装了Excel?
You can't use Microsoft.Office.Interop.Excel without having ms office installed.
Did you install Excel on your windows server?


这篇关于Windows Apps VB.Net出错,您的应用程序中发生了未处理的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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