473,388 Members | 1,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

XML service publishing problem: Server Error in '/' Application

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";
}

}

Dec 24 '06 #1
9 5218
"Coward 9" <Co*****@gmail.comwrote in message
news:11**********************@a3g2000cwd.googlegro ups.com...
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?
A couple of things spring to mind:

1) How have you compiled and deployed the service? You've not simply copied
Service.asmx onto the webserver, have you...?

2) Does the webserver have the (correct version of the) framework installed?
Dec 24 '06 #2
The "WebService" folder your asmx endpoint file is in needs to be marked as
an Application in IIS.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Coward 9" wrote:
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";
}

}

Dec 24 '06 #3
HI, Mark:

thanks for your reply. I used "File | New | Web Site" to create the
project. I tried to build the solution and did NOT see any
differences(I am wondering why too)

1. Other than to copy asmx file to the web, what else should I do?
(I just followed the steps in
http://msdn2.microsoft.com/en-us/library/7hs6sw69.aspx.

2. according to the description of my hosting package, looks like the
server should have everything needed ?

http://order.1and1.com/xml/order/MsH...op&__lf=Static
My dev environment:

Windows xp, sp 2
VS 2005
(I do NOT have local IIS installed)


Mark Rae wrote:
"Coward 9" <Co*****@gmail.comwrote in message
news:11**********************@a3g2000cwd.googlegro ups.com...
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?

A couple of things spring to mind:

1) How have you compiled and deployed the service? You've not simply copied
Service.asmx onto the webserver, have you...?

2) Does the webserver have the (correct version of the) framework installed?
Dec 24 '06 #4
HI, Peter:

How can I mark the folder as an applicaition? I do NOT have local IIS
installation. Do I need to ask hosting company to do something
specifical for that purpose?

Thanks,

Peter wrote:
The "WebService" folder your asmx endpoint file is in needs to be marked as
an Application in IIS.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Coward 9" wrote:
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";
}

}
Dec 24 '06 #5
Yes.
Most shared hosting arrangements have some sort of control panel page you
can log into and do this for yourself.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Coward 9" wrote:
HI, Peter:

How can I mark the folder as an applicaition? I do NOT have local IIS
installation. Do I need to ask hosting company to do something
specifical for that purpose?

Thanks,

Peter wrote:
The "WebService" folder your asmx endpoint file is in needs to be marked as
an Application in IIS.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Coward 9" wrote:
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";
}
>
}
>
>

Dec 25 '06 #6
HI,

Surprise, everything looks correct if I right mouse button | View in
Browser the folder has Service.asmx

http://localhost:1854/WebSite1/wsc12...e/Service.asmx

Dec 25 '06 #7
"Coward 9" <Co*****@gmail.comwrote in message
news:11**********************@48g2000cwx.googlegro ups.com...
thanks for your reply. I used "File | New | Web Site" to create the
project. I tried to build the solution and did NOT see any
differences(I am wondering why too)

1. Other than to copy asmx file to the web, what else should I do?
(I just followed the steps in
http://msdn2.microsoft.com/en-us/library/7hs6sw69.aspx.
Well, you'll need the contents of the \bin folder with the DLL, and you'll
almost certainly need web.config...
2. according to the description of my hosting package, looks like the
server should have everything needed ?
As Peter explained, the service will need to reside in an IIS application...
Dec 25 '06 #8
"Coward 9" <Co*****@gmail.comwrote in message
news:11*********************@42g2000cwt.googlegrou ps.com...
Surprise, everything looks correct if I right mouse button | View in
Browser the folder has Service.asmx
Yes, well it will do, because everything it needs is on your local machine
anyway...
http://localhost:1854/WebSite1/wsc12...e/Service.asmx
There's no point posting a link to http://localhost - you're the only person
who can see it... :-)
Dec 25 '06 #9
Surprise? I'm not surprised! That http://localhost:1854 (port 1854) means you
are running this in WebSite project mode under the built-in Development
Server in Visual Studio. It's not even running under IIS.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Coward 9" wrote:
HI,

Surprise, everything looks correct if I right mouse button | View in
Browser the folder has Service.asmx

http://localhost:1854/WebSite1/wsc12...e/Service.asmx

Dec 25 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark | last post by:
I created an extremely simple windows service that only writes to the EventLogs on Stop and Pause. I installed it using the InstallUtil.exe program, the output of which is below. It appears to be...
5
by: John | last post by:
Hi I am trying to get web reference to my first (!) web service which is on a remote host. I am getting the following error; Server Error in '/' Application. Runtime Error Description: An...
8
by: A P | last post by:
Hi! I'm using ASP.Net Web Matrix on my PC and wanting to publish the files to our server. I try to copy (thru explorer) the files but it didn't work! I receive Runtime Error: Server Error...
4
by: jf li | last post by:
I have a Asp.net web application and a Asp.net Web service application. The Web application is using HtmlInputFile to get a 50M size of file selected by end user, read the data of this file and...
1
by: Bill Cohagan | last post by:
I've built a small app based on the Personal web site template and it works fine on my development machine (within VS2005). When I Publish it to a Windows Server 2003 machine it *almost* works...
4
by: Dylan | last post by:
Hello, I was trying to do a WCF tutorial (http://wcf.netfx3.com/content/ BuildingHelloWorld.aspx). I need to get the meta data from my service usin svcutil.exe why is not working? Please see...
4
by: John | last post by:
Hi I am publishing a vb.net app to a remote ftp/web site. This seems to go successfully. Once I try to install the app by using the url http://www.mydomain.com/publish.htm and pressing the Run...
4
by: cj | last post by:
I'm finally back to trying to write a web service. In VB 2005 I created a new web site and then ASP.NET Web Service. It opened showing App_Code/Service.VB with the following code already in it ...
6
by: paal.andreassen | last post by:
I have a problem. I have two instances of a client-server application running on two different machines A and B. A has a listening service, that listens for connections from B B has a listening...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.