To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > VBForums CodeBank > CodeBank - ASP / ASP.NET

Reply Post New Thread
 
Thread Tools Display Modes
Old Jun 30th, 2005, 03:41 AM   #1
Wokawidget
Super Moderator
 
Wokawidget's Avatar
 
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)
Create Virtual Directory in IIS using VB.NET

You need to add a reference into your app for System.DirectoryServices
Then use:
VB Code:
  1. Private Sub CreateVirtualDir(ByVal WebSite As String, ByVal AppName As String, ByVal Path As String)
  2.         Dim IISSchema As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/Schema/AppIsolated")
  3.         Dim CanCreate As Boolean = Not IISSchema.Properties("Syntax").Value.ToString.ToUpper() = "BOOLEAN"
  4.         IISSchema.Dispose()
  5.         If CanCreate Then
  6.             Dim PathCreated As Boolean
  7.             Try
  8.                 Dim IISAdmin As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/W3SVC/1/Root")
  9.                 'make sure folder exists
  10.                 If Not System.IO.Directory.Exists(Path) Then
  11.                     System.IO.Directory.CreateDirectory(Path)
  12.                     PathCreated = True
  13.                 End If
  14.                 'If the virtual directory already exists then delete it
  15.                 For Each VD As System.DirectoryServices.DirectoryEntry In IISAdmin.Children
  16.                     If VD.Name = AppName Then
  17.                         IISAdmin.Invoke("Delete", New String() {VD.SchemaClassName, AppName})
  18.                         IISAdmin.CommitChanges()
  19.                         Exit For
  20.                     End If
  21.                 Next VD
  22.                 'Create and setup new virtual directory
  23.                 Dim VDir As System.DirectoryServices.DirectoryEntry = IISAdmin.Children.Add(AppName, "IIsWebVirtualDir")
  24.                 VDir.Properties("Path").Item(0) = Path
  25.                 VDir.Properties("AppFriendlyName").Item(0) = AppName
  26.                 VDir.Properties("EnableDirBrowsing").Item(0) = False
  27.                 VDir.Properties("AccessRead").Item(0) = True
  28.                 VDir.Properties("AccessExecute").Item(0) = True
  29.                 VDir.Properties("AccessWrite").Item(0) = False
  30.                 VDir.Properties("AccessScript").Item(0) = True
  31.                 VDir.Properties("AuthNTLM").Item(0) = True
  32.                 VDir.Properties("EnableDefaultDoc").Item(0) = True
  33.                 VDir.Properties("DefaultDoc").Item(0) = "default.htm,default.aspx,default.asp"
  34.                 VDir.Properties("AspEnableParentPaths").Item(0) = True
  35.                 VDir.CommitChanges()
  36.                 'the following are acceptable params
  37.                 'INPROC = 0
  38.                 'OUTPROC = 1
  39.                 'POOLED = 2
  40.                 VDir.Invoke("AppCreate", 1)
  41.             Catch Ex As Exception
  42.                 If PathCreated Then
  43.                     System.IO.Directory.Delete(Path)
  44.                 End If
  45.                 Throw Ex
  46.             End Try
  47.         End If
  48.     End Sub
This is used in the following way:
VB Code:
  1. CreateVirtualDir("LocalHost", "Woof", "C:\MyWebProjects\Woof")
This creates a Virtual Dir called Woof on the LocalHost server and points and the path C:\MyWebProjects\Woof on the hard drive.

Hope this helps.

Woka
__________________
My .NET Tutorials:
Silverlight Enabled WebPart in WSS

My VB.NET Code Examples:
Create IIS Virtual DirectoryValidate Login Against Active DirectoryAutomatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET

My ASP.NET Code Examples:
Login To Website (Forms Authentication)Login To Website (Custom Authentication)

My VB6 Code Projects:
Multithreading In VB6Custom TooltipsMulti Language SupportItem Selector ControlAnnimated Systray IconSimple Effective Graph ControlDownload From WebLiveUpdate, download application updates from the web automaticallySystray Notification MessagesSkin A FormAPI TimerBadger Messenger, an MSN clone that uses the MSN NetworkWokawidgets VB6 Component Suite

Last edited by Wokawidget; Aug 24th, 2005 at 03:40 AM.
Wokawidget is offline   Reply With Quote
Old Jul 19th, 2005, 06:34 PM   #2
nizmo
New Member
 
Join Date: Jul 05
Posts: 2
nizmo is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

That code is exactly what i was after, and it works fine on the primary domain controller machine - but when i try and run it on our new web server i get the error

"The RPC server is unavailable"

On this line;
Dim CanCreate As Boolean = Not IISSchema.Properties("Syntax").Value.ToString.ToUpper() = "BOOLEAN"


The RPC service IS started on the server in question.
Its driving me crazy, you gotta help me!
nizmo is offline   Reply With Quote
Old Jul 19th, 2005, 07:56 PM   #3
Wokawidget
Super Moderator
 
Wokawidget's Avatar
 
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)
Re: Create Virtual Directory in IIS using VB.NET

I tried Googling it for you, but there are sooooo many different reasons for it not working....from having a virus on the PC to renaming your computer after IIS has been installed.

Here's the search link I used:

http://www.google.com/search?hl=en&l...ble%22+and+IIS

It's 2am here, and I need Zzzzz for an early start.

Let us know if you find the solution. If you haven't posted back here by tomorrow morning, 10am-ish GMT, then I'll look through all those search results and see what I come up with.

Woof
__________________
My .NET Tutorials:
Silverlight Enabled WebPart in WSS

My VB.NET Code Examples:
Create IIS Virtual DirectoryValidate Login Against Active DirectoryAutomatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET

My ASP.NET Code Examples:
Login To Website (Forms Authentication)Login To Website (Custom Authentication)

My VB6 Code Projects:
Multithreading In VB6Custom TooltipsMulti Language SupportItem Selector ControlAnnimated Systray IconSimple Effective Graph ControlDownload From WebLiveUpdate, download application updates from the web automaticallySystray Notification MessagesSkin A FormAPI TimerBadger Messenger, an MSN clone that uses the MSN NetworkWokawidgets VB6 Component Suite
Wokawidget is offline   Reply With Quote
Old Jul 21st, 2005, 10:53 PM   #4
nizmo
New Member
 
Join Date: Jul 05
Posts: 2
nizmo is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

Hey

Thanks heaps for replying, and yeah google returned too many possibilities, but we figured it out in the end. It was the windows firewall that was preventing me from doing a rpc to the sever, probably because of the ports. Since our web server has another 2 outer layers of firewall protection, the standard windows firewall wasnt required and so we just leave it off now

Ah man you wouldnt believe how much nicer it is being able to click one button to roll out 6 new versions of our product instead of having to terminal services into the server, delete the 6 shares, share the 6 new folders, refresh the website node, right click each of the 6 new versions of the app and go to properties to apply permissions etc etc.

Thanks heaps, you're code has saved me so much time and frustration.

Oh yeah, and hopefully i replied in time so you didnt have to search through the google results - if not, then im sorry about that :/

Last edited by nizmo; Jul 21st, 2005 at 10:57 PM.
nizmo is offline   Reply With Quote
Old Jul 22nd, 2005, 03:50 AM   #5
Wokawidget
Super Moderator
 
Wokawidget's Avatar
 
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)
Re: Create Virtual Directory in IIS using VB.NET

No problems...We thought the same here...made life sooo much easier for us.
I did search google and was testing stuff out yesterday, but ended up in lots of meetings and stuff then got caught up in writting some code so we could write our UI at work.

Glad it's fixed though.

What was the error and I'll add a try catch thing to my code.

Woka
__________________
My .NET Tutorials:
Silverlight Enabled WebPart in WSS

My VB.NET Code Examples:
Create IIS Virtual DirectoryValidate Login Against Active DirectoryAutomatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET

My ASP.NET Code Examples:
Login To Website (Forms Authentication)Login To Website (Custom Authentication)

My VB6 Code Projects:
Multithreading In VB6Custom TooltipsMulti Language SupportItem Selector ControlAnnimated Systray IconSimple Effective Graph ControlDownload From WebLiveUpdate, download application updates from the web automaticallySystray Notification MessagesSkin A FormAPI TimerBadger Messenger, an MSN clone that uses the MSN NetworkWokawidgets VB6 Component Suite
Wokawidget is offline   Reply With Quote
Old Aug 23rd, 2005, 10:02 PM   #6
uniquegodwin
Fanatic Member
 
uniquegodwin's Avatar
 
Join Date: Jul 05
Location: Chennai,India
Posts: 693
uniquegodwin will become famous soon enough (50+)
Re: Create Virtual Directory in IIS using VB.NET

Hey..
the "System.DirectoryServices.DirectoryEntry" namespace doesnt work for me..what should i do?

Thanks
__________________
Godwin

Help someone else with what someone helped you!
uniquegodwin is offline   Reply With Quote
Old Aug 23rd, 2005, 10:04 PM   #7
uniquegodwin
Fanatic Member
 
uniquegodwin's Avatar
 
Join Date: Jul 05
Location: Chennai,India
Posts: 693
uniquegodwin will become famous soon enough (50+)
Re: Create Virtual Directory in IIS using VB.NET

I mean that namespace doesnt exist on my computer..Is there some reference you added or something?
__________________
Godwin

Help someone else with what someone helped you!
uniquegodwin is offline   Reply With Quote
Old Aug 24th, 2005, 03:37 AM   #8
Wokawidget
Super Moderator
 
Wokawidget's Avatar
 
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)
Re: Create Virtual Directory in IIS using VB.NET

You need to add a reference to System.DirectoryServices

Sorry, myfaul...should have mentioned that in my 1st post

Woof
__________________
My .NET Tutorials:
Silverlight Enabled WebPart in WSS

My VB.NET Code Examples:
Create IIS Virtual DirectoryValidate Login Against Active DirectoryAutomatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET

