Geeks With Blogs

News Please visit me at my new blog!!

profile for Aligned at Stack Overflow, Q&A for professional and enthusiast programmers
"free in Christ Jesus from the law of sin and death." Romans 8:2 (ESV) Check out the Falling Plates video on YouTube.
more about the Gospel
And then listen to Francis Chan speaking at LifeLight in SD.



Programming and Learning from SD

I was having all kinds of problems with a new machine after installing VS 2012 RTM. First the Nuget Package Manager Console started spewing out this error: “

The following error occurred while loading the extended type data file: , C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 11.0\COMMON7\IDE\EXTENSIONS\V4QZZZ13.WWT\Modules\NuGet\NuGet.Types.ps1xml : File skipped because of the following validation exception: File C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 11.0\COMMON7\IDE\EXTENSIONS\V4QZZZ13.WWT\Modules\NuGet\NuGet.Types.ps1xml cannot be loaded because its execution is blocked by software restriction policies. For more information, contact your system administrator..

There were errors in loading the format data file: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 11.0\COMMON7\IDE\EXTENSIONS\V4QZZZ13.WWT\Modules\NuGet\NuGet.Format.ps1xml, , C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 11.0\COMMON7\IDE\EXTENSIONS\V4QZZZ13.WWT\Modules\NuGet\NuGet.Format.ps1xml : File skipped because of the following validation exception: File C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 11.0\COMMON7\IDE\EXTENSIONS\V4QZZZ13.WWT\Modules\NuGet\NuGet.Format.ps1xml cannot be loaded because its execution is blocked by software restriction policies. For more information, contact your system administrator..

File C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 11.0\COMMON7\IDE\EXTENSIONS\V4QZZZ13.WWT\Modules\NuGet\profile.ps1 cannot be loaded because its execution is blocked by software restriction policies. For more information, contact your system administrator.”

Our admin said there wasn’t any policies in place. After that I started getting UAC that I couldn’t run vs_premium.exe to uninstall and I couldn’t run Microsoft Web Platform Installer because Microsoft Corporation wasn’t a trusted publisher (that should have been the clue). ???? So I disabled UAC and uninstalled VS 2012, then VS 2010, because both of them had the problem. After re-installing 2010, the problem was still there.

So I finally found a post that talked about removing the publisher from the untrusted area.

Hopefully this won’t happen to you, but if it does, just remove it from the untrusted publisher through IE and hopefully that will fix it.

Posted on Tuesday, August 21, 2012 10:41 AM | Back to top


Comments on this post: Nuget Errors and Microsoft not a trusted publisher?

# re: Nuget Errors and Microsoft not a trusted publisher?
Requesting Gravatar...
Which publisher do we need to reomove ?
Left by nikhil on Dec 04, 2013 2:05 PM

# re: Nuget Errors and Microsoft not a trusted publisher?
Requesting Gravatar...
@nikhil -> I think it would be "Microsoft".
Left by Kevin on Dec 04, 2013 2:36 PM

# re: Nuget Errors and Microsoft not a trusted publisher?
Requesting Gravatar...
Yes, thank you so much Kevin, it fixed my bug.
Left by nikhil on Dec 04, 2013 3:10 PM

# re: Nuget Errors and Microsoft not a trusted publisher?
Requesting Gravatar...
Thank you Kevin! It really helped me!
Left by Shu on Jan 22, 2014 6:33 PM

# re: Nuget Errors and Microsoft not a trusted publisher?
Requesting Gravatar...
thanks for the post, but that has to do with this certificate nuget?
Left by Thomas Jackson on Jul 13, 2015 8:02 PM

# re: Nuget Errors and Microsoft not a trusted publisher?
Requesting Gravatar...
Thanks for the Solution KEVIN LOGAN.. i was looking for this solution for long time.. and this really helped me a lot..
Left by Abdul Shakoor on Jul 28, 2015 12:25 AM

Your comment:
 (will show your gravatar)


Copyright © Aligned | Powered by: GeeksWithBlogs.net