无法导出到asp.net中的excell [英] unable to export to excell in asp.net

查看:66
本文介绍了无法导出到asp.net中的excell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须将数据导出到excel.在localhost上运行时,代码可以正常运行,但无法在服务器中正常运行,正在重新加载页面而不显示任何错误消息.

I have to export the data to excel. When running on localhost, the code is working fine but its not working in the server, the page is getting reloaded without displaying any error message.

推荐答案

[
This[^] may help.


如果它在本地运行,但在服务器上不运行,那么很明显出现配置问题.您可能缺少依赖项,或者您的应用程序配置有错误.找出正在发生的事情的明智方法是为给定的应用程序打开失败请求跟踪"并读取日志.有时其中的有价值信息不会出现在响应中.
If it works in local, but not in the server then it is clear that there is a configuration issue. Either you are missing dependencies, or your application configuration has errors. A wise way to find out what is going on is to turn on Failed Request Tracing for the given application and read the logs. There is sometimes valuable information in there doesn''t appear in the response.


您需要类似 EPPlus [^ ]

Excel是一个桌面应用程序-因此它将在开发过程中出色地工作,并且很有可能在服务器上不可用,即使它是-在IIS中使用它也不是一个好主意,因为这是Windows服务.

最好的问候
Espen Harlinn
You need something like EPPlus[^]

Excel is a desktop application - so it will work wonderfully during development, and quite possibly not be available on the server, and even if it is - it''s usually not a good idea to use from IIS, as this is a windows service.

Best regards
Espen Harlinn


这篇关于无法导出到asp.net中的excell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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