How To Modify An IIS Virtual Directory "ASP.NET Version"Programmatically?

C

Crash

..NET Framework 1.x, 2.x, 3.x...
ASP.NET 5.0, 5.1, 6.0...
Windows Server 2000, XP, Server 2003...

I am using NAnt & the NAnt contrib library to automate virtual
directory maintenance tasks on IIS servers with side-by-side installs
of ASP.NET.

I can automate most IIS tasks using NAnt however - to configure the
ASP.NET version for a newly created virtual directory I must manually
run inetmgr.exe and set the virtual directory's ASP.NET version from
the Properties/ASP.NET tab. Questions:

1) Is this command line the equivalent of setting the ASP.NET version
from the inetmgr.exe Properties/ASP.NET tab?

aspnet_regiis -s W3SVC/1/ROOT/<MyVirtualDirectory>

2) Is there an ADSI API to set the ASP.NET version - aka how might I
automate this task from C# & ADSI?

--Richard
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top