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
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
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
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
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.