enable asp.net 2.0 on site

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a shared IIS server running ASP.NET 1.1, and using a vbscript to add
sites. All sites get added and use 1.1. After I installed 2.0, now I have
two versions. And in IIS I have a new tab for each site to change the
ASP.NET version.
What I want to do is have all the old sites use 1.1, but I want to edit my
script to enable all new sites created to use asp.net2.0, by default. Is
this possible??

Thank you
 
Thanks but what im looking for is to do this through a script. I have a
application that sends all the site info to a database. Then I have a
vbscript that reads from the database and creates the sites. But I need a
way to tell the script the difference between 1.1 and 2.0. Or do I have to
setup a new server with only 2.0?

Thank you

--

Ken Cox - Microsoft MVP said:
Here's a tool that might make that a bit easier:

http://www.denisbauer.com/NETTools/ASPNETVersionSwitcher.aspx

Ken
MVP [ASP.NET]

I have a shared IIS server running ASP.NET 1.1, and using a vbscript to
add sites. All sites get added and use 1.1. After I installed 2.0, now I
have two versions. And in IIS I have a new tab for each site to change
the ASP.NET version.
What I want to do is have all the old sites use 1.1, but I want to edit
my script to enable all new sites created to use asp.net2.0, by default.
Is this possible??

Thank you
 
The problem you'll run into is that aspnet_regiis.exe, for which Denis Bauer's
Version Switcher is a front-end for, has no provision for programmatic usage.

You can run aspnet_regiis.exe with a vbs script, though.
You'll have to use the -sn <path> parameters.

i.e. : "aspnet_regiis.exe -sn W3SVC/1/ROOT/YourNewAppVirtualName"

You'll also need to make sure that the .Net Framework 2.0 directory is in your
system path, or you can run the vbs script from the .Net Framework 2.0's directory.

The .Net Framework 2.0's directory is :

drive:\%windir%\Microsoft.NET\Framework\v2.0.50727

Of course, you'll also need to make sure that the
..Net Framework 1.1's directory is *not* on the system path.



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
Thanks but what im looking for is to do this through a script. I have a application that sends all
the site info to a database. Then I have a vbscript that reads from the database and creates the
sites. But I need a way to tell the script the difference between 1.1 and 2.0. Or do I have to
setup a new server with only 2.0?

Thank you

--

Ken Cox - Microsoft MVP said:
Here's a tool that might make that a bit easier:

http://www.denisbauer.com/NETTools/ASPNETVersionSwitcher.aspx

Ken
MVP [ASP.NET]

I have a shared IIS server running ASP.NET 1.1, and using a vbscript to add sites. All sites get
added and use 1.1. After I installed 2.0, now I have two versions. And in IIS I have a new tab
for each site to change the ASP.NET version.
What I want to do is have all the old sites use 1.1, but I want to edit my script to enable all
new sites created to use asp.net2.0, by default. Is this possible??

Thank you
 
Thanks but what im looking for is to do this through a script. I have a
application that sends all the site info to a database. Then I have a
vbscript that reads from the database and creates the sites. But I need a
way to tell the script the difference between 1.1 and 2.0. Or do I have to
setup a new server with only 2.0?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top