AspAlliance.com LogoASPAlliance: Articles, reviews, and samples for .NET Developers
URL:
http://aspalliance.com/articleViewer.aspx?aId=1052&pId=-1
Gotcha: Fixing Error with VS 2005 SP1 Beta and older Web Application Project Templates
page
by Scott Guthrie
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 13569/ 27

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.

Resources

Product Spotlight
Product Spotlight 

©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-24 6:17:05 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search