473,618 Members | 3,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1658
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
1077
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 run in a certain sequence. I've seperated the steps into individual installer classes so that I can reuse them for similar product installs. Thanks for any help
0
1393
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 will ask user to select his choice. "U want to install the Framework or not ?" How to bring the Screen during the installing the setup? What steps should i follow during creation of websetup? Plz guide me.
3
1499
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 before this setup will install. You can find dotnetfx.exe on the Visual Studio .NET Windows Components Update. I dont need to include framework with my setup.Eventhen i am getting this error! I am Using Version 1.0.Any help will be
0
1281
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 the setup completes? I have created MyCustomAction class based on System.Configuration.Install.I­­nstaller in the Class Library project
2
1880
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 website directory the application gets restarted and the web server needs to recompile all my aspx-pages. Because the traffic is high the web server needs to recompile a lot of aspx-pages at the same time. Because of this alot of requests gets...
8
6444
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 to know how can I get the WebStie info in the customAction. I can use "/VDIR=" in customActiondata to get the installed VirtualDirectory.
0
850
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 .sql file and execute into the Sql Server. Thanks, B.N.Prabhu.
0
1133
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 Thomson
2
1160
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 be replaced. What is the problem with vs2008? I didn't meet such a problem when with vs2005.
0
1520
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 ObjectDatasource cannot find a non generic update method Whats the best way to deploy projects when using DataSets like TableAdapters..
0
8153
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8653
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
8595
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...
0
8455
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
7126
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 project—planning, coding, testing, and deployment—without 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
6101
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
4065
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2587
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1760
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.