Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2004

Tip: Looking for answers? Try searching our database.

deployment of .net web service does not work

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wendy Elizabeth - 07 Dec 2004 00:03 GMT
Can you give me some suggestions of why the xml web service is not working?

 I have an xml web service that works in my visual studio. net 1.1
environment. I setup this project up for deployment doing the following steps:
1. add a web setup project called "testaddr".
2. in file system window, select Web Application folder.
3. in the left pane of the file system window, right-click web application,
point to add, and then click output project.
4. Select Primary output and content files and then click OK.
5. in solution explorer, right click Build on "tested".
6. I double click on testaddr.msi.
  **I have also tried doubling clicking on SETUP.EXE**
7. The web service installs on my workstation fine and it runs great.
However on the production server when I key in the following information:
"http:/ip address of production server/testaddr/Validate.asmx"

This is what is displayed:
<%@ WebService Language="vb" Codebehind="VAddr.asmx.vb"
Class="VAddrWebService.ValidateAddr" %>

The following is what the members in the virtual directory under IIS look
like:
1. bin directory that contains:
address.dll
vddresswebservice.dll
2. at the same level there is also the following members:
web.config,
global.asax,
and ValidateAddr.asmx.

If you can not see anything wrong with the above then maybe it is the
following:

The server I am going to install on has never been used for production.
Maybe there are items that need to be installed on the server to run besides
iis, net 1.1 framework, and all the latest windows and windows 2000 server
updates.

Let me know what you think.

Thanks for your assistance!
Dan Rogers - 07 Dec 2004 00:38 GMT
What seems to be happening is you aren't deploying to a VRoot that is fully
set up to work as a web service application.  This is why you see the asmx
page rather than the service being launched.  Since the .asmx extension
isn't associated with any ISAPI filter, etc, it is treated like a text file
(the default).

Try using File/Publish as the means to deploy your service to production.  
While this isn't a shrink wrap approach, it will create a properly
configured vroot or site (as appropriate) and configure the IIS application
properly.  For your MSI, you will need to make sure that the right IIS
administration and application settings on the vroot are accomplished (and
off the top of my head, i don't have the list of steps - perhaps others
have been here.)

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: deployment of .net web service does not work
thread-index: AcTb8B45Z0OD3kS9SxumZ62K/r7W7w==
X-WBNR-Posting-Host: 66.37.251.192
From: =?Utf-8?B?V2VuZHkgRWxpemFiZXRo?=
<WendyElizabeth@discussions.microsoft.com>
Subject: deployment of .net web service does not work
Date: Mon, 6 Dec 2004 16:03:01 -0800
Lines: 43
Message-ID: <F8529DA0-9341-454C-86A0-8E609A2AC1A1@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
    charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA0
3.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7919
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Can you give me some suggestions of why the xml web service is not
working?

 I have an xml web service that works in my visual studio. net 1.1
environment. I setup this project up for deployment doing the following
steps:
1. add a web setup project called "testaddr".
2. in file system window, select Web Application folder.
3. in the left pane of the file system window, right-click web application,
point to add, and then click output project.
4. Select Primary output and content files and then click OK.
5. in solution explorer, right click Build on "tested".
6. I double click on testaddr.msi.
  **I have also tried doubling clicking on SETUP.EXE**
7. The web service installs on my workstation fine and it runs great.
However on the production server when I key in the following information:
"http:/ip address of production server/testaddr/Validate.asmx"

This is what is displayed:
<%@ WebService Language="vb" Codebehind="VAddr.asmx.vb"
Class="VAddrWebService.ValidateAddr" %>

The following is what the members in the virtual directory under IIS look
like:
1. bin directory that contains:
address.dll
vddresswebservice.dll
2. at the same level there is also the following members:
web.config,
global.asax,
and ValidateAddr.asmx.

If you can not see anything wrong with the above then maybe it is the
following:

The server I am going to install on has never been used for production.
Maybe there are items that need to be installed on the server to run
besides
iis, net 1.1 framework, and all the latest windows and windows 2000 server
updates.

Let me know what you think.

Thanks for your assistance!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.