【问题标题】:Deploying Sharepoint 2010 Webpart crashes Visual Studio部署 Sharepoint 2010 Webpart 使 Visual Studio 崩溃
【发布时间】:2023-03-03 04:18:02
【问题描述】:

我刚刚在 Windows 7 上单独安装了 Sharepoint 2010,我尝试通过简单地选择 Build->Deploy 来部署 Web 部件。 Web 部件不包含任何内容;我只是想测试我是否至少可以部署一个空的。

这是我在 Visual Studio 因“Visual Studio 遇到问题并需要关闭”而崩溃之前得到的输出:

-------- 开始部署:项目:SharePointProject3,配置: 调试任何 CPU ------ 主动部署 配置:默认

运行预部署命令:跳过 部署步骤,因为 部署前命令不是 指定。

回收 IIS 应用程序池:
跳过应用程序池回收 因为没有匹配的包 已找到服务器。

Retract 解决方案:跳过包裹 因没有匹配的包裹而撤消 在服务器上被发现。添加解决方案:

这是应用程序日志中的条目:

应用程序:devenv.exe 框架版本:v4.0.30319 说明:进程因未处理的异常而终止。 异常信息:System.AccessViolationException 堆: 在 EnvDTE.ProjectItem.get_Properties() 在 Microsoft.VisualStudio.SharePoint.ProjectUtils.GetFullPath(EnvDTE.ProjectItem) 在 Microsoft.VisualStudio.SharePoint.HierarchyItem.get_FullPath() 在 Microsoft.VisualStudio.SharePoint.ProjectMember.get_FullPath() 在 Microsoft.VisualStudio.SharePoint.ProjectExtensions.VSPackage.WebPartCommon.b__0(Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile) 在 System.Linq.Enumerable+WhereEnumerableIterator1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext() at Microsoft.VisualStudio.SharePoint.ProjectExtensions.VSPackage.ProjectItemTypeProvider.HasAnyFileChanged(System.Collections.Generic.IEnumerable1)

有人知道问题可能是什么吗?

【问题讨论】:

  • 你在管理员模式下运行 VS 2010 吗?
  • 我不是,但我刚刚尝试过,我得到了同样的错误。
  • 您的用户在 SharePoint 中是否拥有正确的权限?

标签: visual-studio-2010 deployment sharepoint-2010 web-parts


【解决方案1】:

我最终重新安装了 VS2010。现在可以了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-06-07
    • 2011-03-26
    • 1970-01-01
    • 2011-12-16
    • 2011-03-25
    • 1970-01-01
    相关资源
    最近更新 更多