繁体   English   中英

ASP.NET MVC部署500-内部服务器错误

[英]Asp.net mvc deployment 500 - Internal server error

我有一个asp.net MVC应用程序,我得到500-内部服务器错误。 我的代码工作正常,我想出的是,每当我初始化Microsoft word类时,如果我删除了初始化部分,就会出现此错误,那么它对任何建议都可以工作?

 //Create new instance of word and create a new document
                Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();
               // Word.Document doc = null;

                //Properties for the new word document, so everything happens in the background. If this isn’t set all the word documents will be visible
               // object readOnly = false;
               // object isVisible = false;

您的部署中必须缺少Microsoft.Office.Interop.Word.dll或其从属文件。

您可以通过在部署的web.config文件中禁用customErrors来获取详细的错误消息

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM