Results 1 to 5 of 5

Thread: XML Parsing Error: not well-formed

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    241

    Thumbs up XML Parsing Error: not well-formed

    Hi Friends,

    I am in trouble. I have a asp.net file and publish it and run in localhost. http://localhost/mdirectalpha/CPWebs...ha/Addons.asmx. Its working fine.

    But i put the file in mob server(It's the own server we are using in my concern)
    http://10.37.4.2/mdirectalpha/CPWebserviceAlpha /Addons.asmx its not working. I got an error message that is

    XML Parsing Error: not well-formed
    Location: file://///Mob/mdirectalpha/CPWebserviceAlpha/Addons.asmx
    Line Number 1, Column 2:<%@ WebService Language="C#" CodeBehind="~/App_Code/Addons.cs" Class="Addons" %>
    -^

    Is it the problem in server? I need to set any settings in server? Please suggest me. I am expecting your's reply.

    Thanks
    Failing to plan is Planning to fail

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: XML Parsing Error: not well-formed

    Hey,

    Obviously we are talking about a Web Service here, correct?

    What version of IIS are you using on that server?

    It sounds to me like this server has not been set up to handle the asmx extension, have you enabled it on this server?

    Gary

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    241

    Thumbs up Re: XML Parsing Error: not well-formed

    Hi Gep,

    We are talking about web services right. How can we enabled .asmx files in server. I have an MIME type extension problem. I couldnt run from server.
    Thanks
    Failing to plan is Planning to fail

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: XML Parsing Error: not well-formed

    Hey,

    This isn't a direct MIME Type problem.

    Have a look here:

    https://www.microsoft.com/technet/pr....mspx?mfr=true

    Gary

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: XML Parsing Error: not well-formed

    MIME types are for clients, and the web service handles the response content type itself. You need to check if web service extensions are enabled and also check if ASMX exists in the properties of the site. So in IIS, right click your VD/WS. Properties. Home tab (I think). Configuration. Look in that list for .asmx. If it doesn't exist, give it the same ISAPI that .aspx has.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width