We have a web application that will be installed as a virtual directory. It will either default to the Default Web Site or allow the choice of the site to which the vir. dir. will be installed, if more than one sites exist on the server.
Now, what I would like to do is set the ASP.NET version to 2.0 if it defaults to an earlier version (more than one instance of the Framework is installed). I would like to be able to do this programmaticall y and have it function properly in both IIS 5 & 6.
I guess I would need to find it programmaticall y, by name maybe, then set the version, but I have no idea how to do it. I could create an .exe and would like to do it with VB.NET, I guess. This could then be fired at the tail end of my installation process.
Now, I have another problem. Once this is all said and done, I have an .xml file that holds some settings that needs to be tweaked. The line contains http://<computername >/MySite/Service/etc, etc, etc. If the Vir Dir is installed to the Default Web Site, it seems to work OK edited as such.
If the user chooses to install to another site on the server, I have to correct the <computername > portion in some way. For example, if the other web site functions on port 81, that edit would look like <computername>: 81. This seems to work.
My problem comes in if the sites share the same IP address and Port and are differentiated by a Host Header. How would I deal with this programmaticall y? What would be the best way to get the correct information I need to make this edit correctly?
For this part of my problem, I would like to fire an .exe that or vbscript that would gather this information and either set properties in my installation package or edit an .ini file that is installed. I could then make my edit of the <computername > area by reading the .ini file.
Any help with creating any executables or scripts would be greatly appreciated!!
I need help badly!!
1 6372
I have been able to get the Site ID from a supplied name. From this I can set the ASP.NET version using aspnet_regiis.
I'm also able to grab the ServerBindings property information for the site based on that ID, but I have no idea at this point how to resolve the edit I need to make in my .xml file.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Mike Bennett |
last post by:
Does the .NET framework (using VB.NET) support the ability to programmatically STOP a device prior to its removal from the system?
I have need to move data from a computer on one network to a computer on a different network. For various reasons, I am not allowed to join these networks. Additionally, neither computer is allowed to disconnect from its network to connect to the other network
I have decided to use a USB jump drive to move the...
|
by: Walter L. Williams |
last post by:
I have defined my own IntegerRangeAttribute which is used like so:
private Int32 iNumBurnInIterations = 2000;
At another point I want to get at that information, ie:
public Int32 GetNumPreIterations ()
{
IntegerRangeAttribute range =
|
by: Srinivas.Gajula |
last post by:
Hai,
For Example Below are two storeprocedures one returns resultset and
other not, how get this information through programmatically.
1)CREATE PROCEDURE dbo.UpdateCustomers
(
@CustomerID nchar(5),
|
by: Null Reference |
last post by:
Anybody here who can explain or point me to a link ?
I wish to create a blank MS Access DB file programmatically
using C# .
Thanks, nfs
|
by: BentleyInc |
last post by:
I'm trying to find a way to add a whildcard application mapping to
aspnet_isapi.dll in IIS programmatically.... been looking into IIS
administrator reference but didn't find the right function to use.
The equivalent GUI steps would be, open IIS, select my
application->properties, app configuration, in whildcard application mapping
type the path to aspnet_isapi.dll.
Thanks,
Jingmei Li
| |
by: Brian McClellan |
last post by:
Just wondering if anyone has a simple example of creating a gridview
completely programmatically, i'm not doing anything terribly sophisticated.
When creating the gridview declaratively evertying works fine, however
programmatically, while the grid will display data that exsists in the
database, any operation on the data ( editing/updating/deleting ) seems to
cause a rowdeleting/updating etc error. Or is this simply not meant to be
done?
|
by: Ken Fine |
last post by:
I'm interested in programmatically manipulating groups of ASP.NET controls
by type. Can someone suggest code for the following?
Loop through, say, all label controls on a page, and assigning a CssClass to
them, or programmatically making the Visible/not Visible.
If applied to a containing page, such a function would traverse all user
controls statically and dynamically placed on the page, correct?
Thanks,
|
by: Jimmy |
last post by:
Well, i know it may be a little non-python thing, however, I can think
of no place better to post this question :)
can anyone tell me, in python, how to obtain some information of a
running program?
paticularly, if i am playing some music in audacious or other media
player, how can i get the the name and some other info of current
playing song? It seems that audicious doesn't output on run-time
|
by: Andrew Jocelyn |
last post by:
Hi
How do I programmatically change (read/write) the values in this app.config
file at runtime? Specifically I want to change the client endpoint address
but it would be nice to change other values too. I thought this is what
ServiceHost is for but is seems way more complicated to use for what I'm
trying to do.
<system.serviceModel>
<bindings>
|
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...
|
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,...
| |
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...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |