I have a asp.net MVC application i am getting 500 - Internal server error. My code is working fine what i have figured out is whenever i am initializing the Microsoft word class then i am getting this error if i remove the initialization part then it works fine any suggestion??
//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;
You must be missing Microsoft.Office.Interop.Word.dll
or its dependent file from your deployment.
You can get detailed error message by disabling customErrors
in web.config
file of deployment
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.