Visual Studio 2012 Coded UI Testing Failed to Load Package

I have a project that I have to add to a coded UI.

If I create a test, it throws the following error:

The following package could not be loaded: C: \ Users \ AppData \ Local \ assembly \ dl3 \ W2RG6NJ4.G6O \ TMOZA01A.527 \ ad952cf5 \ PublicAssemblies \ Microsoft.VisualStudio.TestTools.UITesting.dll. Coded UI Test is now in an inconsistent state. Remove this package and restart Visual Studio to work with Coded UI Test.

Then it adds the Coded UI project to the project, and if I try to write it, it gives me the same error while generating the code.

I've seen similar errors, but with an extension tool and not with Microsoft.VisualStudio.TestTools.UITesting.dll

This is the error I am getting when I try to write.

Unable to load the following package: C: \ Users \ AppData \ Local \ assembly \ dl3 \ W2RG6NJ4.G6O \ TMOZA01A.527 \ ad952cf5 \ PublicAssemblies \ Microsoft.VisualStudio.TestTools.UITesting.dll

Can anyone help me solve this problem?

+3


source to share


2 answers


I had the same problem today. I had an existing application made in Visual Studio 2010. A few months ago we updated it to Visual Studio 2012 and now we have updated 1. When we added the coded ui project we got the message above. One of the projects in the solution is the mvc 3 project (made in visual studio 2010 and updated every time). This project was a problem for the unsuccessful creation of a coded ui project. We think this is the T4Scaffolding nuget package.



How To Fix: Restart VS 2012 with your project. Unload the MVC project. Add a coded interface test project. Everything should work correctly. Reload your mvc project. Everything should work.

+1


source


Just in case someone else gets this problem for me, it turns out that you have to run VS 2012 as administrator. When VS fails to load as administrator, I get this error. When I start VS using "Run as Administrator" everything works fine.



+1


source







All Articles