Question

I installed Visual Studio 2013 and having problem with Custom Check in policies. I added new Key and Value to the registry:

HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\12.0\TeamFoundation\SourceControl\Checkin Policies\MyPolicyName

Basically I followed everything in this link: http://msdn.microsoft.com/en-us/library/bb668980.aspx., but I still get error:

Internal error in "My policy". Error loading the "MyPolicy" policy (The policy assembly 'MyPolicy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not registered.). Installation instructions: To install this policy, read InstallInstructions.txt.

Previously it was built in .NET 4.5 and worked fine with VS 2012. I though maybe building it in .NET 4.5.1 might fix the problem, but it didn't. What should I do to fix it? and where is the InstallInstructions.txt located?

UPDATE:

I am using TFS 2012 and SQL Server 2012. Visual Studio 2013 Premium (not preview).

Thanks for the help!

Was it helpful?

Solution

Finally I figured what was wrong. I had two versions of Visual Studio installed. 2012 and 2013. Year ago I created a custom cheking policy using VS 2012 and I was trying to make it work with VS 2013. I tried rebuilding in VS 2013 and it didn't work. I tried rebuilding it in a machine that only has VS 2013 and figured that it was still referencing to VS 2012 libraries. So I basically removed all references added VS2013 libraries. That solved the issue.

here at msdn forum.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top