Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. What's the solution of this error message: Unable to cast object of type 'System.Xml.XmlElement' to type 'System.Web.Services.Description.ServiceDescriptionFormatExtension'.

What's the solution of this error message: Unable to cast object of type 'System.Xml.XmlElement' to type 'System.Web.Services.Description.ServiceDescriptionFormatExtension'.

Scheduled Pinned Locked Moved ASP.NET
wcfxmlhelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ashish bhakhar
    wrote on last edited by
    #1

    Hello I am using client WSDL file, i want to generate proxy class from it. I am using WSDL.exe to generate that proxy class. But i am getting this error: Unable to cast object of type 'System.Xml.XmlElement' to type 'System.Web.Services.Description.ServiceDescriptionFormatExtension'. So, is there any perfect solution?

    H 1 Reply Last reply
    0
    • A ashish bhakhar

      Hello I am using client WSDL file, i want to generate proxy class from it. I am using WSDL.exe to generate that proxy class. But i am getting this error: Unable to cast object of type 'System.Xml.XmlElement' to type 'System.Web.Services.Description.ServiceDescriptionFormatExtension'. So, is there any perfect solution?

      H Offline
      H Offline
      Herman T Instance
      wrote on last edited by
      #2

      What have you tried? or post your code. Your information is to little too judge. Anyway you have 2 different types of objects that do not work together.

      In Word you can only store 2 bytes. That is why I use Writer.

      A 1 Reply Last reply
      0
      • H Herman T Instance

        What have you tried? or post your code. Your information is to little too judge. Anyway you have 2 different types of objects that do not work together.

        In Word you can only store 2 bytes. That is why I use Writer.

        A Offline
        A Offline
        ashish bhakhar
        wrote on last edited by
        #3

        This is a simple process of generating proxy class from outside(client) WSDL file to access their web methods using asp.net. In general, client has provided WSDL files, so using that we have to call their web services. so to use web service or to call them we need to add web reference of that wsdl files to our application and need to generate a proxy class so that we can call client methods for requesting the data and get response from their side. But when i am trying to generate proxy class from the url of WSDL given by client at that time in command prompt of framework sdk using the command "wsdl /l:cs /http://a.com/b.wsdl", i got this error.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups