It connects remotely using directory services using authentication (the
servers it is calling are in a workgroup) and I am able to recycle
application pools with no issue.
I put the same compiled code on a Vista box, and I get this:
System.Runtime.InteropServices.COMException was unhandled
ErrorCode=-2147352570
Message="Unknown name. (Exception from HRESULT: 0x80020006
(DISP_E_UNKNOWNNAME))"
Source="System.DirectoryServices"
StackTrace:
at System.DirectoryServices.DirectoryEntry.Invoke(String methodName,
Object[] args)
at ConsoleApplication1.Program.EnumerateProperties(String
metabasePath) in D:\VS_Projects\IISList\IISList\Module1.vb:line 32
at ConsoleApplication1.Program.Main(String[] args) in
D:\VS_Projects\IISList\IISList\Module1.vb:line 17
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
I know what it's telling me.... its saying that the method does not
exist...but it does - it works fine on 2003 and XP. The code works, but not
in Vista.
Anybody seen this before? Is there something special I need to do for Vista?
--
-
Richard Clafton - W5/G7EIX
Otherwise I don't know.
If you want to program against IIS 7, there is a new API for doing
management of it that you might consider using instead.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
"Richard C" <Rich...@discussions.microsoft.com> wrote in message
news:D299ED09-9AAC-4363...@microsoft.com...
Yes, I have them all installed. The issue is not with IIS7 though, I can
control fully the IIS7 instance on the Vista box - no problems. The issue is
with remote method calling of stop, start or recyling on the IIS6 instance.
Strange. Very strange.
--
-
Richard Clafton - W5/G7EIX
I will say that I don't see many people with actual IIS programmatic admin
experience actually monitoring any of the MS newsgroups, so I'd be surprised
if you can find a good answer here. You might try elsewhere. I know a bit
about the ADSI stuff in general and a lot about directory stuff/AD, but very
little about IIS. I was just trying to help because I figured no one would
answer anyway (which was true). :)
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
"Richard C" <Rich...@discussions.microsoft.com> wrote in message
news:17F24EA5-B81C-4AE9...@microsoft.com...