views:

909

answers:

2

I have an ASMX service that I wan't to add to my Silverlight project (in the near future this will be converted to a WCF service).

When using the "Add (or Update) Service Reference" not all the files seem to be created and files under Reference.svcmap aren't created and the ServiceReferences.ClientConfig is empty.

Has anyone ever come across this before?

A: 

Try to give your client (Silverlight) application the WSDL, not just the ASMX when adding the service reference. e.g. http://myserver.com/services/mywebservice.asmx?wsdl

Remove the service reference altogether from your client project, and try adding it again this time with the WSDL.

urini
A: 

Not sure I have a good answer for this one. I see this every so often. Usually the problem can be traced by looking at the output window entires that occured during the attempted proxy generation.

Sometimes it is caused because invalid or unsupported Wsdl or just some silly issue with serialization of one of the types.

markti