473,320 Members | 1,896 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,320 software developers and data experts.

How to deploy a webservice in IIS ?

Hi,
I've developed my web service using VS.net 2005 and .net 2.0.
I am able to test my service on my own PC. Now I need to give it to the
testing team wherein they will test it on a clean PC.
What are the files I need to give to the testing team? On my PC, in IIS I
dont see any exe. Only the asmx and the code behind files are there.
I dont want to be giving out my code....so what do I do?

Sinex
May 16 '07 #1
3 33231
"Sinex" wrote in message
news:Ol****************@TK2MSFTNGP04.phx.gbl...
Hi,
I've developed my web service using VS.net 2005 and .net 2.0.
I am able to test my service on my own PC. Now I need to give it to the
testing team wherein they will test it on a clean PC.
What are the files I need to give to the testing team? On my PC, in IIS I
dont see any exe. Only the asmx and the code behind files are there.
I dont want to be giving out my code....so what do I do?
Give them the .asmx files and the files in the bin directory of your web
service project.

I just tried right-clicking a web service project and using Publish... I
chose to publish to a file location only the files needed to run the
application. It did a pretty good job, copying only the bin directory and
the files marked with Build Action = "Content".

The only problem I see is that it copied _everything_ from the bin
directory, including files that didn't belong there!
--
John Saunders [MVP]
May 16 '07 #2
Hi,

Another alternative is to create a setup project that you can hand to your
testing team. In this way they can merely run your setup and all the required
files will be installed. Should you want the setup to also create the IIS
virtual directories so that your web service is ready for a client
application then here is some code that you could use. This should be run on
the project installers "AfterInstall" event so that you have the install
directory.

Dim IISSchema As System.DirectoryServices.DirectoryEntry = Nothing
Dim CanCreate As Boolean = False
Dim PathCreated As Boolean = False
Dim IISAdmin As System.DirectoryServices.DirectoryEntry = Nothing
Dim VDir As System.DirectoryServices.DirectoryEntry = Nothing
Try
IISSchema = New System.DirectoryServices.DirectoryEntry("IIS://"
& sWebSite & "/Schema/AppIsolated")
CanCreate = Not
IISSchema.Properties("Syntax").Value.ToString.ToUp per() = "BOOLEAN"
If CanCreate Then
Try
IISAdmin = New
System.DirectoryServices.DirectoryEntry("IIS://" & sWebSite & "/W3SVC/1/Root")
If Not System.IO.Directory.Exists(sPath) Then
System.IO.Directory.CreateDirectory(sPath)
PathCreated = True
End If
'If the virtual directory already exists then delete it
For Each VD As System.DirectoryServices.DirectoryEntry
In IISAdmin.Children
If VD.Name = sAppName Then
IISAdmin.Invoke("Delete", New String()
{VD.SchemaClassName, sAppName})
IISAdmin.CommitChanges()
Exit For
End If
Next VD
'Create and setup new virtual directory
VDir = IISAdmin.Children.Add(sAppName, "IIsWebVirtualDir")
VDir.Properties("Path").Item(0) = sPath
VDir.Properties("AppFriendlyName").Item(0) = sAppName
VDir.Properties("EnableDirBrowsing").Item(0) = False
VDir.Properties("AccessRead").Item(0) = True
VDir.Properties("AccessExecute").Item(0) = True
VDir.Properties("AccessWrite").Item(0) = False
VDir.Properties("AccessScript").Item(0) = True
VDir.Properties("AuthNTLM").Item(0) = True
VDir.Properties("EnableDefaultDoc").Item(0) = True
VDir.Properties("DefaultDoc").Item(0) =
"default.htm,default.aspx,default.asp"
VDir.Properties("AspEnableParentPaths").Item(0) = True
VDir.CommitChanges()
'INPROC = 0
'OUTPROC = 1
'POOLED = 2
VDir.Invoke("AppCreate", 1)

Return True
Catch Ex As Exception
If PathCreated Then
System.IO.Directory.Delete(sPath)
End If
End Try
End If
Catch ex As Exception
' Error handling
Finally
IISSchema.Dispose()
End Try

"Sinex" wrote:
Hi,
I've developed my web service using VS.net 2005 and .net 2.0.
I am able to test my service on my own PC. Now I need to give it to the
testing team wherein they will test it on a clean PC.
What are the files I need to give to the testing team? On my PC, in IIS I
dont see any exe. Only the asmx and the code behind files are there.
I dont want to be giving out my code....so what do I do?

Sinex
May 21 '07 #3
The answer to this question

can be found here:

http://en.csharp-online.net/Creating...irectly_to_IIS
Nov 8 '11 #4

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

Similar topics

1
by: Andre Boeder | last post by:
Hello, I want to deploy a WebService to our local development server. The webservice deployment is no problem, but how do I deploy the two class libraries in my Solution to the test server ? ...
2
by: John Spiegel | last post by:
Hi all, I'm attempting to deploy a pretty simple web service to a shared web server that was built w/ Visual Studio. According to MSDN, I should be able to just copy the asmx and bin folder (w/...
1
by: Nalaka | last post by:
Hi, I am testing with Visual studio 2005, web projects. Situation: I have one solution with two web projects, created as file system projects. (I am tesing using the built in server, not IIS)...
2
by: PocketDeveloper | last post by:
I am an experienced developer...but a novice at creating web services, so please have mercy on me! Here is my question: I developed a fairly simple Webservice that returns a table from SQL...
2
by: hulinning | last post by:
Hi, I create my Webservice in 2003 VS and test in Windows 2000 and Windows XP Pro without any problem. When I deploy it over Windows 2003 server, It fails to connect to the WS. I got Anonymous...
3
by: Mark Jerde | last post by:
Using C# in VS 2005 Pro. Background: 1. There are 3 of us working on a software project. The project will have at least 5 separate web services, in addition to web and desktop clients. 2....
0
by: =?Utf-8?B?TWFuaQ==?= | last post by:
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;...
0
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...
3
by: =?Utf-8?B?QkM=?= | last post by:
Hello, I just created a Hello World webservice in VB2005 (this is my first webservice ever). I ran it in debug mode and the page that came up said Hello World and said to change the webservice...
4
by: Amirallia | last post by:
Hi, How can I deploy my Web service on IIS 6.0 ? I create a web service with VS 2005 on the local IIS, now I must deploy it on an intranet with IIS 6.0. But I can access this intranet, and I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.