"The class diagram service failed to load."

imediately followed by another message: "The operation could not be completed".

I got the two messages when I create a new C# project and then choose "View Class diagram" on Form1.cs.

After this happens I can't open either code or designer window for Form1!

I'm using Visual Studio Team Suite RC (8.0.050727.86)

[323 byte] By [FrodeFiplingdal] at [2008-2-11]
# 1

Frode,

Does this happen only for Forms or for others as well? Did you install RC bits on a machine that had Beta 2 previously installed?

Does it happen for a VB Form?

Thanks,
Ramesh Rajagopal.
Class Designer Team.

RameshRajagopal at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...
# 2

I removed old bits like Beta2 with a cleanup utility found at http://go.microsoft.com/fwlink/?LinkID=47598

Yes, it happens both for VB and C#

I have reported a bug on this issue (http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=d1e86534-2133-4a21-86a3-01a284790d23)

I installed SQL Server 2005 Developer Edition (September CTP) before VSTS RC!

My OS is Windows 2003 Server with SP1 (english)

FrodeFiplingdal at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...
# 3
This is most likely associated with a unclean uninstallation. Please refer to another thread - http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=91302, and see if it helps.
YuXiao at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...
# 4
I have cheked all assemblies in the Global Assembly Cache (assembly version 8.0.0.0)

Most of the assemblies are marked with 8.0.50727.26 as the file version. I think this is means the VSTS Release Candidate.

A few assemblies are marked with 8.0.50727.24:
* Microsoft.Vsa.Hosting.Designtime
* Microsoft.VisualBasic.vsa
* Microsoft.Vsa.hosting

A few others are marked with 8.0.50215.44: Is this Beta2 assemblies?
* CodeCoveragreAnalysis
* Microsoft.Visualstudio.Debugger.Interop
* Microsoft.VisualStudio.VCCodeModel (also 8.0.50727.26!)
* Microsoft.VisualStudio.VCProject (also 8.0.50727.26!)
* Microsoft.VisualStudio.VCProjectEngine (also 8.0.50727.26!)

I tried to uninstall the lower three assemblies without success!

Most interesting assemblies:
* Microsoft.VisualStudio.EnterpriseTools.ClassDesigner
* Microsoft.VisualStudio.EnterpriseTools.SdmDesigner

There is no version information into theese assemblies!!!!!

Hopes this will help to solve my problem ;-)

FrodeFiplingdal at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...
# 5
I forgot to verify the assemblies with assembly version set to 2.0.0.0!

Most of theese assemblies are marked with file version 2.0.50727.26

A few assemblies are marked with 2.0.50215.44 (Maybe Beta2)
* Microsoft.VisualStudio.Designer.Interfaces
* Microsoft.VisualStudio.Package.Project
* System.Compiler

Where can I find a complete list of assemblies with assembly name, assembly version and file version for the VSTS RC?

FrodeFiplingdal at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...
# 6
Today, I decided to uninstall RC bits one more time.

1) I started with the cleanup tools found at http://go.microsoft.com/fwlink/?LinkID=47598

2) This time I also removed the following directories:
* C:\Common Files\Microsoft Shared\MSEnv
* C:\Common Files\Microsoft Shared\MSDeigners8
* C:\Common Files\Microsoft Shared\Help8
* C:\Program Files\Microsoft Visual Studio 8

3) I removed some assemblies from the GAC marked with assembly version 8.0.0.0 and file version 8.0.50727.24 + 8.0.50727.26 + 8.0.50215.44.

4) Installed VSTS RC

The error still exists :-(

The assemblies in the GAC are back. Some of them with wrong file versions - see previous message.

When is the RTM ready for download for MSDN subscribers?

FrodeFiplingdal at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...
# 7
Expect an announcement of the RTM bits becoming available for MSDN subscribers soon.

You may want to try deleting the old assemblies and running a repair of the install. This has worked for some other customers.

Thanks,
Ramesh Rajagopal.
Class Designer Team.

RameshRajagopal at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...
# 8
My cleanup process:
1) Cleanup tool found at http://go.microsoft.com/fwlink/?LinkID=47598
2) I removed a lot of assemblies (see prevoius message).
3) Removed some directories (see prevoius message)
4) Installed VSTS RC: No erorors/warnings
5) After setup completed I checked the file versions on some of the assemblies in the GAC:
* Most assemblies marked with file versions 8.0.50727.26 (wich I belive is correct)
* Some assemblies are marked with file versions 8.0.50727.24 and others with 50215.44
* The assemblies: Microsoft.VisualStudio.EnterpriseTools.ClassDesigner and
Microsoft.VisualStudio.EnterpriseTools.SdmDesigner have no version information!!!!

I wish I had a complete list of all assemblies (name, assembly version, file version, file directory, located in GAC) for the VSTS RC.

Do you think MS will solve this installation issue in the RTM release?

Is the VSTS RTM release available some weeks before nov 7th?

FrodeFiplingdal at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...
# 9
The items that you list, especially the 2 assemblies with no version information, are known problems in VS 2005 beta 2. Those files will be left behind if beta 2 is uninstalled in the incorrect order. You can use the cleanup tool I have posted at http://astebner.sts.winisp.net/Tools/ttool.zip to fix these issues and update the unversioned assemblies with versioned ones.

I've also described the issue with those 2 unversioned assemblies at http://blogs.msdn.com/astebner/archive/2005/08/27/457248.aspx.

Hope this helps....

AaronStebner at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...
# 10
It solved the problem for me. Thanks :)
MichaelAbiEzzi at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...
# 11

Thanks Aaron,

That did it for me!!!

keithGard at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...
# 12

I am still having problems with Class designer and would appreciate any help I can get to resolve this issue.

I have gone through the solution posted, and I still have the problem. I downloaded the the utility from your blog and ran it. It indicated that no problem was found.

I went to the registry HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Packages\{DD1683A7-5A4C-4234-81B3-A4CC91DBEAC9} removed the entry "SkipLoading". Now I am getting the following error:

Package 'visual studion Class Designer Package' has failed to load properly (GUI {DD1683A7-5A4C-4234-81B3-A4CC91DBEAC9}), Please contact package vendor for assistance. Application restart......)

Originally, I had installed Beta 2, then I had installed Express edition and now I have the release version (Ver 8.0.50727.42 (RTM.050727-4200)).

Version for Microsoft.VisualStudio.EnterpriseTools.ClassDesigner is 8.0.0.0.

I have gone through installing and un-unstalling Development studio quite a few times and now and prefer not to do that unless it can fix this prob.em.

Regards,

Saleem

SaleemYusuf at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...
# 13

I have problems downloading this tool. Can you share with me your downloaded copy of this tool ?

Thanks,

Aims

Asim_DIT at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...
# 14

Asim,

The solution was not simple. I had to manually delete all references to older version of .NET studios and had to delete older version of assemblies. They were all left behind.

Unfortunately, I cannot help you since I don't remember the version numbers of assemblies that I deleted and you can accidentally delete wrong assemblies or information from the registry and it could make things worse. Hopefully someone from Microsoft will contact you like they did to me and help you out.

Saleem

SaleemYusuf at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Class Designer...

Visual Studio

Site Classified