473,748 Members | 2,223 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem in deploying my WebService developed using Asp.net WebServ

Hi All,

Problem in deploying my WebService developed using Asp.net WebServices 2005.
I have designed simple WebService using Asp.net Webservices 2.0 , The
webservice look this ,

using System;
using System.Web;
using System.Web.Serv ices;
using System.Web.Serv ices.Protocols;

[WebService(Name space = "http://tempuri.org/")]
[WebServiceBindi ng(ConformsTo = WsiProfiles.Bas icProfile1_1)]
public class Service : System.Web.Serv ices.WebService
{
public Service ()
{
}
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
}

After building my webservice , when I execute this webservice project the
webservice is displayed in this URL
http://localhost:1295/WebSite3/Service.asmx. But i want to use this
webservice across the network , so when I use ip address instead of localhost
such as http://121.232.34.21:1295/WebSite3/Service.asmx this throws me an
error page.

I feel that I need to deploy this webservice in the IIS so that this can be
used across the network through the IP address.
As IIS was installed in my machine I decided to deploy my webservice in the
IIS.
So for deploying I clicked on the “publish web-site” option available in the
webservice project. This option helps to creates the Virtual Directory in the
IIS and places all the requried files (service.asmx, dlls etc).
But the problem here is I am not able to access the webservice from the IIS
as when I try to launch an web-service from IIS it displays me the error page
saying
--------------------------
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.
_______________ _______________ __________
A name was started with an invalid character. Error processing resource
'http://localhost/PleaseWork/Service.asmx'. Line 1...
<%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs"
Class="Service" %>
-^
-------------------------------------------------------

Can any one help me regarding this.

Regards.
Mani
Mar 13 '07 #1
0 2680

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

Similar topics

7
23872
by: mj | last post by:
Hello, thanks for the help. I am running a WinXP Pro w/ SP2 (my home computer, with ZoneAlarm firewall) Apache 2.0.52 MySQL 4.1.7 PHP 5.1.0-dev I have developed a PHP/MySQL web app that tracks jobs for me, and we
5
569
by: fripper | last post by:
I posted this problem a couple of days ago but felt I might have better luck re-stating the problem. Apparently I messed up IIS (v. 5) somehow because I am suddenly unable to load web forms! A simple example will help. I created a simple web project that contains two simple forms ... WebForm1 and WebForm2. WebForm1 has a button which when clicked simply does a Response.Redirect("WebForm2.aspx"). When I run the program and click the...
3
1502
by: Jay | last post by:
Hello, I have Windows Forms application which uses MS Access Database and a Pocket PC application which uses Datasets, Iam trying to pass Datasets between these applications using WebServices. Both these applications are shrink wrapped so they need to perform with little user configuration WebService/IIS is running on the computer having the Windows Application and Pocket PC connectss to the webservice through Active Sync.
2
5711
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2 webbrowser controls on it. Besides that i'm using the firewall client for isa server 2004 and it seems that the browsers aren't able to pass thru it... if i disable the firewall the browsers work fine, if i don't, the 2 browsers just stay there...
4
4665
by: naveed | last post by:
I have the simple Hello World web service running on my development machine (XP Pro SP2). I'm using VS2005. I'm able to access it from my machine. When I try to access it from another machine (also XP pro SP2), using the URL: "http://nav:24035/WebServ/Service.asmx?op=HelloWorld", I get a "Cannot find server or DNS Error" error. There is no firewall on either machine. I'm able to access this URL just fine: "http://nav". Please help.
1
2781
by: Duncan | last post by:
Guys a little please, I'm creating a windows application that uses a webservice and WSE1.0 to talk to a database, currently this works fine when using localhost, I now want to test the deployment of this webservice on another server (inhouse) so I know it will work when I come to put the webservice on to the webserver (external), I have used the copy project wizard in VB2K3 using file share and it puts the files on to the server, when I...
1
1954
by: Mahesh Devjibhai Dhola | last post by:
Hi, Scenario: The webservice was developed on windows 2000 Pro and deployed previously on windows XP pro for testing. We have tested for many days. The client for that service was 30+ and accessing the webservice each min. It was working 100% fine. Problem: But now in actual deployment, we have deployed webservice in Win Server 2003 and we have used all the default configurations. Now the clients are accessing that service the same way...
0
1199
by: Saish | last post by:
Hi I developed webservice for dabase operations. i creatred virtual directory and i am able to run in our local ntewor but not able to run in remote server.. I want to deploy this service to the clients remote server. Can any one tell me the procedure to follow to deploy the webservice in remote server. I need help in this regard. Environment : Web Service/IIS5.0/ASP.NET 2.0 / VB.NET Thanks in advance.
0
2318
by: stormogulen | last post by:
Hello all, I'm having some problems understanding how the runtime locates assemblies, and I hope you can help me shed some light on it. I'm deploying a web service, which uses some 3rd party dll (FelibFilterLib.dll). The problem is as follows: 1) The webservice is xcopied to the server, and the dll in question (FelibFilterLib) is located in the bin directory of the web service
0
9528
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9359
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9310
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9236
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8235
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6792
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6072
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.