The Problem Solver

Tell me and I will forget
Show me and I will remember
Involve me and I will understand
- Confucius -

Google Ads

This Blog

Syndication

Search

Tags

News





  • View Maurice De Beijer's profile on LinkedIn

Community

Email Notifications

Explore

Archives

Type x does not match type x errors

Sometimes you can get these kinds of errors using the new Workflow Foundation ReceiveActivity when property binding the incoming value. So why does this happen Well it appears the validation is comparing the type of the original interface to to the type of the proxy generated. In this case because the actual type passed isn't shared between the client and the server.

But as the generated proxy type actually gets exactly the same name as the original, even though it is a different type defined in a different assembly, it appears as though comparing two the same types says they are not equal.

So is there a problem in the code?

No there isn't because the client doesn't have a reference to the original type, which is why the proxy was generated in the first place, the proxy is always used. So the error is bogus and should not be reported.

So this is a but that is going to be fixed? Well apparently not according to this bug report feedback. Apparently we just have to ignore the error Sad which sort of sucks big time. As far as I am concerned an incorrectly reported error is a serious bug and should be fixed as it is likely to waste a lot of time and might result in serious problems being ignored.

 

So if you agree that problems like this should be fixed please go here and vote for this to be fixed!

Enjoy!

Published Tue, Apr 15 2008 20:30 by Maurice
Filed under: , , , ,

Comments

# palsy disorders@ Thursday, May 22, 2008 2:11 PM

We are committed to bringing the benefits of bioscience to our patients, by providing umbilical stem cells of the highest quality possible.

# cheap propecia buy online@ Saturday, May 30, 2009 3:54 PM

If you have to do it, you might as well do it right