Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Creating Virtual Directory with .net DirectoryServices

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  enumerate IIS dependent services  
Author Message
anonymous355

External


Since: Nov 07, 2003
Posts: 5



(Msg. 1) Posted: Tue Feb 03, 2004 2:29 pm
Post subject: Creating Virtual Directory with .net DirectoryServices
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi,

I'm creating a virtual directoy using .net's
DirectoryServices framework component. We're using IIS 5.0.

The properties I'm setting are:

    vDir =
iisAdmin.Children.Add
(virtualDirectory.Name, "IIsWebVirtualDir");
    vDir.Properties
["AppFriendlyName"][0] =
virtualDirectory.AppFriendlyName;
    vDir.Properties
["AppIsolated"][0] =
virtualDirectory.AppIsolated;
    vDir.Properties
["AccessRead"][0] =
virtualDirectory.AccessRead;
    vDir.Properties
["AccessWrite"][0] =
virtualDirectory.AccessWrite;
    vDir.Properties
["AccessExecute"][0] =
virtualDirectory.AccessExecute;
    vDir.Properties
["AccessScript"][0] =
virtualDirectory.AccessScript;
    vDir.Properties
["AccessSource"][0] =
virtualDirectory.AccessSource;
    vDir.Properties
["AccessNoRemoteRead"][0] =
virtualDirectory.AccessNoRemoteRead;
    vDir.Properties
["AccessNoRemoteWrite"][0] =
virtualDirectory.AccessNoRemoteWrite;
    vDir.Properties
["AccessNoRemoteExecute"][0] =
virtualDirectory.AccessNoRemoteExecute;
    vDir.Properties
["AccessNoRemoteScript"][0] =
virtualDirectory.AccessNoRemoteScript;
    vDir.Properties
["EnableDefaultDoc"][0] =
virtualDirectory.EnableDefaultDoc;
    vDir.Properties
["EnableDirBrowsing"][0] =
virtualDirectory.EnableDirectoryBrowsing;
    vDir.Properties
["AccessFlags"][0] =
virtualDirectory.ExecutionPermission;
    vDir.Properties
["DefaultDoc"][0] =
virtualDirectory.DefaultDoc;
    vDir.Properties["Path"][0]
    =
virtualDirectory.Path;
    vDir.CommitChanges();


I can view the virtual directory in the IIS snap in, and
it looks ok. However, when I try to launch a page, I get a
server error. (The server failed to load
application '/LM/W3SVC/1/Root/DeploymentTest'. The error
was '8007053d'.)

Any ideas?

Thanks,

Ken<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Creating Virtual Directory with .net DirectoryServices 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Creating Virtual Directory for OWA - We have 2 servers. Our web server is Windows 2000 SP4 with IIS 5 and our Exchange Server which is a Windows 2003 Server with IIS 6 and Exchange 2003. Is it possible to create a virtual directory to connect to the exchange server from our web server? Is i...

Error creating Virtual directory - IIS is on the C drive. On our client location, we created a virtual directory that points to a D drive (D drive is on the same machine with C drive). After creating it, instead of the icon looks like an open folder, it looks like a STOP sign with the wor...

Related to creating a Virtual directory on II6(WIndows Ser.. - Hi there, I just created a virtual directory in II6 (Windows Server 2003) but when I try to access my web site it gives me the error as mentioned below. I've done this thing 1000 times in IIS 5(windows 2000) but have no idea why it does not..

Problem creating a new Virtual Web Dir. - I use IISWebVirtualDir object to create a virtual Dir using IIS 5.0 that is pointing to a directory on a remote server which is actually a file server. The Vir.Dir. has to use a user account to connect to the remote server. I need help on setting up...

help creating a virtual root across a firewall - I'm trying to create a virtual root between my IIS box and my application server, but my application server is behind a firewall. What port(s) do I need to open in order to do this? 139?
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]