原在Visual Studio 2010中使用outlook2010功能讀取outlook中的郵件等資訊
ApplicationClass ac = new ApplicationClass();
在該類上調試中出現錯誤
Interop type 'Microsoft.Office.Interop.Outlook.ApplicationClass' cannot be embedded. Use the applicable interface instead.
具體解決方法:
1.選擇引用中Microsoft.Office.Interop.Outlook
2.右擊屬性
将屬性Embed Interop Types選擇為False.即不再出現該錯誤.