开发者

MvcMailer: The context is already tracking a different entity with the same resource Uri

开发者 https://www.devze.com 2023-04-09 07:47 出处:网络
i c开发者_Go百科ant seem to figured out why i cant install nuget pakcage ive tried running this in visual studio 2010 package manager

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消