日期:2014-05-17  浏览次数:20480 次

asp.net 导出word文档,本地测试没问题,发布到win2008服务器上出错。。。求大师解答。。。

Server Error in '/' Application.
--------------------------------------------


 命令失败 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Exception: 命令失败

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace: 

[Exception: 命令失败]
   ChengLiang_Front.Helpers.WordHelper.SaveWord(String pFileName) +452
   ChengLiang_Front.Admin.AttendanceRecord.AttendanceRecordList.linkBtnExport_Click(Object sender, EventArgs e) +2509
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +155
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691

--------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 


在本地测试N次, 导出没有问题。 但是发布到服务器上就出现了这个错误。。百思不得其解, 毫无头绪啊 (文件保存路径没有问题。)  本地和服务器都装有Office 2010 , 求高手解答。。。。

------解决方案--------------------
神男,哥是纯过来顶你的,不打算回答问题。
------解决方案--------------------
是不是需要设置下格式啊 本人也新手
------解决方案--------------------
既然唐山哥,来了屌丝也来逛逛
------解决方案--------------------
神男,我也是绑定的。
------解决方案--------------------