code_junkie

.Net WSDL command line utility error

Nov 13th, 2011
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. WSDL : error WSDL1: Unable to cast object of type 'System.Xml.XmlElement'
  2. to type 'System.Web.Services.Description.ServiceDescriptionFormatExtension'.
  3.  
  4. using System.ServiceModel;
  5.  
  6. [ServiceBehavior(Name = "MyConcreteServiceName", Namespace = "http://www.mycompany.com/services/")]
  7. public class MyConcreteService: IMyService
  8. {
  9. }
  10.  
  11. <wsdl:definitions name="MyConcreteServiceName" targetNamespace="http://tempuri.org/">
  12.  
  13. <wsdl:definitions name="MyConcreteServiceName" targetNamespace="http://www.mycompany.com/services/">
Add Comment
Please, Sign In to add comment