January 31, 2006

Indigo Gotcha #2 was : WCF Config file intellisense... why hath thou forsake me?

Thank goodness for IntelliCrack, espically for new technologies whose help files are skimpy to non-existent a la Indigo/WCF

I was having the same issue as Bryan, and by changing

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">



allowed vs.net 2k5 to start displaying IntelliCrack again.

Note: I am not complaining, but rather am thankful for schema. XSD is love. ;)


btw, IntelliCrack was my very first Wikipedia contribution! It is fun to contribute, albeit something silly...

Indigo gotcha #1

In working with Indigo (Jan CTP), if you try to generate metadata (WSDL, XSD) from an assembly, make sure it is a dll and not an exe, or you get a misleading error message like:

C:\Projects\Indigo>svcutil.exe "C:\Projects\Indigo\bin\Debug\MyIndigo.exe"
Microsoft (R) Service Model Metadata Tool
[Microsoftr .NET Framework, Version 2.0.50727.129]
c Microsoft Corporation. All rights reserved.

Error: There was an error exporting the ContractDescription loaded from the type: Foo.IBarService, MyIndigo, Version=, Culture=neutral, PublicKeyToken=null
Duplicate contract QNames are not supported.
Another ContractDescription with the Name: IBarService and Namespace: http://services.foo.com/bar/v1 has already been exported.

This happened when I was writing a self-hosted service using a console application and for ease of initial development included the service, message and data contracts in the self-hosted service. I really wanted to get the WSDL out of the service so I could tweak it (that is a whole other post).

Long story short, I changed the project from a console application to a class library and reran svcutil.exe and all was well in Indigo-land again:

C:\Projects\Indigo>svcutil "C:\Projects\Indigo\bin\Debug\MyIndigo.dll"
Microsoft (R) Service Model Metadata Tool
[Microsoftr .NET Framework, Version 2.0.50727.129]
c Microsoft Corporation. All rights reserved.

Generating Metadata Files...

If this post saves even 1 person some debugging time, it was worth it! :)

I'm glad Indigo is (almost) here!


January 24, 2006

The Amazing Message Plant! (and Monkey phone call)

I heard about the The Amazing Message Plant! on the 93X half-a**ed morning show on my drive in this morning. Right now, there are only stock messages, but when they get the custom message feature added, can you even imagine the possibilities?

In a similar genre, Glen was showing us http://www.monkeyphonecall.com/. This site is powered by actual SM2C technology "(simulated monkey to consumer)" to make the magic happen. Again, quite amazing :)

I hope this brightens your day as it has mine :)