websetvice test in browser question

A

Andy

Hi,
below is simple webservice wich I'd like to test in my local host but when I
put http://localhost/test.asmx I'm getting this error:

XML Parsing Error: no element found
Location: http://localhost/test.asmx
Line Number 1, Column 1:

Can somebody tell me why? What I'm missing?
From Visual Studio this works.
below is sample web service code:

<%@ WebService Language="C#" Class="MathService" %>
using System;
using System.Web.Services;

[WebService(Namespace="Microsoft.Samples.XmlMessaging.WebServices")]
public class MathService {

[WebMethod]
public float Add(float a, float b)
{
return a + b;
}
}
 
T

Tiago Halm

Check if you have the ASMX extension configured in IIS.
Basically, re-register aspnet with aspnet_regiis if in doubt.

Tiago Halm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top