C
Coward 9
HI,
I created the simplest "ASP .NET Web Service" by using VS 2005 and
Visual C#( File | New | Web Site). However, when I tried to access the
service from IE 7.0
http://www.aztao.org/WebService/Service.asmx
(the fie DOES exist which can be verified by typing
http://www.aztao.org/WebService/ in address bar only).
it gave me error messages below. This is my 1st try with ASP. Anybody
generous enough to help?
Server Error in '/' Application.
--------------------------------------------------------------------------------
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure
that it is spelled correctly.
Requested URL: /WebService/Service.asmx
the source codes of service.asmx are
<%@ WebService Language="C#" Class="Service" %>
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
}
I created the simplest "ASP .NET Web Service" by using VS 2005 and
Visual C#( File | New | Web Site). However, when I tried to access the
service from IE 7.0
http://www.aztao.org/WebService/Service.asmx
(the fie DOES exist which can be verified by typing
http://www.aztao.org/WebService/ in address bar only).
it gave me error messages below. This is my 1st try with ASP. Anybody
generous enough to help?
Server Error in '/' Application.
--------------------------------------------------------------------------------
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure
that it is spelled correctly.
Requested URL: /WebService/Service.asmx
the source codes of service.asmx are
<%@ WebService Language="C#" Class="Service" %>
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
}