can I progarmatically register asp.net to IIS?

C

chandan

Hi,
I am using aspnet_regiss.exe utility from command prompt to register
asp.net to IIS. But my requirement is to do it programmatically so
that client need not worry about this registration. Can we do this
programmatically??

Thanks
Chandan
 
C

Cowboy \(Gregory A. Beamer\)

Yes, use a Process object and fire it off.

The only time this should be an issue is if you have installed .NET prior to
IIS or you need to add a specific .NET version to a specific web. If the
later is your problem, be careful, as you have to specify the root name and
use a different flag than the aspnet_regiis -i you run to simply register
ASP.NET version X in IIS. If you just run with -i, you will end up changing
all sites to the version you specify, which could end up breaking some
sites.
 

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,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top