Alex
Alex

Reputation: 33

Coded UI Test Builder cannot be started because the file '' is read-only

I have created an new UIMap in my project. I was able to work with it day before this error appeared. Now, when I right click on the new UIMap in VS (Visual Studio) and Click "Edit With Coded UI Test Builder" option - above error pops up.

I tried starting VS as admin, editing the .uitest file in the project folder (bad practice even if you know what you're doing) and saving it (it allowed me to do this), but still won't let me record using the new UIMap.

Additionally the original UIMap still works. I am using different names for UIMap if anyone is wondering.

I am using VS2012.

Any ideas would be appreciated. Thanks.

Upvotes: 1

Views: 1151

Answers (1)

Alex
Alex

Reputation: 33

I have found the problem and A Solution for it, but not the cause. The properties of UIMaps .cs and .Designer.cs files were set to read-only. Please do let me know if anyone does find out what causes this and how to prevent this from occuring in the future.

My Solution:

  1. Right click on the UIMaps .cs and .Designer.cs files in the project folder
  2. Click on Properties
  3. Untick Read-only tickbox

Voilà!

Thanks all.

Upvotes: 0

Related Questions