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;