Installation Problems

I've had a ton of installation problems trying to get the Indigo development environment set up on my system. I've tried the installation and uninstallation process or three times and I think I'm having a version compatibility problem between the January and February releases.

I did a complete uninstall of everything and then installed everything again in the following order:

1. WinFx Runtime (February CTP)

http://www.microsoft.com/downloads/details.aspx?FamilyId=F51C4D96-9AEA-474F-86D3-172BFA3B828B&displaylang=en

2. Windows SDK (February CTP)

http://www.microsoft.com/downloads/details.aspx?FamilyId=9BE1FC7F-0542-47F1-88DD-61E3EF88C402&displaylang=en

3. VSTools for WinFX (Orcas)

http://www.microsoft.com/downloads/details.aspx?FamilyId=AD0CE56E-D7B6-44BC-910D-E91F3E370477&displaylang=en

4. Indigo GoLive

http://msdn.microsoft.com/winfx/downloads/golive/downloads/default.aspx

Here's a summary of the results of the above:

  • When I attempt to install the GoLive (Indigo.EXE), I get an error that says "indigo an unhandled exception occurred in xws_reg.exe". The installation seems to complete successfully in spite of this error.
  • I wind up with two versions of System.ServiceModel in the list of references on my system (2.0.0.0 and 3.0.0.0)
  • I am using a very simple HelloWorld application to test this and it will compile correctly with either of these references - Below is the code I'm using:



Uri baseURI =new Uri("http://localhost:8080/hello");
ServiceHost HService = new
ServiceHost(typeof(HelloService), baseURI);
HService.AddServiceEndpoint(typeof(HelloService),
new BasicHttpBinding(), baseURI);
HService.Open();
Console.WriteLine("Service at your service.");
Console.ReadKey();
HService.Close();

  • When I attempt to run the above code with version 3.0.0.0 of System.ServiceModel I get an exception that says:

"Unable to cast object of type 'System.ServiceModel.Configuration.ServicesSection' to type 'System.ServiceModel.Configuration.ServicesSection'."

When I run the code with version 2.0.0.0 of the System .ServiceModel it runs fine, but when I run svcutil to attempt to generate a proxy, I get an error that says "Unable to cast object of type 'System.ServiceModel.Configuration.ClientSection' to 'System.ServiceModel.Configuration.ClientSection'

I'm obviously doing something wrong to wind up with two different versions on my system at the same time. Can someone please tell me how I resolve this situation?

Thanks,

Chuck Cobb

[4412 byte] By [ChuckCobb] at [2007-12-20]
# 1

Hi

Did you uninstall a previous version of the WinSDK and WinFX?

Make sure that the machine.config uses only system.ServiceModel Version=3.0.0.0.

If that does not work - try reinstalling the SDK.

Guy

GuyBurstein at 2007-9-9 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...
# 2

I finally got this to work after about 3-4 attempts. I ran the uninstall program again but got an unhandled exception error when it tried to run xws_reg.exe. I did the install in the sequence recommended in the following link:

http://blogs.msdn.com/madhuponduru/archive/2006/02/22/537622.aspx

The last thing I had to do was edit my machine.config file. It was still pointing to the "2.0.0.0" reference of system.servicemodel. I edited all the "2.0.0.0" references to system.servicemodel to point to "3.0.0.0" and it started working.

Thanks,

Chuck

ChuckCobb at 2007-9-9 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...

Visual Studio Orcas

Site Classified