'Microsoft.Office.Interop.Excel.ApplicationClass' has no constructors defined

今天部署项目到IIS时候,遇到这个问题,具体解决办法如下:

Disable embedding of Interop types for this assembly (References -> Microsoft.Office.Interop.Outlook (right click) -> Properties -> Set 'Embed Interop Types' to False)



你可能感兴趣的:(Office,Interop)