Excel下载无法在服务器/站点中工作,但可以在本地系统中工作 [英] Excel Download Not working in Server/Site but working in Local System

查看:51
本文介绍了Excel下载无法在服务器/站点中工作,但可以在本地系统中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个站点,可以选择下载Excel报告,最近,我们已将其从.net 2.0迁移(使用VS 2010)到4.0,并且托管服务器也已更改.该服务器与以前的服务器相同,该服务器为2003,并安装了MS Excel.但是相同的代码在我的本地系统(XP,VS-2010)中也可以正常工作.当我单击按钮下载excel时,出现以下错误.

异常详细信息:System.NullReferenceException:对象引用未设置为对象的实例.

我在这里http://forums.asp.net/p/1303594/3359738.aspx#3359738遵循了说明.之后,它工作正常.但是同样会发生同样的错误.我们已经在项目中使用了Interope.Excel dll.

如果您知道,请告诉我解决方案.谢谢. .

We have a site, in that we have a option to download excel report, recently we have migrated(using VS 2010) this from .net 2.0 to 4.0 and the hosted server also changed. server same as previous server which is 2003 and MS Excel installed in it. But the same code working fine in my local system(XP, VS-2010). when i click the button to download excel, i m getting the following error.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

I follwed the instruction here http://forums.asp.net/p/1303594/3359738.aspx#3359738. after that it worked fine. But again the same error occurs. We have used Interope.Excel dll in project.

Please Tell me the solution if u know. Thanks. .

推荐答案

请验证防火墙和代理设置..

谢谢,
Ambesha
Please verify the firewall and proxy settings for same..

Thanks,
Ambesha


这篇关于Excel下载无法在服务器/站点中工作,但可以在本地系统中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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