My ASP.NET Code Examples:
Login To Website (Forms Authentication)Login To Website (Custom Authentication)

My VB6 Code Projects:
Multithreading In VB6Custom TooltipsMulti Language SupportItem Selector ControlAnnimated Systray IconSimple Effective Graph ControlDownload From WebLiveUpdate, download application updates from the web automaticallySystray Notification MessagesSkin A FormAPI TimerBadger Messenger, an MSN clone that uses the MSN NetworkWokawidgets VB6 Component Suite
Wokawidget is offline   Reply With Quote
Old Aug 24th, 2005, 04:26 AM   #9
uniquegodwin
Fanatic Member
 
uniquegodwin's Avatar
 
Join Date: Jul 05
Location: Chennai,India
Posts: 693
uniquegodwin will become famous soon enough (50+)
Re: Create Virtual Directory in IIS using VB.NET

No no,the code is Great.. Thanks
__________________
Godwin

Help someone else with what someone helped you!
uniquegodwin is offline   Reply With Quote
Old Aug 24th, 2005, 04:30 AM   #10
uniquegodwin
Fanatic Member
 
uniquegodwin's Avatar
 
Join Date: Jul 05
Location: Chennai,India
Posts: 693
uniquegodwin will become famous soon enough (50+)
Re: Create Virtual Directory in IIS using VB.NET

Will this work even if IIS is not installed on the users machine?
__________________
Godwin

Help someone else with what someone helped you!
uniquegodwin is offline   Reply With Quote
Old Aug 24th, 2005, 05:59 AM   #11
Wokawidget
Super Moderator
 
Wokawidget's Avatar
 
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)
Re: Create Virtual Directory in IIS using VB.NET

errrr....no

Woka
__________________
My .NET Tutorials:
Silverlight Enabled WebPart in WSS

My VB.NET Code Examples:
Create IIS Virtual DirectoryValidate Login Against Active DirectoryAutomatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET

My ASP.NET Code Examples:
Login To Website (Forms Authentication)Login To Website (Custom Authentication)

My VB6 Code Projects:
Multithreading In VB6Custom TooltipsMulti Language SupportItem Selector ControlAnnimated Systray IconSimple Effective Graph ControlDownload From WebLiveUpdate, download application updates from the web automaticallySystray Notification MessagesSkin A FormAPI TimerBadger Messenger, an MSN clone that uses the MSN NetworkWokawidgets VB6 Component Suite
Wokawidget is offline   Reply With Quote
Old Aug 24th, 2005, 06:19 AM   #12
uniquegodwin
Fanatic Member
 
uniquegodwin's Avatar
 
Join Date: Jul 05
Location: Chennai,India
Posts: 693
uniquegodwin will become famous soon enough (50+)
Re: Create Virtual Directory in IIS using VB.NET

but still,I really appreciate this code you've done.Its really good Thanks.
__________________
Godwin

Help someone else with what someone helped you!
uniquegodwin is offline   Reply With Quote
Old Oct 10th, 2005, 05:48 AM   #13
AProgrammer
New Member
 
Join Date: Oct 05
Posts: 1
AProgrammer is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

The Code is really awesome but I have a necessity where I want to Create or Add or Delete Virtual Directories or Web Sites. Any Help Possible???????
AProgrammer is offline   Reply With Quote
Old Nov 7th, 2005, 12:34 AM   #14
san011070
New Member
 
Join Date: Nov 05
Posts: 1
san011070 is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

Thx so much for this code. Keep it up!

I just wanna know if it needs full .NET installed or only the .NET framwork?

Sanjiv
san011070 is offline   Reply With Quote
Old Nov 7th, 2005, 03:49 AM   #15
Wokawidget
Super Moderator
 
Wokawidget's Avatar
 
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)
Re: Create Virtual Directory in IIS using VB.NET

U would need the .NET framework and some form of VB.NET compiler. MS do one for free. But dunno what it's called.

Woka
__________________
My .NET Tutorials:
Silverlight Enabled WebPart in WSS

My VB.NET Code Examples:
Create IIS Virtual DirectoryValidate Login Against Active DirectoryAutomatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET

My ASP.NET Code Examples:
Login To Website (Forms Authentication)Login To Website (Custom Authentication)

My VB6 Code Projects:
Multithreading In VB6Custom TooltipsMulti Language SupportItem Selector ControlAnnimated Systray IconSimple Effective Graph ControlDownload From WebLiveUpdate, download application updates from the web automaticallySystray Notification MessagesSkin A FormAPI TimerBadger Messenger, an MSN clone that uses the MSN NetworkWokawidgets VB6 Component Suite
Wokawidget is offline   Reply With Quote
Old Dec 2nd, 2005, 11:04 AM   #16
skillsrhodes
New Member
 
Join Date: Dec 05
Posts: 1
skillsrhodes is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

Thanks so much for this code, it works great. My question is, if I want to build a virtual dir in a non-default web site, what's the best way to go about doing it?

I think I need to do something like this, right?

Dim IISAdmin As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/W3SVC/N/Root")

