i c开发者_Go百科ant seem to figured out why i cant install nuget pakcage
ive tried running this in visual studio 2010 package manager
Install-Package MvcMailer
but i get an error shown below
PM> install-package MvcMailer
Install-Package : The context is already tracking a different entity with the same resource Uri.
At line:1 char:16
+ install-package <<<< MvcMailer
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
PM>
any ideas how to resolve this issue? tnx
From MSDN:
this error will occur if deserialized type dont really match the data Type of the entity being tracked. a fix for this is via using no tracking option.
more information can be found here
http://msdn.microsoft.com/en-us/library/system.data.services.client.mergeoption.aspx
also, it is advisable to use a new, different Data Service Context for every logical operation like insert and queries context.
精彩评论