|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
IIS interaction from a VB.Net (not ASP.net) application
I'm am looking for any one who can help me figure out how to interact with IIS from a VB.NET application. I keep getting this error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in system.directoryservices.dll Additional information: Unknown error (0x80005000) Here is the code I am trying to run. Objective being, aquire a list of virtual directorys (or anything) from the website, "Default Web Site" within IIS. Dim jds1 AsNew DirectoryEntry jds1 = New DirectoryEntry("IIS://localhost/") Dim jds2 As DirectoryEntries = jds1.Children jds2.Find("PW") 'Note: "PW" is supposed to be a virtual directory directly under "Default Web Site" within IIS. I also get the error listed above when adding a virtual Directory. Dim jds As DirectoryEntry jds1 = New DirectoryEntry("IIS://localhost/") jds = jds1.Children.Add("MyNewFolder", "IIsWebVirtualDir") '<-- Error 'Never reach the next two lines. jds.Path = "C:\testweb\" jds.CommitChanges() Now, I'm on a Windows 2000 Server. Running IIS 5.0. Basically, all the examples on the web or in any of my books, don't seem to work when I try to access the IIS server. I literally have no other code setup to access IIS. What am I missing? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > IIS interaction from a VB.Net (not ASP.net) application |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|