The type of scopeDescCE is from the MS assembly. But your web service method is expecting the description from the service reference. This is a common issue with service references because the import process creates new types (following the service ref name) for each contract and type. Hence you cannot share types across service references. But when you set up the service reference (or reconfigure it) you will see an option to use types from referenced assemblies. You should enable this feature and ensure that the given MS assembly is included (it will be by default if it is referenced in your code). Then when the import runs it'll prefer types defined in referenced assemblies rather than recreating them from the service reference.
Michael Taylor
http://ift.tt/1oFVmEx
No comments:
Post a Comment