无法加载一个或多个请求的类型

无法加载一个或多个请求的类型

本文介绍了在部署时,无法加载一个或多个请求的类型。检索LoaderExceptions属性以获取更多信息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的智慧结束时。 尝试部署sharepoint场解决方案 - 任何sharepoint解决方案 - 但是我收到此错误消息。 

At my wits end.  Trying to deploy a sharepoint farm solution--any sharepoint solution--but I receive this error message. 

无法加载一个或多个请求的类型。检索LoaderExceptions属性以获取更多信息。

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

我已经在互联网上搜索了许多死胡同并且没有可行的解决方案。 在同一台Windows 2012 R2服务器上运行Sharepoint 2010 Enterprise和Visual Studio 2015 Enterprise。 尝试部署服务器场解决方案。 不确定它是否相关,
但每次打开项目时都是未处理的例外。 任何帮助都是巨大的。

I have scoured the internet with many dead-ends and no viable solution.  Running Sharepoint 2010 Enterprise and Visual Studio 2015 Enterprise on the same Windows 2012 R2 server.  Trying to deploy a farm solution.  Not sure if it is related, but an Unhandled Exception everytime I open a project.  Any help would be tremendous.

调用类型为'Microsoft的方法'projectService_ProjectInitialized'时发生未处理的异常。 VisualStudio.SharePoint.WorkflowDesignerSupport.PackageBootstrapper,Microsoft.VisualStudio.SharePoint.WorkflowDesignerSupport,Version = 14.0.0.0,Culture = neutral,
PublicKeyToken = b03f5f7f11d50a3a'。例外:System.IO.FileNotFoundException。消息:无法加载文件或程序集"Microsoft.Activities.Design.Services,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35"或其依赖项之一。
系统找不到指定的文件。

Unhandled exception occurred while calling method 'projectService_ProjectInitialized' of type 'Microsoft.VisualStudio.SharePoint.WorkflowDesignerSupport.PackageBootstrapper, Microsoft.VisualStudio.SharePoint.WorkflowDesignerSupport, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Exception: System.IO.FileNotFoundException. Message: Could not load file or assembly 'Microsoft.Activities.Design.Services, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

推荐答案

>>尝试部署sharepoint场解决方案 - 任何sharepoint解决方案 - 但是我收到此错误消息。 

>>不确定它是否相关,但每次打开项目时都会出现未处理的异常。 
 

您的意思是无论您在Visual Studio 2015中打开现有的SharePoint或新的SharePoint项目,都会遇到未处理的异常但无法部署?

Do you mean no matter you open an existing SharePoint or a new SharePoint project in Visual Studio 2015 you will get an Unhandled Exception and could not deploy?

如果只出现在一个特定的SharePoint项目中,则问题应该与项目本身有关。请尝试创建一个新项目,然后将项目文件逐个移动到新项目,这可以帮助您确认哪个文件导致此
问题。

If it only occurs with one specific SharePoint project, the problem should be related to your project itself. Please try create a new project and then move the project file one by one to the new project, which could help you confirm which file causes this issue.

如果新的SharePoint项目也有此问题,请尝试以下步骤来解决您的问题,以确认它是否与Visual Studio 2015相关。

If the new SharePoint project also has this issue, please try following steps to troubleshooting your problem to confirm whether it is related to Visual Studio 2015.


  1. 以管理员身份运行Visual Studio 2015确保它具有足够的权限来访问所有需要的程序集。
  2. 检查Visual Studio 2015是否有任何更新。
  3. 检查是否有与SharePoint相关的组件的任何更新。
  4. 以安全模式运行Visual Studio以检查是否有任何扩展/插件导致此问题。
  5. 尝试修复Visual Studio 2015。

最好的问候,

Weiwei

Best Regards,
Weiwei


这篇关于在部署时,无法加载一个或多个请求的类型。检索LoaderExceptions属性以获取更多信息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 20:09