Where N is the correct number to address the web site I'm looking for. Is there a way to determine what that number is in VB?

Thanks

Adam
skillsrhodes is offline   Reply With Quote
Old Dec 13th, 2005, 04:40 PM   #17
bw3740
New Member
 
Join Date: Dec 05
Posts: 1
bw3740 is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

I used this to find the correct site id:
---------------------------------------
Dim SiteID As Integer
Dim root As New System.DirectoryServices.DirectoryEntry("IIS://" & ServerName & "/W3SVC")

For Each e As System.DirectoryServices.DirectoryEntry In root.Children
If e.SchemaClassName.ToUpper = "IISWEBSERVER" AndAlso CStr(e.Invoke("Get", "ServerComment")).ToUpper = SiteName.ToUpper Then
SiteID = Convert.ToInt32(e.Name)
Exit For
End If
Next

Dim IISAdmin As New System.DirectoryServices.DirectoryEntry("IIS://" & ServerName & "/W3SVC/" & SiteID & "/Root")
bw3740 is offline   Reply With Quote
Old Dec 19th, 2005, 04:49 PM   #18
chipslvsv
New Member
 
Join Date: Dec 05
Posts: 1
chipslvsv is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

Hello I have used this code but when I try to Create de Virtual Directory I get a System.UnauthorizedAccessException: Access is denied error saying something about the ASP.NET anonymous use required permissions etc.

I'm running an IIS 5.1 Server on Windows 2000 Server.

I don't know where is suposed to give the permissions to the user. Maybe someone can help me Thaks..
chipslvsv is offline   Reply With Quote
Old Jun 29th, 2006, 10:41 AM   #19
duynnh
New Member
 
Join Date: Mar 06
Posts: 3
duynnh is an unknown quantity at this point (<10)
Unhappy Re: Create Virtual Directory in IIS using VB.NET

Hi All!
I am using this code but i have an Error: "System.UnauthorizedAccessException: Access is denied", help me!
Regards,
duynnh is offline   Reply With Quote
Old Jun 29th, 2006, 12:07 PM   #20
Wokawidget
Super Moderator
 
Wokawidget's Avatar
 
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)
Re: Create Virtual Directory in IIS using VB.NET

Probably because your accounts don't have permissions. Pass a valid username and password to the:
VB Code:
  1. Dim IISSchema As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/Schema/AppIsolated", "Administrator", "Woka123")
I am assuming it's that line of code.

Woka
__________________
My .NET Tutorials:
Silverlight Enabled WebPart in WSS

My VB.NET Code Examples:
Create IIS Virtual DirectoryValidate Login Against Active DirectoryAutomatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET

My ASP.NET Code Examples:
Login To Website (Forms Authentication)Login To Website (Custom Authentication)

My VB6 Code Projects:
Multithreading In VB6Custom TooltipsMulti Language SupportItem Selector ControlAnnimated Systray IconSimple Effective Graph ControlDownload From WebLiveUpdate, download application updates from the web automaticallySystray Notification MessagesSkin A FormAPI TimerBadger Messenger, an MSN clone that uses the MSN NetworkWokawidgets VB6 Component Suite
Wokawidget is offline   Reply With Quote
Old Aug 3rd, 2006, 02:56 PM   #21
txghia58
New Member
 
Join Date: Aug 06
Posts: 1
txghia58 is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

Any idea of how to set the .Net version that the virtual directory is using?
txghia58 is offline   Reply With Quote
Old Aug 21st, 2006, 08:22 AM   #22
myabhishek
New Member
 
Join Date: Aug 06
Posts: 1
myabhishek is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

Quote:
Originally Posted by duynnh
Hi All!
I am using this code but i have an Error: "System.UnauthorizedAccessException: Access is denied", help me!
Regards,
-------------------------------

When i am trying to create a virtual directory using the above code - i get the following error

System.UnauthorizedAccessException was unhandled by user code
Message="Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"
Source="System.DirectoryServices"
StackTrace:
at _Default.CreateVirtualDir(String WebSite, String AppName, String Path) in c:\inetpub\wwwroot\VirtualWebSite\Default.aspx.vb:line 84
at _Default.btnCreateDirectory_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\VirtualWebSite\Default.aspx.vb:line 9
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


--------------

Please help
myabhishek is offline   Reply With Quote
Old Aug 22nd, 2006, 05:13 AM   #23
Wokawidget
Super Moderator
 
Wokawidget's Avatar
 
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)
Re: Create Virtual Directory in IIS using VB.NET

Can you post your code...

Woka
__________________
My .NET Tutorials:
Silverlight Enabled WebPart in WSS

My VB.NET Code Examples:
Create IIS Virtual DirectoryValidate Login Against Active DirectoryAutomatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET

My ASP.NET Code Examples:
Login To Website (Forms Authentication)Login To Website (Custom Authentication)

My VB6 Code Projects:
Multithreading In VB6Custom TooltipsMulti Language SupportItem Selector ControlAnnimated Systray IconSimple Effective Graph ControlDownload From WebLiveUpdate, download application updates from the web automaticallySystray Notification MessagesSkin A FormAPI TimerBadger Messenger, an MSN clone that uses the MSN NetworkWokawidgets VB6 Component Suite
Wokawidget is offline   Reply With Quote
Old Aug 23rd, 2006, 10:24 AM   #24
beepmaster
New Member
 
beepmaster's Avatar
 
Join Date: Aug 06
Location: Illinois
Posts: 6
beepmaster is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

I tried to implement this code and can get it to work on one of my Web sites on my development IIS server. However, the only one it works on is the local host. I am actually developing 7 Web sites off of my server and need to create the virtual directories on a different Web site. How do I point the virtual directory to the right Web site?

Also, are there any security risks with having this function available over the Web that I should be concerned about? (Stupid question?)
__________________
-BM
www.beepcentral.com

Last edited by beepmaster; Aug 23rd, 2006 at 10:45 AM.
beepmaster is offline   Reply With Quote
Old Aug 23rd, 2006, 08:30 PM   #25
Wokawidget
Super Moderator
 
Wokawidget's Avatar
 
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)
Re: Create Virtual Directory in IIS using VB.NET

Not sure how to do it remotely.

There are security risks with anything...but I don't think it can be done over the web, and if they could, then they could also login to your svr because they would need the username and password.

Woof
__________________
My .NET Tutorials:
Silverlight Enabled WebPart in WSS

My VB.NET Code Examples:
Create IIS Virtual DirectoryValidate Login Against Active DirectoryAutomatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET

My ASP.NET Code Examples:
Login To Website (Forms Authentication)Login To Website (Custom Authentication)

My VB6 Code Projects:
Multithreading In VB6Custom TooltipsMulti Language SupportItem Selector ControlAnnimated Systray IconSimple Effective Graph ControlDownload From WebLiveUpdate, download application updates from the web automaticallySystray Notification MessagesSkin A FormAPI TimerBadger Messenger, an MSN clone that uses the MSN NetworkWokawidgets VB6 Component Suite
Wokawidget is offline   Reply With Quote
Old Aug 24th, 2006, 09:40 AM   #26
beepmaster
New Member
 
beepmaster's Avatar
 
Join Date: Aug 06
Location: Illinois
Posts: 6
beepmaster is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

Also, is it possible to (instead of specifying a file location) to specify a redirect page?
__________________
-BM
www.beepcentral.com
beepmaster is offline   Reply With Quote
Old Sep 8th, 2006, 01:36 AM   #27
wizbay
New Member
 
Join Date: Sep 06
Posts: 4
wizbay is an unknown quantity at this point (<10)
Thumbs up Re: Create Virtual Directory in IIS using VB.NET

Woka, I read your article about creating virtual directory in vbforum.com.

This is an amazing code I was looking for long time. I am developing with visual studio 2005 on windows xp pro system.

This code works if I build it using development server in visual studio 2005 (Ctrl + F5) but it would not work on win xp's iis server. It occurs "System.UnauthorizedAccessException: Access is denied".

I tried your suggestion
(Dim IISSchema As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/Schema/AppIsolated", "Administrator", "Woka123"))
and others, too but nothing works.

Do you have any other suggestions? I get this working on my desktop, can I make this working on my webhosting account? (shared hosting)

If this is not working, can you tell me how to make a folder an application root in vb.net?
wizbay is offline   Reply With Quote
Old Sep 8th, 2006, 04:40 AM   #28
Wokawidget
Super Moderator
 
Wokawidget's Avatar
 
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)
Re: Create Virtual Directory in IIS using VB.NET

Have you used the servers admin and password?

Woka
__________________
My .NET Tutorials:
Silverlight Enabled WebPart in WSS

My VB.NET Code Examples:
Create IIS Virtual DirectoryValidate Login Against Active DirectoryAutomatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET

My ASP.NET Code Examples:
Login To Website (Forms Authentication)Login To Website (Custom Authentication)

My VB6 Code Projects:
Multithreading In VB6Custom TooltipsMulti Language SupportItem Selector ControlAnnimated Systray IconSimple Effective Graph ControlDownload From WebLiveUpdate, download application updates from the web automaticallySystray Notification MessagesSkin A FormAPI TimerBadger Messenger, an MSN clone that uses the MSN NetworkWokawidgets VB6 Component Suite
Wokawidget is offline   Reply With Quote
Old Sep 8th, 2006, 04:15 PM   #29
wizbay
New Member
 
Join Date: Sep 06
Posts: 4
wizbay is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

Yes I used the username and password.

You mean the username and password I use to log on to Windows xp right?

My account has admin's permission.
wizbay is offline   Reply With Quote
Old Sep 10th, 2006, 03:56 PM   #30
wizbay
New Member
 
Join Date: Sep 06
Posts: 4
wizbay is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

Is this code wokring for IIS 6.0 and higher only?

5.1 or earlier version doesn't work?
wizbay is offline   Reply With Quote
Old Sep 10th, 2006, 05:20 PM   #31
Wokawidget
Super Moderator
 
Wokawidget's Avatar
 
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)
Re: Create Virtual Directory in IIS using VB.NET

only tested on 6 I am afraid

WOka
__________________
My .NET Tutorials:
Silverlight Enabled WebPart in WSS

My VB.NET Code Examples:
Create IIS Virtual DirectoryValidate Login Against Active DirectoryAutomatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET

My ASP.NET Code Examples:
Login To Website (Forms Authentication)Login To Website (Custom Authentication)

My VB6 Code Projects:
Multithreading In VB6Custom TooltipsMulti Language SupportItem Selector ControlAnnimated Systray IconSimple Effective Graph ControlDownload From WebLiveUpdate, download application updates from the web automaticallySystray Notification MessagesSkin A FormAPI TimerBadger Messenger, an MSN clone that uses the MSN NetworkWokawidgets VB6 Component Suite
Wokawidget is offline   Reply With Quote
Old Sep 12th, 2006, 11:42 PM   #32
wizbay
New Member
 
Join Date: Sep 06
Posts: 4
wizbay is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

Okay. I finally installed windows 2003 standard with IIS 6.0.
I used default created web.config and had directoryservices referenced.

But unfortunately, I still have exactly same error. I will be more detail this time Woka.

Here's link to my ftp server for my source codes. http://wizbay.com/woka.zip

Please don't give me up~

Default.aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" Debug="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

</div>
</form>
</body>
</html>

Default.aspx.vb
Imports Microsoft.VisualBasic
Imports System
Imports System.Data
Imports System.Configuration
Imports System.Collections
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports System.Data.SqlClient
Imports System.DirectoryServices

Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

If Not IsPostBack Then

CreateVirtualDir("localhost", "test", "e:\test")

End If

End Sub
Private Sub CreateVirtualDir(ByVal WebSite As String, ByVal AppName As String, ByVal Path As String)

'Dim IISSchema As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/Schema/AppIsolated")
Dim IISSchema As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/Schema/AppIsolated", "Administrator", "1212")

Dim CanCreate As Boolean = Not IISSchema.Properties("Syntax").Value.ToString.ToUpper() = "BOOLEAN"
IISSchema.Dispose()

If CanCreate Then
Dim PathCreated As Boolean

Try
Dim IISAdmin As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/W3SVC/1/Root")

'make sure folder exists
If Not System.IO.Directory.Exists(Path) Then
System.IO.Directory.CreateDirectory(Path)
PathCreated = True
End If

'If the virtual directory already exists then delete it
For Each VD As System.DirectoryServices.DirectoryEntry In IISAdmin.Children
If VD.Name = AppName Then
IISAdmin.Invoke("Delete", New String() {VD.SchemaClassName, AppName})
IISAdmin.CommitChanges()
Exit For
End If
Next VD

'Create and setup new virtual directory
Dim VDir As System.DirectoryServices.DirectoryEntry = IISAdmin.Children.Add(AppName, "IIsWebVirtualDir")
VDir.Properties("Path").Item(0) = Path
VDir.Properties("AppFriendlyName").Item(0) = AppName
VDir.Properties("EnableDirBrowsing").Item(0) = False
VDir.Properties("AccessRead").Item(0) = True
VDir.Properties("AccessExecute").Item(0) = True
VDir.Properties("AccessWrite").Item(0) = False
VDir.Properties("AccessScript").Item(0) = True
VDir.Properties("AuthNTLM").Item(0) = True
VDir.Properties("EnableDefaultDoc").Item(0) = True
VDir.Properties("DefaultDoc").Item(0) = "default.htm,default.aspx,default.asp"
VDir.Properties("AspEnableParentPaths").Item(0) = True
VDir.CommitChanges()

'the following are acceptable params
'INPROC = 0
'OUTPROC = 1
'POOLED = 2
VDir.Invoke("AppCreate", 1)

Catch Ex As Exception
If PathCreated Then
System.IO.Directory.Delete(Path)
End If
Throw Ex
End Try
End If
End Sub

End Class


Error on http://localhost/Default.aspx
Access denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[UnauthorizedAccessException: Access denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))]
_Default.CreateVirtualDir(String WebSite, String AppName, String Path) +1238
_Default.Page_Load(Object sender, EventArgs e) +43
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

Last edited by wizbay; Sep 12th, 2006 at 11:45 PM.
wizbay is offline   Reply With Quote
Old Sep 15th, 2006, 12:25 PM   #33
beepmaster
New Member
 
beepmaster's Avatar
 
Join Date: Aug 06
Location: Illinois
Posts: 6
beepmaster is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

All, I was finally able to spend some time to answer my question about how to specify which Web site on the IIS server I wanted to create the Virtual Directory for. In the following line of code, the "1" is the identifier for which Web site you are referring to. You can get this number by left clicking on the Website folder. To the right, the screen should now list all of your Web sites and there is an identifier column. That is the value that should be there.

Dim IISAdmin As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/W3SVC/1/Root")

