Hi All,
I've been investigating a while and i figured out something pretty
weird:
I downloaded a source code that allows me to do what I want. However,
it's written in asp.net v1.0 and I needed in v2.0. So, I converted it
to that version.
Well, you all can imagine it must have worked, but you're wrong: it
didn't (i'm pretty sure is that because i tried: copying the
procedures and functions I needed to a asp.net v2.0 project. Then,
after the last try didn't work, I tried converting the entire solution
to v2.0 and it did it successfully).
I don't know why, but the v1.0 application is able to create the entry
at the metabase under my virtual directory(IIS://localhost/W3SVC/<web
site id>/root/<new dir's name>) but when I try to do the same using
the v2.0 app i get the following error:
System.Runtime.InteropServices.COMException (0x80070003): The system
cannot find the path specified.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean
throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.PropertyValueCollection.PopulateList()
at
System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry
entry, String propertyName)
at System.DirectoryServices.PropertyCollection.get_Item(String
propertyName)
at Example.Form1.setDirectory_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
Do you have any clue on this?
Thanks,
Brian