G
Guest
Hello,
I'm trying to install an ASP.Net project using the command line (SDK tools
& perhaps IIS Admin scripts?)
Does anyone know of an automatic, command-line-driven way, to creat the
ASP.Net virtual directory, essentially mimicking whatever VS.Net does when it
creates a web project?
Ideally it would be as simple as "CreateAspWebApp.bat virtualPath
PhysicalPath"
I thought something like:
cd %windir%\Microsoft.NET\Framework\v1.1.4322
Aspnet_regiis -sn W3SVC/1/ROOT/SampleApp1
would do it, but this requires that I first have a virtual directory. So
then I run this first:
cd C:\Inetpub\AdminScripts
mkwebdir -c localhost -w "Default Web Site" -v
"SampleApp1","C:\Develop\SampleApp1\"
The problem is that I still need to manually go into the IIS GUI console, go
to the web's property page, VirturalDirectory tab, and set its Execute
Permissions = "Scripts Only" (default is none) and click the "Create" button
next to the Application Name textbox.
Thanks,
Mark
I'm trying to install an ASP.Net project using the command line (SDK tools
& perhaps IIS Admin scripts?)
Does anyone know of an automatic, command-line-driven way, to creat the
ASP.Net virtual directory, essentially mimicking whatever VS.Net does when it
creates a web project?
Ideally it would be as simple as "CreateAspWebApp.bat virtualPath
PhysicalPath"
I thought something like:
cd %windir%\Microsoft.NET\Framework\v1.1.4322
Aspnet_regiis -sn W3SVC/1/ROOT/SampleApp1
would do it, but this requires that I first have a virtual directory. So
then I run this first:
cd C:\Inetpub\AdminScripts
mkwebdir -c localhost -w "Default Web Site" -v
"SampleApp1","C:\Develop\SampleApp1\"
The problem is that I still need to manually go into the IIS GUI console, go
to the web's property page, VirturalDirectory tab, and set its Execute
Permissions = "Scripts Only" (default is none) and click the "Create" button
next to the Application Name textbox.
Thanks,
Mark