Hope that makes sense.
__________________
-BM
www.beepcentral.com
beepmaster is offline   Reply With Quote
Old Sep 29th, 2006, 09:11 AM   #34
beepmaster
New Member
 
beepmaster's Avatar
 
Join Date: Aug 06
Location: Illinois
Posts: 6
beepmaster is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

I was getting this error, but I think I have solved it. I'm not sure it's the best solution, because apparently it opens up some security issues, but it has to do with the application pool you are using for the Web site. If you go to the Web site's application pool's properties and select the identity tag you will see a drop down box next to the "predefined" radio button. Select "Local system" and click apply.

If all your code is set up correctly, you should be all set. I don't know what (if any) security risks are opened. Microsoft just throws up a warning when you do this. Let me know if you find anything on that, I'd be very interested to hear what they have to say.

Quote:
Originally Posted by wizbay
Okay. I finally installed windows 2003 standard with IIS 6.0.
I used default created web.config and had directoryservices referenced.

But unfortunately, I still have exactly same error. I will be more detail this time Woka.

Here's link to my ftp server for my source codes. http://wizbay.com/woka.zip

Please don't give me up~

Default.aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" Debug="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

</div>
</form>
</body>
</html>

Default.aspx.vb
Imports Microsoft.VisualBasic
Imports System
Imports System.Data
Imports System.Configuration
Imports System.Collections
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports System.Data.SqlClient
Imports System.DirectoryServices

Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

If Not IsPostBack Then

CreateVirtualDir("localhost", "test", "e:\test")

End If

End Sub
Private Sub CreateVirtualDir(ByVal WebSite As String, ByVal AppName As String, ByVal Path As String)

'Dim IISSchema As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/Schema/AppIsolated")
Dim IISSchema As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/Schema/AppIsolated", "Administrator", "1212")

Dim CanCreate As Boolean = Not IISSchema.Properties("Syntax").Value.ToString.ToUpper() = "BOOLEAN"
IISSchema.Dispose()

If CanCreate Then
Dim PathCreated As Boolean

Try
Dim IISAdmin As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/W3SVC/1/Root")

'make sure folder exists
If Not System.IO.Directory.Exists(Path) Then
System.IO.Directory.CreateDirectory(Path)
PathCreated = True
End If

'If the virtual directory already exists then delete it
For Each VD As System.DirectoryServices.DirectoryEntry In IISAdmin.Children
If VD.Name = AppName Then
IISAdmin.Invoke("Delete", New String() {VD.SchemaClassName, AppName})
IISAdmin.CommitChanges()
Exit For
End If
Next VD

'Create and setup new virtual directory
Dim VDir As System.DirectoryServices.DirectoryEntry = IISAdmin.Children.Add(AppName, "IIsWebVirtualDir")
VDir.Properties("Path").Item(0) = Path
VDir.Properties("AppFriendlyName").Item(0) = AppName
VDir.Properties("EnableDirBrowsing").Item(0) = False
VDir.Properties("AccessRead").Item(0) = True
VDir.Properties("AccessExecute").Item(0) = True
VDir.Properties("AccessWrite").Item(0) = False
VDir.Properties("AccessScript").Item(0) = True
VDir.Properties("AuthNTLM").Item(0) = True
VDir.Properties("EnableDefaultDoc").Item(0) = True
VDir.Properties("DefaultDoc").Item(0) = "default.htm,default.aspx,default.asp"
VDir.Properties("AspEnableParentPaths").Item(0) = True
VDir.CommitChanges()

'the following are acceptable params
'INPROC = 0
'OUTPROC = 1
'POOLED = 2
VDir.Invoke("AppCreate", 1)

Catch Ex As Exception
If PathCreated Then
System.IO.Directory.Delete(Path)
End If
Throw Ex
End Try
End If
End Sub

End Class


Error on http://localhost/Default.aspx
Access denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[UnauthorizedAccessException: Access denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))]
_Default.CreateVirtualDir(String WebSite, String AppName, String Path) +1238
_Default.Page_Load(Object sender, EventArgs e) +43
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
__________________
-BM
www.beepcentral.com
beepmaster is offline   Reply With Quote
Old Mar 22nd, 2007, 01:22 PM   #35
Passgad
New Member
 
Join Date: Dec 06
Posts: 6
Passgad is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

The original code create a Web application under wwwroot.

Someone knows how to create juste a virtual directory (not a web application) with the Browse option ?

For an example, I've created a virtual dir from the wizard in IIS 6 :




What is the code for this ?

Thanks,
Pass
Passgad is offline   Reply With Quote
Old Mar 23rd, 2007, 05:50 AM   #36
Wokawidget
Super Moderator
 
Wokawidget's Avatar
 
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)
Re: Create Virtual Directory in IIS using VB.NET

