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

前端 未结 3 1192
执笔经年
执笔经年 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条回答
  •  说谎
    说谎 (楼主)
    2021-01-17 02:47

    Found a solution, Impersonate as a user who has privileges to instantiate COM components.

    Add this to your web.config

    
      
      
       
    
    

提交回复
热议问题