The Project Configuration Wizard pops up - I simply hit finish, accepting the default values...
The wizard starts setting up the project, and successfully adds the Telerik.Web.UI reference, and creates some "RadSpell" TDF files within the App_Data folder...
But then the wizard fails with the following error dialog:
---------------------------
Error!
---------------------------
Compiling transformation: Assuming assembly reference 'Microsoft.VisualStudio.TextTemplating, Version=8.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' matches 'Microsoft.VisualStudio.TextTemplating, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', you may need to supply runtime policy
-------------
Upon hitting OK, another dialog pops up:
---------------------------
Microsoft Visual Studio
---------------------------
Exception of type 'Telerik.VSX.T4Transform.TemplateException' was thrown.
-----------
And then the rest of the project creation fails.
Anyone else run into this?
5 Answers, 1 is accepted
We haven't come across this problem internally, but it could be that the some of the Telerik.VSX assemblies has failed deploying properly to the GAC. Can you please, start Windows Explorer, navigate to %WinDir%\assembly and check if you have the Microsoft.VisualStudio.TextTemplating assembly and its version?
If you have only 9.0, can you please, uninstall the RadControls for ASP.NET AJAX distribution and then reinstall it?
Let me know if that helps.Kind regards,
Erjan Gavalji
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

On a previous project (within VS2005) we leveraged Microsoft's Guidance Automation Toolkit (GAT / GAX), which I assume is where the v8.1 version of the assembly came from, if its not installed by default with VS2005.
I have subsequently uninstalled the GAT/GAX from this system, but unfortunately the assembly remains within the GAC, and is being fairly stubborn in my attempts to remove it:
Assembly Cache Viewer - Uninstall failed
---------------------------
Assembly 'Microsoft.VisualStudio.TextTemplating' could not be uninstalled because it is required by other applications.
---------------------------
OK
---------------------------
Do you have suggestions to work around this? Perhaps adding a configuration entry somewhere to redirect assembly versions? (I tried devenv.exe.config without success).
Note that this problem is only occuring on my machine (which has VS2005 / VS2008 installed). Other developer's with VS2008 only are not running into this issue. I unfortunately can't wipe / re-install my machine at this time, so some other resolution is required.
Thanks
The same assembly is basically added to the computer by the RadControls for ASP.NET AJAX assembly (I attached it to my previous post). The error could happen because of a glitch on our side (the VSExtensions treat the warning that a binding redirect exists for the Microsoft.VisualStudio.TextTemplating assembly as an error). You said you tried to add a bindingRedirect to the devenv.exe.config. Can you verify one does not exist there? Can you also compare the exact versions of the assembly I sent in my previous post and the 8.1 one, which exists in your machine's GAC?
Looking forward to your reply,Erjan Gavalji
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

Hi Erjan,
The version of the assembly you sent in the zip (8.1.50727.42) is the same version as the one I have installed in the GAC. As mentioned, I also have the 9.0.30729.1 version installed.
I do have a binding re-direct in devenv.exe.config - mapping all version to the 9.0 version (this was actually already in place):
--
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.TextTemplating" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
</dependentAssembly>
--
I wonder...Should I be mapping backwards to the 8.1 version?
Trying something now...
Interesting - I just removed the re-direction from the devenv.exe.config, and the templates now work without issue - hooray!
My only concern is that we have in-house codegen tooling which makes extensive use of T4 and the VS2008 version of the engine - I'm wondering now if I've crippled our internal tooling by removing this redirection - guess I'll find out in the next while.
Is this bug (Telerik interpreting the binding redirect as an error) slotted for correction in an upcoming release, just in case i need to re-establish the re-direct?
Thanks for your help,
Roy
Yes, it is a bug on our side to interpret the bindingRedirect warning as an error. We already fixed it (thank you for reporting that!) and the next official update (SP2 or Q1 2009) will have the fix applied.
Please, excuse us for the troubles. I want to thank you for your help identifying the problem. Your Telerik account is updated.Kind regards,
Erjan Gavalji
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.