Your screen shot isnt showing...but I think this may do what you want:
Code:
Private Sub CreateVirtualDir(ByVal WebSite As String, ByVal AppName As String, ByVal NewDirName As String, ByVal Path As String)

        Dim IISSchema As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/Schema/AppIsolated")
        Dim CanCreate As Boolean = Not IISSchema.Properties("Syntax").Value.ToString.ToUpper() = "BOOLEAN"
        IISSchema.Dispose()

        If CanCreate Then
            Dim PathCreated As Boolean

            Try
                Dim IISAdmin As New System.DirectoryServices.DirectoryEntry("IIS://" & WebSite & "/W3SVC/1/Root")

                'make sure folder exists
                If Not System.IO.Directory.Exists(Path) Then
                    System.IO.Directory.CreateDirectory(Path)
                    PathCreated = True
                End If

                'If the virtual directory already exists
                Dim appFound As Boolean = False

                For Each VD As System.DirectoryServices.DirectoryEntry In IISAdmin.Children
                    If VD.Name = AppName Then
                        appFound = True

                        'Create and setup new virtual directory
                        Dim VDir As System.DirectoryServices.DirectoryEntry = VD.Children.Add(NewDirName, "IIsWebVirtualDir")
                        VDir.Properties("Path").Item(0) = Path

                        VDir.Properties("EnableDirBrowsing").Item(0) = False
                        VDir.Properties("AccessRead").Item(0) = True
                        VDir.Properties("AccessExecute").Item(0) = True
                        VDir.Properties("AccessWrite").Item(0) = False
                        VDir.Properties("AccessScript").Item(0) = True
                       
                        VDir.CommitChanges()

                        Exit For
                    End If
                Next VD

                If Not appFound Then
                    Throw New Exception("Web Application not found.")
                End If

            Catch Ex As Exception
                If PathCreated Then
                    System.IO.Directory.Delete(Path)
                End If
                Throw Ex
            End Try
        End If
    End Sub
Then call using:
Code:
CreateVirtualDir("LocalHost", "Woof", "Growl", "C:\MyWebProjects\Woof\Growl")
I already have a virtual directory called Woof under the default web site.

Woka
__________________
My .NET Tutorials:
Silverlight Enabled WebPart in WSS

My VB.NET Code Examples:
Create IIS Virtual DirectoryValidate Login Against Active DirectoryAutomatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET

My ASP.NET Code Examples:
Login To Website (Forms Authentication)Login To Website (Custom Authentication)

My VB6 Code Projects:
Multithreading In VB6Custom TooltipsMulti Language SupportItem Selector ControlAnnimated Systray IconSimple Effective Graph ControlDownload From WebLiveUpdate, download application updates from the web automaticallySystray Notification MessagesSkin A FormAPI TimerBadger Messenger, an MSN clone that uses the MSN NetworkWokawidgets VB6 Component Suite
Wokawidget is offline   Reply With Quote
Old Apr 26th, 2007, 07:28 AM   #37
h.annous
New Member
 
h.annous's Avatar
 
Join Date: Apr 07
Location: Lebanon
Posts: 5
h.annous is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

Wonderful, thank you.

I was wondering if it is possible to edit the Directory Security (Anonymous access and authentication control) in order to make sure only basic authentication and Integrated Windows security are checked for example.
h.annous is offline   Reply With Quote
Old Apr 26th, 2007, 09:06 AM   #38
h.annous
New Member
 
h.annous's Avatar
 
Join Date: Apr 07
Location: Lebanon
Posts: 5
h.annous is an unknown quantity at this point (<10)
Re: Create Virtual Directory in IIS using VB.NET

I figured it out myself, thanks.
AuthNTLM for Integrated Windows.
AuthBasic for basic authentication.
h.annous is offline   Reply With Quote
Old Apr 26th, 2007, 09:20 AM   #39
Wokawidget
Super Moderator
 
Wokawidget's Avatar
 
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)Wokawidget is a jewel in the rough (300+)
Re: Create Virtual Directory in IIS using VB.NET

You beat me to it, I was just this second about to post that

Woof
__________________
My .NET Tutorials:
Silverlight Enabled WebPart in WSS

My VB.NET Code Examples:
Create IIS Virtual DirectoryValidate Login Against Active DirectoryAutomatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET

My ASP.NET Code Examples:
Login To Website (Forms Authentication)Login To Website (Custom Authentication)

My VB6 Code Projects:
Multithreading In VB6Custom TooltipsMulti Language SupportItem Selector ControlAnnimated Systray IconSimple Effective Graph ControlDownload From WebLiveUpdate, download application updates from the web automaticallySystray Notification MessagesSkin A FormAPI TimerBadger Messenger, an MSN clone that uses the MSN NetworkWokawidgets VB6 Component Suite
Wokawidget is offline   Reply With Quote
Old Apr 27th, 2007, 02:27 AM   #40
h.annous
New Member
 
h.annous's Avatar
 
Join Date: Apr 07
Location: Lebanon
Posts: 5
h.annous is an unknown quantity at this point (<10)
Question Re: Create Virtual Directory in IIS using VB.NET

:-)
What is the way to get the names of all the properties?
h.annous is offline   Reply With Quote
Reply

Go Back   VBForums > VBForums CodeBank > CodeBank - ASP / ASP.NET


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:02 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.