asp.net – NuGet不断崩溃Visual Studio 2013
我正在尝试更新我的Mvc Web项目中的NuGet依赖项.我要去我的项目,右键单击它,然后去管理NuGet包.弹出NuGet包管理器,然后单击“更新”,我要更新的特定包是“Microsoft ASP.NET Web Pages”和“jQuery”.如果我单击其中任何一个,然后单击更新按钮,弹出更新窗口,然后几乎立即崩溃.然后Visual Studio将重新启动,当我打开我的项目时,没有任何更新.该错误是关于尝试写入受保护的内存的问题.
有没有人对可能造成这种情况有什么建议?我在Windows 7上运行Visual Studio 2013 Update 4. 更新 作为这个问题的后续内容,我只是想补充一些细节.我使用/log flag运行Visual Studio,希望获得更多信息.这是文件中一些最后条目的转储: <entry> <record>749</record> <time>2015/06/10 15:24:27.421</time> <type>Information</type> <source>VisualStudio</source> <description>Entering function CVsPackageInfo::HrInstantiatePackage</description> <guid>{77A5A151-6A9B-4D08-BC38-340AB29566E2}</guid> </entry> <entry> <record>750</record> <time>2015/06/10 15:24:27.421</time> <type>Information</type> <source>VisualStudio</source> <description>Begin package load [CctSharedPackage]</description> <guid>{77A5A151-6A9B-4D08-BC38-340AB29566E2}</guid> </entry> <entry> <record>751</record> <time>2015/06/10 15:24:27.514</time> <type>Information</type> <source>VisualStudio</source> <description>End package load [CctSharedPackage]</description> <guid>{77A5A151-6A9B-4D08-BC38-340AB29566E2}</guid> </entry> <entry> <record>752</record> <time>2015/06/10 15:24:29.748</time> <type>Information</type> <source>VisualStudio</source> <description>Entering function CVsPackageInfo::HrInstantiatePackage</description> <guid>{BC9CA0B3-BB4F-449A-967C-29A8FAE32086}</guid> </entry> <entry> <record>753</record> <time>2015/06/10 15:24:29.748</time> <type>Information</type> <source>VisualStudio</source> <description>Begin package load [Microsoft VSDesigner WCF Package]</description> <guid>{BC9CA0B3-BB4F-449A-967C-29A8FAE32086}</guid> </entry> <entry> <record>754</record> <time>2015/06/10 15:24:29.763</time> <type>Information</type> <source>VisualStudio</source> <description>End package load [Microsoft VSDesigner WCF Package]</description> <guid>{BC9CA0B3-BB4F-449A-967C-29A8FAE32086}</guid> </entry> <entry> <record>755</record> <time>2015/06/10 15:24:30.653</time> <type>Information</type> <source>VisualStudio</source> <description>Entering function VBDispatch::GetTypeLib</description> </entry> <entry> <record>756</record> <time>2015/06/10 15:24:30.653</time> <type>Information</type> <source>VisualStudio</source> <description>Leaving function VBDispatch::GetTypeLib</description> <guid>{80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2}</guid> </entry> <entry> <record>757</record> <time>2015/06/10 15:24:30.653</time> <type>Information</type> <source>VisualStudio</source> <description>Entering function VBDispatch::GetTypeLib</description> </entry> <entry> <record>758</record> <time>2015/06/10 15:24:30.653</time> <type>Information</type> <source>VisualStudio</source> <description>Leaving function VBDispatch::GetTypeLib</description> <guid>{80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2}</guid> </entry> <entry> <record>759</record> <time>2015/06/10 15:24:32.621</time> <type>Information</type> <source>VisualStudio</source> <description>Entering function CVsPackageInfo::HrInstantiatePackage</description> <guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid> </entry> <entry> <record>760</record> <time>2015/06/10 15:24:32.621</time> <type>Information</type> <source>VisualStudio</source> <description>Begin package load [NuGetPackage]</description> <guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid> </entry> <entry> <record>761</record> <time>2015/06/10 15:24:32.637</time> <type>Information</type> <source>VisualStudio</source> <description>End package load [NuGetPackage]</description> <guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid> </entry> 对我来说,似乎没有什么不寻常或不合适的地方.我查看了日志文件中显示的guid: {5FCC8577-4FEB-4D04-AD72-D6C629B083CC} - NuGetConsole.Implementation.PowerConsoleToolWindow {80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2} - SSMS DTE 12.0 我原本以为这被隔离到一个特定的项目.显然即使我去创建一个新项目,当我尝试更新它时也会发生同样的事情. 在这一切发生之前我做的最后一件事是安装Windows更新.我记得其中一个更新是Sql Server 2014 Update 1.我使用的是Management Studio 2014,但我想不出NuGet和Management Studio之间的任何关系. 所以希望这些信息可以帮助我或帮助其他人解决这个问题!有什么想法吗? 更新2 我在这里粘贴我的异常,从事件查看器中检索: 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_Kind() at NuGet.VisualStudio.ProjectExtensions+<>c__DisplayClassb.<GetChildItems>b__a(EnvDTE.ProjectItem) at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[[System.__Canon,mscorlib,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089],[System.__Canon,PublicKeyToken=b77a5c561934e089]].MoveNext() at System.Linq.Enumerable.Any[[System.__Canon,PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable`1<System.__Canon>) at NuGet.ProjectSystemExtensions.DeleteFiles(NuGet.IProjectSystem,System.Collections.Generic.IEnumerable`1<NuGet.IPackageFile>,System.Collections.Generic.IEnumerable`1<NuGet.IPackage>,System.Collections.Generic.IDictionary`2<NuGet.FileTransformExtensions,NuGet.IPackageFileTransformer>) at NuGet.ProjectManager.RemovePackageReferenceFromProject(NuGet.IPackage) at NuGet.ProjectManager.Execute(NuGet.PackageOperation) at NuGet.ProjectManager.Execute(NuGet.IPackage,NuGet.IPackageOperationResolver) at NuGet.ProjectManager.AddPackageReference(NuGet.IPackage,Boolean,Boolean) at NuGet.ProjectManager.UpdatePackageReference(NuGet.IPackage,Boolean) at NuGet.VisualStudio.VsPackageManager+<>c__DisplayClass5a.<UpdatePackageReference>b__58() at NuGet.VisualStudio.VsPackageManager.RunProjectAction(NuGet.IProjectManager,System.Action) at NuGet.VisualStudio.VsPackageManager.UpdatePackageReference(NuGet.IProjectManager,NuGet.IPackage,Boolean) at NuGet.VisualStudio.VsPackageManager+<>c__DisplayClass1a.<UpdatePackages>b__18() at NuGet.VisualStudio.VsPackageManager+<>c__DisplayClass67.<ExecuteOperationsWithPackage>b__65() at NuGet.VisualStudio.VsPackageManager.RunSolutionAction(System.Action) at NuGet.VisualStudio.VsPackageManager.ExecuteOperationsWithPackage(NuGet.IProjectManager,System.Collections.Generic.IEnumerable`1<NuGet.PackageOperation>,System.Action,NuGet.ILogger) at NuGet.VisualStudio.VsPackageManager.UpdatePackages(NuGet.IProjectManager,NuGet.ILogger) at NuGet.Dialog.Providers.UpdatesProvider.ExecuteCommand(NuGet.IProjectManager,NuGet.Dialog.Providers.PackageItem,NuGet.VisualStudio.IVsPackageManager,System.Collections.Generic.IList`1<NuGet.PackageOperation>) at NuGet.Dialog.Providers.OnlineProvider.ExecuteCommandOnProject(EnvDTE.Project,System.Collections.Generic.IList`1<NuGet.PackageOperation>) at NuGet.Dialog.Providers.OnlineProvider.ExecuteCore(NuGet.Dialog.Providers.PackageItem) at NuGet.Dialog.Providers.PackagesProviderBase.OnRunWorkerDoWork(System.Object,System.ComponentModel.DoWorkEventArgs) at System.ComponentModel.BackgroundWorker.OnDoWork(System.ComponentModel.DoWorkEventArgs) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(System.Object) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr,System.Object[],System.Object,System.Object[] ByRef) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage,System.Runtime.Remoting.Messaging.IMessageSink) at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(System.Object) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,System.Threading.ContextCallback,Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() 有一个类似于我的StackOverflow Question,但对于Visual Studio 2010.我们的堆栈跟踪是相同的.不幸的是,问题从未得到解答. 最后更新 我最后通过进入Visual Studio设置并修复安装来解决这个问题. 解决方法
修复你的VS 2013,然后建议卸载Nuget Package Manager,然后下载并重新安装它.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- asp.net – Web部署错误到IIS – 应用程序池managedRuntime
- asp.net – IIS 7 URL重写规则未应用
- asp.net-mvc – Sammy.js和Knockout.js =>模板没有模板?
- asp.net-mvc – Asp.net MVC / Web Api路由:需要路由一点点
- 如何为ASP.NET WebAPI 2中使用路由属性的特定控制器添加Mes
- ASP.NET:web.config在哪里/如何缓存?
- asp.net文件上传带进度条实现案例(多种风格)
- 如果ASP.NET破坏其ID,我如何从javascript访问DIV?
- asp.net-mvc – POST后重定向不会更改URL
- ASP.net RequiredFieldValidator VisualStudio 2012
- 当使用SignalR和传输模式长轮询时,Asp.net会话永
- asp.net – 如何将kendo Ui下拉选择值的ID传递给
- ASP.NET MVC 4 EF5与MySQL
- asp.net – 如何将HTML页面转换为.ASPX页面并向其
- asp.net-mvc-3 – 为什么两个类,视图模型和域模型
- asp.net-mvc – 异步使用ASP.NET MVC中的WebClie
- 连续部署到ASP.NET的ASP.NET核心应用程序
- asp.net-mvc – 如何构建一个企业MVC应用程序,业
- asp.net-mvc – 在ASP.NET MVC 3中等效的Flash
- asp.net – 授权和验证对静态内容的访问(pdf)