As we in Silver Key are mad about new stuff, BETAs and RCs, we were installing Visual Studio 2005 Service Pack 1 RC on a couple of development machines we have, and as I mentioned in my previous post, we are already using Web Application Projects for months now.
Web Application Projects model is integrated into SP1, so, it asked us to remove the existing version, which is typical. After installing the service pack, we opened a project to just continue work, and BOOM. We were unable to add any new form to the web application (a content form, a page etc..). We got the following message:
Error: this template attempted to load an untrusted component 'Microsoft.VisualStudio.Web.Application, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates.
This is a bug in the service pack as, it doesn't update the project template and item template cache folders. So, if you already have an earlier version of Web Application Projects, you'll not be able to add new items as in our case, if you never installed web application projects, you will not be able to create a new web application project originally!
To work around it, just open Visual Studio 2005 Command Prompt and type “devenv.exe /InstallVSTemplates”, and hit Enter. This will create the template cache for you.
DIGG It