Update-Package -Reinstall possible conflict with source control - by LukePuplett

Status : 

  Not Reproducible<br /><br />
		The product team could not reproduce this item with the description and steps provided.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


1
0
Sign in
to vote
ID 790312 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 6/17/2013 6:50:17 AM
Access Restriction Public

Description

Reinstalling all NuGet packages causes file access error when trying to open .csproj file(s).

"Recursive read lock acquisitions not allowed in this mode."

Sign in to post a comment.
Posted by LukePuplett on 3/24/2014 at 6:38 AM
Hi Clay

I can't reproduce it either now, although I am stopped towards the end of a long update by another problem. Here's the tail of the console output:

I don't expect you to troubleshoot this. Just putting it here FYI. There's clearly more work to do around this "solution wide reinstall" story.


...
Successfully removed 'Moq 4.1.1308.2120' from CompanyName.Integro.WebApi.Tests.
Uninstalling 'Moq 4.1.1308.2120'.
Successfully uninstalled 'Moq 4.1.1308.2120'.
Reinstalling 'Newtonsoft.Json 5.0.6' in project 'CompanyName.Integro.WebApi.Tests'.
Removing 'Newtonsoft.Json 5.0.6' from CompanyName.Integro.WebApi.Tests.
Successfully removed 'Newtonsoft.Json 5.0.6' from CompanyName.Integro.WebApi.Tests.
Uninstalling 'Newtonsoft.Json 5.0.6'.
Successfully uninstalled 'Newtonsoft.Json 5.0.6'.
Reinstalling 'CompanyNamePortableCore 1.0.28.0' in project 'CompanyName.Integro.WebApi.Tests'.
Skipped reinstalling package 'CompanyNamePortableCore 1.0.28.0' in project 'CompanyName.Integro.WebApi.Tests' because the package does not exist in the package source.
Reinstalling 'System.Spatial 5.2.0' in project 'CompanyName.Integro.WebApi.Tests'.
Removing 'System.Spatial 5.2.0' from CompanyName.Integro.WebApi.Tests.
Successfully removed 'System.Spatial 5.2.0' from CompanyName.Integro.WebApi.Tests.
Uninstalling 'System.Spatial 5.2.0'.
Successfully uninstalled 'System.Spatial 5.2.0'.
Reinstalling 'WebCore 1.0.28.0' in project 'CompanyName.Integro.WebApi.Tests'.
Skipped reinstalling package 'WebCore 1.0.28.0' in project 'CompanyName.Integro.WebApi.Tests' because the package does not exist in the package source.
Attempting to resolve dependency 'Microsoft.AspNet.WebPages (≥ 2.0.20710.0)'.
Attempting to resolve dependency 'Microsoft.Web.Infrastructure (≥ 1.0.0.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.Razor (≥ 2.0.20710.0 && < 2.1)'.
Attempting to resolve dependency 'WebGrease (≥ 1.1.0)'.
Attempting to resolve dependency 'Antlr (≥ 3.4.1.9004)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 5.0.4)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.WebHost (≥ 4.0.20710.0 && < 4.1)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Core (≥ 4.0.20710.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Client (≥ 4.0.20710.0 && < 4.1)'.
Attempting to resolve dependency 'Microsoft.Net.Http (≥ 2.0.20710.0 && < 2.1)'.
Attempting to resolve dependency 'Microsoft.Data.OData (≥ 5.2.0 && < 5.3.0)'.
Attempting to resolve dependency 'System.Spatial (= 5.2.0)'.
Attempting to resolve dependency 'Microsoft.Data.Edm (= 5.2.0)'.
Update-Package : Already referencing a newer version of 'Microsoft.AspNet.WebApi.WebHost'.
At line:1 char:1
+ Update-Package -Reinstall
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo         : NotSpecified: (:) [Update-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand

PM>
Posted by Microsoft on 3/19/2014 at 12:28 PM
Hello LukePuplett,

Thanks for the bug report. I'm a member of the NuGet team who has been assigned to investigate this issue. Unfortunately, I can't reproduce this using a recent build of NuGet 2.8.1 and a recent build of VS 2013 Update 2. To attempt to reproduce this, I installed the Git Source Control Provider extension, created a new ASP.NET MVC application with unit tests, initialized a Git repro, and then ran Update-Package -reinstall as described in your bug report.

If you have more information on the situations in which this problem occurs, you can re-activate this issue or open a new one in this tool.

Many thanks,
Clay Compton
NuGet Team
Posted by Helen [MSFT] on 6/18/2013 at 12:10 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Macy [MSFT] on 6/17/2013 at 7:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Posted by LukePuplett on 6/17/2013 at 7:18 AM
I should add that the Git repo needs initializing so the Git support comes alive in VS.