Programmatically Set ASP.NET Version

K

Kulgan

Hi All

I am using DirectoryServices to create a web site in C#. I can set the
web site up perfectly with all the options that I want other than the
ASP.NET version! Sometime it is 1.1, sometimes it is 2.0. I have even
enumerated all the Active Directory properties for all of the Sites
and Virtual Directories on my machine. I can't see a property in there
that defines the ASP.NET version to use.

Does anyone know how to do this? Or does anyone know where IIS stores
the ASP.NET version for a given web site?

Thanks,

Kulgan.
 
J

Juan T. Llibre

Hi, Kulgan.

You'll need to run:

aspnet_regiis.exe -s W3SVC/1/ROOT/yourAppname

for your virtual application, from the appropiate directory:

Drive:\%WINDIR%\Microsoft.NET\Framework\v1.1.4322
or
Drive:\%WINDIR%\Microsoft.NET\Framework\v2.0.50727
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top