Gotcha: Fixing Error with VS 2005 SP1 Beta and older Web Application Project Templates

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 bug, 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. 

33 Comments

  • Scott,

    Is everything okay with the Web deployment Projects or do those need uninstalling too?

    Cheers,

    Phil.

  • Hi Scott.
    Do you know when SP1 will be released?

    Do you know if any of the fixes are to do with saving CSS files that causes VS to crash?

    Thanks
    Steve

  • Cool! I had no idea what the status for SP1 was, but if it's beta now, it can't be long before the final right?

    I have some question though:
    * Is there a release date that we can hear from you?
    * If not, is there a way to get notified of the release?

    Also, I see on the feedback pages that display of nested masterpages is not fixed. Bummer! And I also conclude from the feedback pages that Cassini still can't start a WebSite from the root.

    That were two things that I was really hoping to see fixed. SP2 perhaps? ;-)

  • Is there a realease date on the final SP1?

    Thanks!

    /Jonas

  • Hi Phil,

    You shouldn't have any problems with Web Deployment Packages. The reason you need to uninstall the Web Application Project option is because we use the same package ID with the SP1 bits and separate download (since you obviously don't want to have to change your project files).

    Hope this helps,

    Scott

  • Hi Jonas/Mike/Scott,

    We don't have a final SP1 date published - since right now we are waiting to see what issues people find with the Beta.

    SP betas differ from regular release betas in that we don't check-in "beta code" to SPs. Instead, we only check in product fixes - and those need to be thoroughly tested. So the stability of an SP beta is typically extremely high (since it is simply a roll-up of a lot of a lot of fixes).

    Steve -- can you describe (or send me mail) on the CSS issue you mention above with the final release of VS 2005? We can then check to make sure that is fixed.

    Mike -- nested master pages is a pretty big feature, and we typically don't add features to SPs (since the goal is for them to be very stable releases as opposed to have feature creep). That is why it isn't in the SP. I will check on whether the root option for Cassini is available for web-site projects now (I thought it was). I do know that it is available for web application projects.

    Hope this helps,

    Scott

  • Great to know we are on our way to sp1(release) for vs2005

  • Dear Scott,

    VS 2005 Web Application Projects don't automatically support generating a strongly-typed Profile class proxy.
    Is this problem solved in this Service Pack?

  • Hi Scott,
    Question, why is there so much drill down within VS Studio and it's structure.

  • Hi David,

    VS is pretty flexible and pluggable, which is why there are several levels of structures within the item/project template system.

    The core VS actually doesn't know anything special about C# or VB - they use the same plug-in mechanisms for projects that other languages use as well.

    Hope this helps,

    Scott

  • Hi Majid,

    The Profile object still needs to be generated separately. The good news is that there is a free add-in that will manage this for you: http://www.gotdotnet.com/workspaces/workspace.aspx?id=406eefba-2dd9-4d80-a48c-b4f135df4127

    Hope this helps,

    Scott

  • Hi Scott, what Majid asked, and I also want to know now that he mentioned it is if that problem will be fixed in the SP1.

    Best regards
    Jonas

  • Hi Scott, does SP1 apply to VWD Express Edition as well (I hope so!!!!). Thanks.

  • Hi Eirik,

    If you can send me email detailing these issues I will loop folks in on the thread to comment on them.

    Thanks,

    Scott

  • Hi Denny,

    If you click the "stop" button for debugging, does the play button get re-enabled?

    Thanks,

    Scott

  • Hi Scott. Will the LINQ May 2006 CTP still install and work on VS2005 SP1 beta. If so do we need to uninstall/reinstall ?

  • I couldnt get SP1 :( I got a page saying it was unavailable or I didnt have permissions. It quoted 17ea8f49-dbb2-4227-b368-cea3270aaaa4.

    I'll try again tomorrow!

  • Hi James,

    Let me know if you still have problems and I'd be happy to loop you in with a few folks to help.

    Thanks,

    Scott

  • First time checking out your blog...pretty cool stuff.

  • Wow, what is going on in this install? I think I could have installed VS 2005 twice in the time it takes this thing to run.

  • Hi JP,

    The service pack basically updates pretty much every file created by VS -- so it unfortunately does take awhile to update.

    Sorry about that,

    Scott

  • Hi Paul,

    Can you send me an email that summarizes these issues you are seeing with the debugger? I can then loop you in with some folks here who can help investigate and figure out what is going on.

    Thanks,

    Scott

  • Hi Scott,

    I would send you an email, however I can't find your address anywhere :) Maybe I didn't look in the right places. But I've found out one way to reproduce the problem - kind of. Just put a BP in the middle of some program (doesn't need to be a big program, a "hello word" console app does it), then press STOP while execution is paused on that BP, and keep moving the mouse in circles (or hit the control key repeatedly or keep moving the caret with the cursor keys). As long as you do this the START button and the configuration dropdown lists will not be re-enabled. So if you're a little nervous and keep moving the mouse around while you wait until you can start you program over again, you can wait for a long time :)
    Might be some kind of timer that's reset while the user is working so that the various checks/updates that are performed when it expires don't delay the user while (s)he's actively working.

    As I said before, no big deal for me, once I know it behaves like that I can live with it.

  • Hi Scott,

    Now that the beta testing is complete for VS 2005 SP1, do you have a time frame for the release date?

  • Hi Mark,

    The VS team is just finishing up SP1 now. It shouldn't be too much longer now.

    Sorry for the delay,

    Scott

  • Hi Scott,
    Where can I find the list of fixes included in VS 2005 SP1? I had some problems converting a web app from 2003 to 2005 and I want to see if they are on the list.
    Thank you,
    Judy

  • Hi Judy,

    I believe the servicing team is putting together a comprehensive list of the fixes now that they will be posting shortly.

    If you could send me details about the specific issue you were running into via email, I can check to see if it is on the list and/or have someone help you.

    Thanks,

    Scott

  • I'm very concerned that the IDE designer issues have not been resolved with Web App Projects.

    Specifically:

    1. Controls being "unselectable" when clicking on them (when page is based on a Master page) -- and NO, I'm not talking about the controls actually on the Master.

    2. 60 second debug context switch issue

    3. the default to negative coordinate settings when changing control layout property so the control is moved out of view and not visible (have to manually change the coordinates)

    4. Horrible multi-control selection performance -- I mean just miserably slow even on a very fast system (two processors, 4GB RAM, 10K rpm drives)

    5. Mouse bug -- need to move the mouse to get web app to display (they build but don't display unit I move the mouse).

    A detailed bug fix list and an approximate release date would be VERY helpful. And is soon 1 week, 1 month, 1 quarter, 1 year?

    Thanks, Rob.

  • Hi Rob,

    Can you send me email (scottgu@microsoft.com) with more details about the errors you are seeing? I can then loop someone in from the team to help figure out why you are seeing what you are seeing.

    Thanks,

    Scott

  • Christmas is nearly upon, but still no SP1, despite all the promises...

  • Hi Vitaly,

    SP1 is just being finished up now and should be out very shortly.

    Hope this helps,

    Scott

  • How do I install SP1 on top of SP1 Beta?

    Do I have to uninstall VS first?

  • Interestingly enough, I have a successful SP1 install, but still encountered the above error whenever attempting to add a new item to my WAP. Attempted the above fix running devenv.exe/InstallVSTemplates, resulting in an "out of date templates" error. Checked the Application log and was advised to run devenv /installvstemplates; ran that and now all good to go!
    Ted

Comments have been disabled for this content.