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

WebSetup: how to deploy to non-default web site?

hello,

big issue here:
I want to deploy a .net web application using a Setup.

It works fine as long as I deploy the application to the "default web
site" on the target machine.

But I need to deploy to a different web site than the default.

I cannot find any option in the vs.net WebSetupProject to define the
target web site.

How to do this?
thanks
Jens Ansorg
Nov 19 '05 #1
3 1641
HI Jens,

You might have to do it with a script. Essentially each web "site" on
the server will have it's own web root and it's own directory on the
server. All you should need to do is XCopy the files across to that
particular folder - most likely VS.NET looks up IIS and justs the
default folder and copies everything there - or it assumes
C:inetpub/www as the default and whacks everything into that.

Assuming you set up a bin folder in your script and xcopy the lot it
should all work happily.

Cheers
AndrewF

Nov 19 '05 #2
AndrewF wrote:
HI Jens,

You might have to do it with a script. Essentially each web "site" on
the server will have it's own web root and it's own directory on the
server. All you should need to do is XCopy the files across to that
particular folder - most likely VS.NET looks up IIS and justs the
default folder and copies everything there - or it assumes
C:inetpub/www as the default and whacks everything into that.

Assuming you set up a bin folder in your script and xcopy the lot it
should all work happily.

Cheers
AndrewF


hi,

Copying files seems not enough. The setup not only copies files to the
(wrong) server, it also creates virtual directories in IIS. But it does
so in the wrong website.

I tried something else:
create the virtual directories first on the target web site and then run
the setup: it still only goes to default.

I need a way to tell the webSetup to access this other web site instead
of the default one.
Is nobody else hosting different domains on one IIS instance?
thank you
Jens Ansorg
Nov 19 '05 #3
Hi Jens,

Surely each domain has a separate directory in which it resides? If you
know that, you know where to direct your script. Personally I don't
VS.NET as I used C# Develop and Web Matrix instead with make files to
manage all my binaries - in my experience of MS IDEs though I think it
might be trtying to assume too much - purely because most servers that
you'll be deploying to with a script are only going to have one
instance of IIS with one domain on it.

Try something else - which is change the folder path of the default
site from C:\Inetpub\www to a different one and see if the script still
installs to the default. If it does you know it is is picking the name
"Default Site" up from somewhere [maybe IIS, maybe the registry] and
you'll need to find an option in VS.NET to override it.

If however the files are sent to the C:\inetpub\www folder then you
know it has a hard coded reference in there. In that case maybe cut the
script by hand? It can't be that complex to not be able to write a
quick batch script?

Cheers
Andrew

Nov 19 '05 #4

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

Similar topics

0
by: mike.brydon | last post by:
I'm creating a WebSetup Deployment Solution using VS.Net 2003 to install my web application. I've created several installer classes to go with it. My problem is, I want the installer classes to...
0
by: rajshekar | last post by:
Hi, I have one query plz solve out. I want to intall the dotNetFramework during the installation of my WebSetup. My second requirement is Installation sheild should pop up custom screen which...
3
by: DotnetTechie | last post by:
When i try to create a websetup project i am getting the following error. This setup does not contain the .NET Framework which must be installed on the target machine by running dotnetfx.exe...
0
by: mdawid | last post by:
Hi, The problem is the WebSetup never removes the assembly MyCustomAction.dll from the virtual directory. Is there any switch/property telling installer to remove custom action assembly after...
2
by: Nils Hedström | last post by:
I have a ASP.NET 1.1 project that I want to be able to deploy on my web-servers while they have real traffic (40 requests/second). When I copy the projects assembly in the bin-directory of the...
8
by: jacky kwok | last post by:
Dear All: In VS2005 WebSetup installer InstallAddress dialog, there is field to let user to select which website to install the webapp (if there are more than one WebSite in the IIS). I want...
0
by: B.N.Prabhu | last post by:
Hi, I have a doubt. I have a Web Application, I created Websetup Project also. Whether its possible to provide my .sql file into the setup project and while installtion it can directly take that...
0
by: thomson | last post by:
Hi All, i have created a Websetup project, My application requires a dll librfc32.ll to be present in the System32 directory, How do i Do this with the Wbsetup project Thanks in Advance ...
2
by: ad | last post by:
I packet my web application with WebSetup project of vs2008. When a user used the websetup package in a machine which has been installed a old version of my web application, the web.config can't...
0
by: rote | last post by:
I have a project i created using TableAdapters(Datasets with .xsd) and everything works well on my PC. But when i create a websetup project and deploy it to another server. I keep getting Error...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.