部署步骤“安装SharePoint应用程序”时出错:无法转换类型的COM对象 [英] Error occurred in deployment step 'Install app for SharePoint': Unable to cast COM object of type

查看:73
本文介绍了部署步骤“安装SharePoint应用程序”时出错:无法转换类型的COM对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这已于6/7/2018开始


当我尝试调试以前一直在运行的提供商托管应用时,我收到此错误。 我尝试创建一个新的提供者托管解决方案,它也执行相同的操作。


我在Windows 10上使用Visual Studio 2015 Update 3. 这是在线sharepoint


部署步骤"安装SharePoint应用程序"时出错:无法转换'System'类型的COM对象。 __ComObject'到接口类型'VSLangProj.VSProject'。此操作失败,因为对于具有IID"{2CFB826F-F6BF-480D-A546-95A0381CC411}"的接口的COM
组件的QueryInterface调用由于以下错误而失败:加载类型库/ DLL时出错。 (HRESULT异常:0x80029C4A(TYPE_E_CANTLOADLIBRARY))。


有没有人有修复?

解决方案

您好


有你安装了库吗?


https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM/


如果您已安装,其他项目是否正常工作(控制台应用程序/ Web应用程序) )?


如果其他项目有相同的错误,这应该与VS有关,对于这种情况,我建议你发帖在下面的Visual Studio论坛中。


https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8d703f03-8a3e-4b5b-9912-9815f5b44763/problem-while-casting-project- class-object-to-vsproject?forum = vsx


我们推荐的原因如果发布得当,您将获得最合格的受访者群体,而定期阅读论坛的其他合作伙伴可以分享他们的知识。


感谢您的理解。


最好的问候,



This started 6/7/2018

When I try to debug a proviser hosted app that had previously been working I get this error.  I have tried to create a new provider hosted solution and it performs the same.

I'm using Visual Studio 2015 Update 3 On Windows 10.  This is sharepoint online

Error occurred in deployment step 'Install app for SharePoint': Unable to cast COM object of type 'System.__ComObject' to interface type 'VSLangProj.VSProject'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2CFB826F-F6BF-480D-A546-95A0381CC411}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).

Does anyone have a fix?

解决方案

Hi,

Have you installed the library?

https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM/

If you had installed, does other projects working fine(console application/web application)?

If other project has same error, this should related to VS, for such case, I would suggest you post in Visual Studio forum below.

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8d703f03-8a3e-4b5b-9912-9815f5b44763/problem-while-casting-project-class-object-to-vsproject?forum=vsx

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge.

Thanks for your understanding.

Best Regards,

Lee


这篇关于部署步骤“安装SharePoint应用程序”时出错:无法转换类型的COM对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