Home
Help
Login
Register
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced Search
VPS forum, VPS hosting forums, VPS discussions, VPS web hosting solutions, issues, providers, virtual web hosting questions, VPS hosting
VPS General Discussions
Windows VPS Servers
Changing asp.net version of a domain on the command line
Pages: [
1
]
« previous
next »
Topic: Changing asp.net version of a domain on the command line (Read 427 times)
0 Members and 1 Guest are viewing this topic.
Changing asp.net version of a domain on the command line
« on: January 17, 2010, 05:36:42 AM »
Jay
Newbie
Posts: 44
Firstly you will need to find what folder the version of .net you want to use is located and you will need to know what number IIS has assigned the domain you want to change.
For example if you wanted to set up .net 2.0 and configure a domain to use it the folder is most likely the following (though you will need to verify):
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
If you look up the domain in IIS Manager you should see what number it is using*
Once you have confirmed the directory you can open a command prompt in Windows:
Start >> run >> type in 'cmd' and press enter
In here you can change to the directory in question:
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
If you run the following command you can see the different vhosts (domains) on the server and what version of .net they currently have installed:
aspnet_regiis /lk
A sample output of this would be (please see below for how to tie these numbers to a domain name*):
W3SVC/14382/ROOT/ 1.1.4322.573
W3SVC/17058/ROOT/ 1.1.4322.573
W3SVC/17090/ROOT/ 1.1.4322.573
W3SVC/17123/ROOT/ 1.1.4322.573
To add .net 2.0 to a vhost we run:
aspnet_regiis /sn *vhost*
where *vhost* is the vhost name taken from the above results.
For example to set W3SVC/17058/ROOT/ to .net 2.0 we do:
default path> cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
then:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727> aspnet_regiis /sn W3SVC/17058/ROOT
If you run the 'aspnet_regiis /lk' command again it will look something like this:
W3SVC/14382/ROOT/ 1.1.4322.573
W3SVC/17058/ROOT/ 2.0.50727.0
W3SVC/17090/ROOT/ 1.1.4322.573
W3SVC/17123/ROOT/ 1.1.4322.573
Thanks!
Logged
Pages: [
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
NEWS, Alert and Entertainment!!!
-----------------------------
=> Suggestions
-----------------------------
Virtualization technologies
-----------------------------
=> Virtuozzo & OpenVZ
=> HyperV
=> Xen Server
-----------------------------
VPS General Discussions
-----------------------------
=> Windows VPS Servers
=> Linux VPS servers
-----------------------------
VPS providers
-----------------------------
=> Review Windows VPS provider
=> Review Linux VPS provider
-----------------------------
System Administration
-----------------------------
=> Site and Server security
=> Server Administration
=> Apache
=> Microsoft IIS
-----------------------------
Web Hosting
-----------------------------
=> Windows Hosting
=> Linux Hosting
-----------------------------
Databases
-----------------------------
=> MSSQL server
=> MySQL
-----------------------------
How to's
-----------------------------
=> WHM/cPanel
=> IIS
=> Smartermail
=> Virtuozzo
=> HyperVM
=> VDSmanager