posts - 276, comments - 106, trackbacks - 126

My Links

News

My main blog url now is: weblogs.asp.net/meligy

Tag Cloud

Article Categories

Archives

Post Categories

BlogRoll

About Me:

Workaround: VS 2005 SP1 Bug: Cannot Add New Items/Projects using Web Application Projects

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

Print | posted on Friday, September 29, 2006 1:01 PM | Filed Under [ ASP.NET VS.NET 2005 ]

Feedback

Gravatar

# re: Workaround: VS 2005 SP1 Bug: Cannot Add New Items/Projects using Web Application Projects

Had the same issue- Thanks for posting this! Saved me some deep digging :)
10/2/2006 5:10 PM | Geir
Gravatar

# re: Workaround: VS 2005 SP1 Bug: Cannot Add New Items/Projects using Web Application Projects

Big Thx! That worked perfectly
12/14/2006 5:13 PM | Eleasar

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 8 and 4 and type the answer here:

Powered by: