2015-06-09 12 views
6

Próbuję zaktualizować zależności NuGet w moim projekcie sieci Mvc. Idę do mojego projektu, klikając go prawym przyciskiem myszy i przechodzę do zarządzania pakietami NuGet. Pojawia się menedżer pakietów NuGet i klikam "Aktualizacje", a konkretny pakiet, który próbuję zaktualizować, to "Strony WWW Microsoft ASP.NET" i "jQuery". Jeśli kliknę jedną z nich i kliknę przycisk aktualizacji, pojawi się okno aktualizacji, a następnie prawie natychmiast ulegnie awarii. Program Visual Studio zostanie uruchomiony ponownie, a po otwarciu projektu nic nie zostanie zaktualizowane. Błąd polega na próbie zapisu do chronionej pamięci.NuGet zawiesza się Visual Studio 2013

Czy ktoś ma jakieś sugestie na temat, co może być przyczyną tego? Używam Visual Studio 2013 Update 4 na górze Windows 7.

aktualizacji

w następstwie na to pytanie, chciałem tylko dodać trochę więcej szczegółów. Uruchomiłem Visual Studio z /log flag mając nadzieję uzyskać więcej informacji. Oto zrzut niektórych ostatnich wpisów w pliku:

<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> 

Nic nie wydaje mi się niezwykłe lub nie na miejscu. Spojrzałem w górę GUID przedstawił w pliku dziennika:

{5FCC8577-4FEB-4D04-AD72-D6C629B083CC} - NuGetConsole.Implementation.PowerConsoleToolWindow 
{80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2} - SSMS DTE 12.0 

Również miałem pierwotnie myślał ten został wyizolowany do jednego konkretnego projektu. Podobno nawet kiedy idę stworzyć nowy projekt, to samo dzieje się, gdy próbuję go zaktualizować.

Ostatnią rzeczą, którą zrobiłem przed tym wszystkim, było zainstalowanie aktualizacji systemu Windows. Pamiętam, że jedna z aktualizacji, które przeszły, to Sql Server 2014 Update 1. Używam Management Studio 2014, ale nie mogę myśleć o jakiejkolwiek relacji między NuGet i Management Studio.

Mam nadzieję, że ta informacja pomoże mi lub pomoże komuś rozwiązać ten problem! Jakieś pomysły?

Aktualizacja 2

jestem wklejając mój wyjątek tutaj, pobrane z podglądu zdarzeń:

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, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext() 
    at System.Linq.Enumerable.Any[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, 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, 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, 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, NuGet.IPackage, System.Collections.Generic.IEnumerable`1<NuGet.PackageOperation>, System.Action, NuGet.ILogger) 
    at NuGet.VisualStudio.VsPackageManager.UpdatePackages(NuGet.IProjectManager, System.Collections.Generic.IEnumerable`1<NuGet.IPackage>, System.Collections.Generic.IEnumerable`1<NuGet.PackageOperation>, Boolean, Boolean, 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, NuGet.Dialog.Providers.PackageItem, NuGet.VisualStudio.IVsPackageManager, 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, System.Object, Boolean) 
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 
    at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() 
    at System.Threading.ThreadPoolWorkQueue.Dispatch() 
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() 

Jest StackOverflow Question podobny do mojego, ale dla Visual Studio 2010. Nasze ślady stosu są identyczny. Niestety, na pytanie nigdy nie udzielono odpowiedzi.

Finał Aktualizacja

I wreszcie stałe to po prostu wchodząc w konfiguracji programu Visual Studio i naprawy instalacji.

+0

czy próbujesz go w trybie debugowania? – Sushil

+0

@Sushil - Tak. Nie próbuję tego jednak budować. – Icemanind

+0

hmm .. zwykle dostaję go, gdy próbuję go zaktualizować podczas debugowania. czy masz jakieś inne wtyczki do studia wizualnego, które mogłyby mi to spowodować? – Sushil

Odpowiedz

1

Napraw swój VS 2013, następnie zaleca się odinstalowanie Menedżera pakietów Nuget, a następnie pobranie i ponowne zainstalowanie go.