部署 Sharepoint 2010 Web 部件使 Visual Studio 崩溃
我刚刚在 Windows 7 上独立安装了 Sharepoint 2010,并且尝试通过简单地选择“构建”->“部署”来部署 Web 部件。 Web 部件不包含任何内容;我只是想测试一下是否至少可以部署一个空的。
以下是在 Visual Studio 崩溃并显示“Visual Studio 遇到问题需要关闭”之前得到的输出:
------ 部署已开始:项目:SharePointProject3,配置: 调试任何CPU ------ 主动部署 配置:默认
运行预部署命令:跳过 部署步骤因为 预部署命令不是 指定。
回收 IIS 应用程序池:
跳过应用程序池回收 因为没有匹配的包 已找到服务器。撤回解决方案:跳过包 由于没有匹配的包而撤回 在服务器上找到了。添加解决方案:
这是应用程序日志中的条目:
应用程序: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+WhereEnumerableIterator
1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext() 在 Microsoft.VisualStudio.SharePoint.ProjectExtensions.VSPackage.ProjectItemTypeProvider.HasAnyFileChanged(System.Collections.Generic.IEnumerable
1)
有谁知道问题可能是什么?
I just installed Sharepoint 2010 stand-alone on Windows 7 and I'm trying to deploy a web part by simply selecting Build->Deploy. The web part doesn't contain anything; I just wanted to test if I can at least deploy an empty one.
Here's the output I get before Visual Studio crashes with "Visual Studio has encountered a problem and needs to close":
------ Deploy started: Project: SharePointProject3, Configuration:
Debug Any CPU ------ Active Deployment
Configuration: DefaultRun Pre-Deployment Command: Skipping
deployment step because a
pre-deployment command is not
specified.Recycle IIS Application Pool:
Skipping application pool recycle
because no matching package on the
server was found.Retract Solution: Skipping package
retraction because no matching package
on the server was found. Add Solution:
This is the entry in the application log:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at EnvDTE.ProjectItem.get_Properties()
at Microsoft.VisualStudio.SharePoint.ProjectUtils.GetFullPath(EnvDTE.ProjectItem)
at Microsoft.VisualStudio.SharePoint.HierarchyItem.get_FullPath()
at Microsoft.VisualStudio.SharePoint.ProjectMember.get_FullPath()
at Microsoft.VisualStudio.SharePoint.ProjectExtensions.VSPackage.WebPartCommon.b__0(Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile)
at System.Linq.Enumerable+WhereEnumerableIterator1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
1)
at Microsoft.VisualStudio.SharePoint.ProjectExtensions.VSPackage.ProjectItemTypeProvider.HasAnyFileChanged(System.Collections.Generic.IEnumerable
Does anyone have an idea what the problem could be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最终重新安装了VS2010。现在可以了。
I ended up reinstalling VS2010. Now it works.