ÎÜñ|‹ø\/\/ñ [ÐëÞrëçã†ëð]'s Blog

Amit Bahree's insight into stuff...

News

And God said "Let there be light". But then the program crashed because he was trying to access the 'light' property of a NULL universe pointer.

blog roll

calendar

intersting finds

reading

techy finds

Could not resolve type [your-type-here], contract cannot be created.

If you are writing an Indigo service and you can an error for something like the one shown below, then essentially you change the interface (i.e. your contract) you implemented in Indigo (now WCF), but forgot to change the interface in the web.config.

<endpoint contract="MY-TYPE-HERE" binding="wsHttpBinding"/>

<snip>
Could not resolve type IMyService, contract cannot be created. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Could not resolve type IMyService, contract cannot be created.

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[InvalidOperationException: Could not resolve type ICalculators, contract cannot be created.]
</snip>

Posted: Dec 21 2005, 04:16 PM by Amit Bahree | with no comments
Filed under: