Hi friends
am new to .net and writing a small web service application.am using vs 2005 beta2.
i created new project (asp.net web service) and new project dialog box i selected location as "http" and name of project name i entered as
http://localhost/customer orders webservice and as soon as i click ok i get
following message saying
"Could not find a Web server '<localhost>'. Check to make sure that the Web server name is valid and your proxy settings are set correctly. If you are sure that everything is correct, the Web server may be temporarily out of service. "
my question is how can i enable or start my "localhost"
my pc running on win xp prof with sp2.
this is link am using to create my sample app
http://foxcentral.net/microsoft/NETforVFPDevelopers_Chapter12.htm
Thanks for ideas

could not find localhost when creating new project
_gcvt
If you download the VS2005 beta, it comes with a simple web server.
Nitell
i installed IIS from my xp setup cd now i dont get any error when creating project.
Thanks for ur help mate.
KaleeyJ
SVMike
will try to install IIS now.will update you if i have any issues still. Thanks
enrikeperez
I lost you here . i did not understand what u mean here Chris.
i have not added any new code there .i've only whatever VS adds when we create a new project.( I just renamed the file name sevices.cs to CustomerOrders.cs)
my code in this file
using
System;using
System.Web;using
System.Web.Services;using
System.Web.Services.Protocols;[
WebService(Namespace = "http://localhost/")][
WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]public
class CustomerOrders : System.Web.Services.WebService{
public CustomerOrders () {}
[
WebMethod] public string HelloWorld() { return "Hello World";}
}
my code in CustomerOrders.asmx file is<%
@ WebService Language="C#" CodeBehind="~/App_Code/CustomerOrders.cs" Class="CustomerOrders" %>and i've only abv 2 files in my solutionAnand Narayan
It looks to me from looking at the wizard that you can specify a location on the file system instead of HTTP, perhaps that's what you need to do I have IIS installed, so I assume any attempt to create a web site will just find that. Installing IIS is probably a good idea anyhow, you do have it there.
RayRanson
after creating the project when i run it am getting following error in IE
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Michael McGranahan
but as i mentioned i already using vs2005 beta !! where should i go to see whether i got that simple web server
Thanks
Wainz
I want to create "web service" not site. am using an example from link (in my first post).
As you can see my code has a method "Hello world" .
but the error am getting is "A name was started with an invalid character" and i cant figure out whats that char
Zoey Co
Alexei_shk
The error message you're getting is about XML and XSLT.
Are you really wanting to create a web service A web service is an app that communicates with clients via the interface you define, and communicates and is communicated with via XML. It does not have a user interface, it is not a website.
I'm suspecting you checked 'ASP.NET web service' instead of 'ASP.NET web site' in the new project wizard
M.KhoshZaban
ok How can i find out ISS setup properly
Yes i restarted my PC after installing IIS .
ybnormal
BTW, you should replace tempuri with something unique, not localhost. It's meant to be a unique namespace, which makes a URL a prime candidate, but you can put anything you like, it's for namespacing the XML, and not for any online activity.
mrsmithsp1
Guess what Chris
I tried again i mean registring aspnet_regiis -i and my web service worked beautifully !!
Thanks for ur help and Patience