How to deploy COM object Microsoft.Office.Interop to IIS so that my C# WCF service reference will work?

前端 未结 3 1224
执笔经年
执笔经年 2021-01-17 01:59

I am getting an error when trying to run my web application from IIS 7 on my local machine regarding Microsoft.Office.Interop.Outlook that is like the following...

3条回答
  •  旧时难觅i
    2021-01-17 02:34

    If in fact an access violation is occuring with your application and that's the root of your problem, you can deploy the resource with your application by simply setting the reference to copy to the bin directory. You can do this by selecting the reference in your solution explorer, going to properties, and changing the Copy Local property to true.

提交回复
热议问题