.NET Forum / Visual Studio.NET / IDE / March 2006
ItemTemplates messed up
|
|
Thread rating:  |
AndreasP - 21 Feb 2006 10:33 GMT After installing VS 2005 Prof. and SQl Server 2005 Dev. I have no access to the most important Item Templates in the IDE. No matter if it is a WinForm-Project or a ASP.NET-Project and no matter which language I use. A whole bunch of tempaltes are missing (class, form, masterpage just to mention some of them). I deinstalled and reinstalled both products;nothing changed. Then I found out, that I am not alone with this problem due to some hints in Google. There the problem was solved either by <devenv /installvstempates> or <devenv /setup>. I tried both, but nothing changed.
So I went deeper into the problem and found out, that the folder <Visual Studio 8\Common7\IDE\ItemTemplateCache> got messed up. This folder (and it's subfolders) seems to be responsible for the templates that are shown in the <add new item> dialog, because if you delete this folder, all items are missing in that dialog and when you run <devenv /installvstempates> it is recreated.
This folder and it's subfolders are a complete mess. In the <ItemTemplateache> folder you can find the files <form.cs>, <form.designer.cs> and <windowsform.vstemplate>. There should be only one file here: <cache.bin>. In the language subfolder of <visualbasic> folder I found some .zip-folders that should have been placed one layer deeper in the 1033-folder. The same folders where there... but empty. So some of the .zip-folders where the templates should be placed are empty, some contain the wrong templates and some contain mor than one template. Manual correction does not work; I think the location of the templates is stored in the <cache.bin> file. And there is no! pattern. If you find a wrong template in one folder of c# it is another wrong template in the same folder in vb and vice versa.
Can anyone tell me what's wrong here and how to solve this? Where is that corrupted part that maps the templates to the wrong folders?
"Gary Chang[MSFT]" - 22 Feb 2006 06:28 GMT Hi Andreas,
>Can anyone tell me what's wrong here and how to solve this? >Where is that corrupted part that maps the templates to the >wrong folders? I haven't experienced such an issue on my side. It appears your VS2005's installation has already been corrupted.
In this scenario, I suggest you uninstall your VS2005 completely from your machine--after you uninstall VS2005 via its setup program, please also delete the its corresponding installation directory( ..\Visual Studio 8\)
By the way, if you install the VS2005 Pro alone, does this problem occur?
Thanks!
Best regards,
Gary Chang Microsoft Community Support ====================================================== PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00 AM PST, February 14, 2006. Please complete a re-registration process by entering the secure code mmpng06 when prompted. Once you have entered the secure code mmpng06, you will be able to update your profile and access the partner newsgroups. ====================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from this issue. ====================================================== This posting is provided "AS IS" with no warranties, and confers no rights. ======================================================
AndreasP - 22 Feb 2006 10:01 GMT Hi Gary,
> ... --after you uninstall VS2005 via its setup program, please also > delete the its corresponding installation directory( ..\Visual Studio 8\) > > By the way, if you install the VS2005 Pro alone, does this problem occur? As far as I remember, I deleted the directory after deinstallation. And yes, when reinstalling I installed VS2005 first and checked, if the templates are there. And they were not! But maybe I should try one more time :-( , but I hope (and think) that there is another ultimative solution for that problem. (--> could this be a bug?)
Thanks and regards,
Andreas
"Gary Chang[MSFT]" - 23 Feb 2006 03:06 GMT Hi Andreas,
>And yes, when reinstalling I installed VS2005 first >and checked, if the templates are there. >And they were not! Another possibility to cause the corruption of VS2005 installation is the machine had installed any Pre-RTM VS2005 product(e.g. 2005 CTP, beta or RC version), and it hadn't been remove completely.
In such scenario, I suggest you can use an automatic uninstall utility to remove the VS2005 Pre-RTM product:
Pre-RTM Visual Studio 2005 Automatic Uninstall Tool http://blogs.msdn.com/danielfe/archive/2005/10/27/485863.aspx
Thanks!
Best regards,
Gary Chang Microsoft Community Support ====================================================== PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00 AM PST, February 14, 2006. Please complete a re-registration process by entering the secure code mmpng06 when prompted. Once you have entered the secure code mmpng06, you will be able to update your profile and access the partner newsgroups. ====================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from this issue. ====================================================== This posting is provided "AS IS" with no warranties, and confers no rights. ======================================================
AndreasP - 23 Feb 2006 08:16 GMT Hi Gary,
> Another possibility to cause the corruption of VS2005 installation is the > machine had installed any Pre-RTM VS2005 product(e.g. 2005 CTP, beta or RC > version), and it hadn't been remove completely. Nope, I never had any pre-product installed on my machine (except VS2003, which I deinstalled before).
Regards,
Andreas
"Gary Chang[MSFT]" - 24 Feb 2006 10:26 GMT OK, Andreas, I got it.
How about the another attempt to uninstall and reinstall your VS2005? And has this problem happened to any other machine on your side?
Thanks!
Best regards,
Gary Chang Microsoft Community Support ====================================================== PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00 AM PST, February 14, 2006. Please complete a re-registration process by entering the secure code mmpng06 when prompted. Once you have entered the secure code mmpng06, you will be able to update your profile and access the partner newsgroups. ====================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from this issue. ====================================================== This posting is provided "AS IS" with no warranties, and confers no rights. ======================================================
AndreasP - 24 Feb 2006 16:17 GMT > How about the another attempt to uninstall and reinstall your VS2005? And > has this problem happened to any other machine on your side? I did not yet have time to reinstall VS2005 (maybe I can find some time this weekend, otherwise I will do it next week). And no, on my side this problem did not happen to any other machine. But as I told in my first posting, it seems that other users have had this problem as well, as you can find some postings in Google.
Best regards,
Andreas
AndreasP - 27 Feb 2006 08:57 GMT Hi Gary,
I tried it this weekend. I reinstalled VS2005 TWICE on my machine, trying different things.Nothing changed. I even installed it on another testmachine. Everithing fine. I am frustrated. It is quite clear now, that it is a specific problem with my machine, but I can't believe that this problem is ONLY on my side, because of the postings in Google.
And I want to repeat it again. This problem should be spotted quite easily. When <devenv /installvstemplates> creates a completely devastated <ItemTemplatesCache>-folder, it should be a task of 10 minutes for an envolved programmer at MS to spot the culprit. There has to be a scheme how the temlates should be saved and this scheme is broken, or the routine that handles the scheme and saves the temlates, gives room for producing garbage.
I hope anyone who is responsible for that part at MS will read these lines and pick up the problem to solve it.
Regards,
Andreas
"Gary Chang[MSFT]" - 28 Feb 2006 07:37 GMT Hi Andreas,
We do understand your concern on this issue. Since I am unable to repro the problem on our side, I have to wait for the result of your reinstallation at first.
So in this scenario, I have already checked our internal database for your problem, and found a workaround to a similar symptom like your problem. I suggest you may try the following step for a test:
1. Delete the contents of %ProgramFiles%\Microsoft Visual Studio 8\Common7\IDE\ ProjectTemplatesCache and ItemTemplatesCache directory 2. Run devenv.exe and close it. 3. Run deveve.exe /setup 4. Wait for devenv.exe to asynchronously setup the template. It could take a while. 5. Run DevEnv.exe and check whether the templates are back or not.
Thanks!
Best regards,
Gary Chang Microsoft Community Support ====================================================== PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00 AM PST, February 14, 2006. Please complete a re-registration process by entering the secure code mmpng06 when prompted. Once you have entered the secure code mmpng06, you will be able to update your profile and access the partner newsgroups. ====================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from this issue. ====================================================== This posting is provided "AS IS" with no warranties, and confers no rights. ======================================================
AndreasP - 28 Feb 2006 09:19 GMT Hi Gary,
at the moment I have deinstalled everything. The fourth (or is it the fifth) installation is awaiting. As soon as it is reinstalled again, I will try your workaround.
Btw, something eventually important came to my mind, what differed from a normal installation, when I installed VS2005 first: I installed SQL Server 2005 Developer with all options first. Thereafter I wanted to install VS2005. As I have several partitions on my drive, I wanted to install it in partition G:. I was informed, that I cann't change the installation path, because of another product (VS2005 Premier Partner Edition ENU) in C: (as I found out it is installed with SQL Server if VS2005 is not yet installed on the machine) and therefore VS installations that follow up have to use this destination. But I was also informed, that I can deinstall this product, and then install VS2005 Prof. in the desired destination. And so I did. Maybe this was the reason for the confusion (even if it is hard to imagine why).
So what I am going to do now, is to install everything as I did the first time and see what happens. If you are trying (and if it is possible) to reproduce that behaviour, you could follow my installation steps on a plain xp where no previous installation of VS2005 resided before.
Anyway, as I said before, if nothing changes, I will try your workaround.
Regards,
Andreas
> Hi Andreas, > [quoted text clipped - 34 lines] > rights. > ====================================================== "Gary Chang[MSFT]" - 28 Feb 2006 11:21 GMT >Anyway, as I said before, if nothing changes, I will try your workaround. That's OK, Andreas.
By the way, I highly suggest you install the VS2005 first, then install the SQL Server 2005 developer to your Windows XP machine.
Thanks!
Best regards,
Gary Chang Microsoft Community Support ====================================================== PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00 AM PST, February 14, 2006. Please complete a re-registration process by entering the secure code mmpng06 when prompted. Once you have entered the secure code mmpng06, you will be able to update your profile and access the partner newsgroups. ====================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from this issue. ====================================================== This posting is provided "AS IS" with no warranties, and confers no rights. ======================================================
AndreasP - 01 Mar 2006 08:33 GMT Hi Gary,
so that's it. I installed it exactly the same way I did it the first time.
1.) SQL Server 2005 Developer Ed.: when I had the chance to change the destination folder I took the G: partition (Analysis and Reporting Services follow this path). What I have overseen the first time here was, that it is not done in changing the path for the first entry in the list, because the installation path for the last three entries - I think it's the Integration and Notification Services and the tools (including the Premier Partner Edition of VS2005) remains on C:). You have to change it extra. I left it this way, because I wanted to reproduce the first installation. 2.) VS 2005: because of the previously installed Premier Partner Edition it had to be installed on C:.
And now guess what: Everything was fine. All ItemTemplates were in their original folders!!!
I am happy that I can work now with VS2005, but I am far from satisfied. First of all I spent hours and hours of installing, deinstalling and reinstalling. Second, VS resides not in the partition, where user programs normaly reside on my machine and.this minimizes space in C:.
You highly suggested to install VS first, but this should - no it MUST - not have any impact on the result! But It seems to have. This is not ok. I would be happy if you could reproduce this behaviour and/or pass this case to the responsible team for further analysis.
Regards,
Andreas
"Gary Chang[MSFT]" - 01 Mar 2006 10:29 GMT Hi Andreas,
>And now guess what: Everything was fine. All ItemTemplates >were in their original folders!!! That's great! I am delight to know the problem disappears. :)
>I am happy that I can work now with VS2005, but I am far from >satisfied. [quoted text clipped - 3 lines] >I would be happy if you could reproduce this behaviour and/or >pass this case to the responsible team for further analysis. I do understand the inconvenience you suffered when you installed the VS2005, it must have spent much time. I know that.
I will forward this issue to our corresponding product team to review. And we do thank your valuable feedback on this issue to us, it helps us to discover and prepare to fix the hidden problem of our product in the future.
Thanks for your understanding and patience!
Best regards,
Gary Chang Microsoft Community Support ====================================================== PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00 AM PST, February 14, 2006. Please complete a re-registration process by entering the secure code mmpng06 when prompted. Once you have entered the secure code mmpng06, you will be able to update your profile and access the partner newsgroups. ====================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from this issue. ====================================================== This posting is provided "AS IS" with no warranties, and confers no rights. ======================================================
AndreasP - 02 Mar 2006 11:39 GMT Hi Gary,
> I will forward this issue to our corresponding product team to review. And
> we do thank your valuable feedback on this issue to us, it helps us to > discover and prepare to fix the hidden problem of our product in the > future. > > Thanks for your understanding and patience! As a "reward" for my understanding and patience ;-) I would be happy if you could give me feedback on the result of the review by the product team (if you get that feedback). I would be happy to hear if I really found a hidden bug (why me!?!?), or if it was a problem of my machine.
Thanks for your help and patience.
Best regards,
Andreas
"Gary Chang[MSFT]" - 03 Mar 2006 02:09 GMT That's no problem, Andreas.
If I got any results from the product team, I will forward it to you. :)
Have a nice weekend!
Best regards,
Gary Chang Microsoft Community Support=============== PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00 AM PST, February 14, 2006. Please complete a re-registration process by entering the secure code mmpng06 when prompted. Once you have entered the secure code mmpng06, you will be able to update your profile and access the partner newsgroups. ====================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from this issue. ====================================================== This posting is provided "AS IS" with no warranties, and confers no rights. ======================================================
Free MagazinesGet these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...
|
|
|