Gotcha: Fixing Error with VS 2005 SP1 Beta and older Web Application Project Templates
page 1 of 2
Published: 08 Oct 2006
Unedited - Community Contributed
Abstract
In this article, Scott examines how to fix error with Visual Studio 2005 SP1 Beta and previous web application project templates
by Scott Guthrie
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 15885/ 39
Article Contents:

Introduction

Republished with Permission - Original Article

Two weeks ago we released the VS 2005 SP1 Beta.  You can download it for free by visiting and registering on the Microsoft Connect Site

This release contains several hundred fixes for customer reported bugs with VS 2005.  It also includes built-in support for the VS 2005 Web Application Project, which we previously released earlier this year as a standalone download (SP1 adds a few additional features to it, fixes a few bugs, and has some additional performance tunings for it).  Before installing VS 2005 SP1 (both the Beta and final release), you'll need to uninstall any previous installs of the VS 2005 Web Application Project standalone download that you have on your machine. 

One bug that we've seen some developers run into is an issue where - if they have installed an older build of the VS 2005 Web Application Project on their machine before - they get the below error dialog message when they try to add new items to a Web Application project immediately after installing the new SP1 Beta Support for it:

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 caused by a bug with the SP1 Beta setup.  You can fix this with the SP1 Beta by closing VS 2005, and then open up the "Visual Studio 2005 Command Prompt" (there is an icon for it in your Start Menu->Visual Studio 2005->Visual Studio Tools folder), and run this command from within it:

devenv.exe /InstallVSTemplates

This will correctly re-configure the add item templates and make everything work fine. 

Hope this helps,

Scott

P.S. The setup issue will be fixed for the final SP1 release - so the steps above are only needed with the Beta.


View Entire Article

User Comments

Title: how to uninstall the standalone web application plug-in   
Name: Marina
Date: 2007-02-08 11:11:54 AM
Comment:
How is possible touninstall the standalone web application plug-in?
Thanks
Title: saved many hours...   
Name: Björn
Date: 2006-12-19 10:10:35 AM
Comment:
Thanks, your article saved lots of time for me. Dificult to figure out it by myself.
Title: thanks   
Name: efe
Date: 2006-12-11 3:17:26 PM
Comment:
thanks very much. it works.
Title: Just thanks   
Name: Stefan le Roux
Date: 2006-11-26 4:44:49 AM
Comment:
Just wanted to let you know, your article helped me. I had this problem and after running the simple solution everything was fine again. Thanks,
Stefan from South Africa.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2017 ASPAlliance.com  |  Page Processed at 2017-08-23 1:45:44 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search