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 "CreateAspWebAp p.bat virtualPath
PhysicalPath"
I thought something like:
cd %windir%\Micros oft.NET\Framewo rk\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\Admi nScripts
mkwebdir -c localhost -w "Default Web Site" -v
"SampleApp1","C :\Develop\Sampl eApp1\"
The problem is that I still need to manually go into the IIS GUI console, go
to the web's property page, VirturalDirecto ry tab, and set its Execute
Permissions = "Scripts Only" (default is none) and click the "Create" button
next to the Application Name textbox.
Thanks,
Mark 4 4484
You didn't mention whether you're
using IIS 5.x of IIS 6.0, but at this page : http://www.microsoft.com/technet/scr...s/default.mspx
youll find sample scripts to do what
you want to do in both versions.
Juan T. Llibre
ASP.NET MVP
===========
"Mark" <Ma**@discussio ns.microsoft.co m> wrote in message
news:A6******** *************** ***********@mic rosoft.com... 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 "CreateAspWebAp p.bat virtualPath PhysicalPath"
I thought something like: cd %windir%\Micros oft.NET\Framewo rk\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\Admi nScripts mkwebdir -c localhost -w "Default Web Site" -v "SampleApp1","C :\Develop\Sampl eApp1\"
The problem is that I still need to manually go into the IIS GUI console, go to the web's property page, VirturalDirecto ry tab, and set its Execute Permissions = "Scripts Only" (default is none) and click the "Create" button next to the Application Name textbox.
Thanks, Mark
Hello Juan,
Thanks for the post. I'm using IIS 5.1.
I had checked out that sight before posting here. The closest script I can
see on there is "Create an Application in a Web Directory". That script reads:
strComputer = "LocalHost"
Set objIIS = GetObject _
("IIS://" & strComputer & "/W3SVC/2142295254/root/aspnet_client_f older")
objIIS.AppCreat e(False)
The problem is that I don't see where to set the physical directory of the
application source code (such as "C:\inetpub\www root\myApp1").
Any advice?
Thanks,
Mark
"Juan T. Llibre" wrote: You didn't mention whether you're using IIS 5.x of IIS 6.0, but at this page : http://www.microsoft.com/technet/scr...s/default.mspx
youll find sample scripts to do what you want to do in both versions. Juan T. Llibre ASP.NET MVP =========== "Mark" <Ma**@discussio ns.microsoft.co m> wrote in message news:A6******** *************** ***********@mic rosoft.com... 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 "CreateAspWebAp p.bat virtualPath PhysicalPath"
I thought something like: cd %windir%\Micros oft.NET\Framewo rk\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\Admi nScripts mkwebdir -c localhost -w "Default Web Site" -v "SampleApp1","C :\Develop\Sampl eApp1\"
The problem is that I still need to manually go into the IIS GUI console, go to the web's property page, VirturalDirecto ry tab, and set its Execute Permissions = "Scripts Only" (default is none) and click the "Create" button next to the Application Name textbox.
Thanks, Mark
In IIS 6, there's %SystemRoot%\Sy stem32\IIsVdir. vbs
and %SystemRoot%\Sy stem32\IIsWeb.v bs which let
you do it.
I don't know if there's scripts for IIS 5.x which do that.
You could try using System.Director yServices. http://msdn.microsoft.com/library/de...ryservices.asp
There's an example in C# there.
Juan T. Llibre
ASP.NET MVP
===========
"Mark" <Ma**@discussio ns.microsoft.co m> wrote in message
news:EB******** *************** ***********@mic rosoft.com... Hello Juan, Thanks for the post. I'm using IIS 5.1. I had checked out that sight before posting here. The closest script I can see on there is "Create an Application in a Web Directory". That script reads:
strComputer = "LocalHost" Set objIIS = GetObject _ ("IIS://" & strComputer & "/W3SVC/2142295254/root/aspnet_client_f older") objIIS.AppCreat e(False)
The problem is that I don't see where to set the physical directory of the application source code (such as "C:\inetpub\www root\myApp1"). Any advice? Thanks, Mark
"Juan T. Llibre" wrote:
You didn't mention whether you're using IIS 5.x of IIS 6.0, but at this page : http://www.microsoft.com/technet/scr...s/default.mspx
youll find sample scripts to do what you want to do in both versions. Juan T. Llibre ASP.NET MVP =========== "Mark" <Ma**@discussio ns.microsoft.co m> wrote in message news:A6******** *************** ***********@mic rosoft.com... > 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 "CreateAspWebAp p.bat virtualPath > PhysicalPath" > > I thought something like: > cd %windir%\Micros oft.NET\Framewo rk\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\Admi nScripts > mkwebdir -c localhost -w "Default Web Site" -v > "SampleApp1","C :\Develop\Sampl eApp1\" > > The problem is that I still need to manually go into the IIS GUI > console, > go > to the web's property page, VirturalDirecto ry tab, and set its Execute > Permissions = "Scripts Only" (default is none) and click the "Create" > button > next to the Application Name textbox. > > Thanks, > Mark >
Hey Juan,
Thanks for the link, I wouldn't have thought of that.
I explored Directory Services, and it seems pretty involved... almost too
involved.
I was hoping that because the problem was so straight-forward, that IIS 5.1
or the .Net SDK would just have a solution to it.
Thanks,
Mark
"Juan T. Llibre" wrote: In IIS 6, there's %SystemRoot%\Sy stem32\IIsVdir. vbs and %SystemRoot%\Sy stem32\IIsWeb.v bs which let you do it.
I don't know if there's scripts for IIS 5.x which do that.
You could try using System.Director yServices. http://msdn.microsoft.com/library/de...ryservices.asp
There's an example in C# there.
Juan T. Llibre ASP.NET MVP =========== "Mark" <Ma**@discussio ns.microsoft.co m> wrote in message news:EB******** *************** ***********@mic rosoft.com... Hello Juan, Thanks for the post. I'm using IIS 5.1. I had checked out that sight before posting here. The closest script I can see on there is "Create an Application in a Web Directory". That script reads:
strComputer = "LocalHost" Set objIIS = GetObject _ ("IIS://" & strComputer & "/W3SVC/2142295254/root/aspnet_client_f older") objIIS.AppCreat e(False)
The problem is that I don't see where to set the physical directory of the application source code (such as "C:\inetpub\www root\myApp1"). Any advice? Thanks, Mark
"Juan T. Llibre" wrote:
You didn't mention whether you're using IIS 5.x of IIS 6.0, but at this page : http://www.microsoft.com/technet/scr...s/default.mspx
youll find sample scripts to do what you want to do in both versions. Juan T. Llibre ASP.NET MVP =========== "Mark" <Ma**@discussio ns.microsoft.co m> wrote in message news:A6******** *************** ***********@mic rosoft.com... > 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 "CreateAspWebAp p.bat virtualPath > PhysicalPath" > > I thought something like: > cd %windir%\Micros oft.NET\Framewo rk\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\Admi nScripts > mkwebdir -c localhost -w "Default Web Site" -v > "SampleApp1","C :\Develop\Sampl eApp1\" > > The problem is that I still need to manually go into the IIS GUI > console, > go > to the web's property page, VirturalDirecto ry tab, and set its Execute > Permissions = "Scripts Only" (default is none) and click the "Create" > button > next to the Application Name textbox. > > Thanks, > Mark > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: RL |
last post by:
Hello Perl gurus,
1. I have a web page where I can push a button (dospawn.html).
2. This button calls a CGI script (spawnboss.cgi)
3. spawnboss.cgi calls a forking perl script (forkme.pl)
4. forkme.pl calls the process creation script (createme.pl)
5. createme.pl creates my notepad.exe process, but no window shows up on my
PC.
The result on my web browser is:
|
by: jab |
last post by:
Je veux lier (join) une table qui se trouve dans une database avec une
qui se trouve dans une autre database. Les 2 databases sont sur le
même serveur en l'occurence DB2/NT 7.2.9. J'ai créé un wrapper avec le
control center (j'ai utilisé DRDA) et ensuite j'ai voulu créé le
serveur mais avec le wizard, il ne me présente pas mes tables !
J'ai donc essayé en ligne de commande. J'ai essayé la commande
suivante:
CREATE SERVER TEST TYPE...
|
by: Zack Sessions |
last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command
and ADO.NET? If so, is there a trick in trapping a SQL error when
trying to create the view? I have a VB.NET app that, amoung other
things, can create views based on existing tables and a table of
column name equivalents. If I accidently introduce a column name
equivalent that is the same as another column, I end up with a CREATE
VIEW SQL statement that is in error, if...
|
by: Conrad |
last post by:
Hi, it seems that I have the following issue when trying to create a
symbolic link within a script:
FROM COMMAND LINE: The owner is set to myself. Thus, it works.
FROM WEB PAGE: It doesn't work as expected.
I know that it runs as one user at the command line and a different
user from the web page. Thus, is it possible to do the following
within the script:
|
by: Steven Bethard |
last post by:
The PEP below should be mostly self explanatory. I'll try to keep the
most updated versions available at:
http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt
http://ucsu.colorado.edu/~bethard/py/pep_create_statement.html
PEP: XXX
Title: The create statement
| |
by: sandy |
last post by:
I need (okay, I want) to make a dynamic array of my class 'Directory',
within my class Directory (Can you already smell disaster?)
Each Directory can have subdirectories so I thought to put these in an
array. The application compiles but aborts without giving me any useful
information.
What I suspect is happening is infinite recursion. Each Directory
object creates an array of Subdirectories each of which has an array of...
|
by: JohnnyDeep |
last post by:
I am trying to create a store proc that contain a create index with
the cluster option and I receive
DB21034E The command was processed as an SQL statement because it was
not a
valid Command Line Processor command. During SQL processing it
returned:
SQL0623N A clustering index already exists on table "PGIR.TF_RRCE".
LINE
NUMBER=35. SQLSTATE=55012
|
by: Rahul B |
last post by:
Hi,
I have a user UCLDEV1 which is a part of staff and a
group(db2schemagrp1) to which i have not given any permissions.
The authorizations of that user are shown as
db2 =get authorizations
Administrative Authorizations for Current User
|
by: henrymania |
last post by:
Am writing a code for database backup....by backupservlet is as given below
i get the following exception
|
by: Alvin SIU |
last post by:
Hi all,
I have a table in Db2 v8 like this:
Team Name Role
------ -------- ---------------------
A Superman Leader
A Batman Member
A WonderWoman Member
B Alvin Leader
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |