I built a web application that inserts value to an excel file and deployed in on an Internet server. When I try to run it I realize that the application try to read Microsoft.Office.Interop.Excel reference from my local PC instead of server
I am getting the following error
Exception Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-0000…
… Application tries to reach my local PC
C:\Users\****\documents\visual studio 2010\Projects\
Did I do something wrong when I deployed my application?
Using
Microsoft.Office.Interop.Excelrequires that Excel is installed on the server.Dlls in bin are not enough, since COM system is used to invoke an existing application.
You have to install Excel on the server
Browsing DCOM you have to find CLSID {00024500-0000-0000-C000-0000…
Your application (ASP.NET) must be authorized on the server to access DCOM library. This link shows how to configure permission.