Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Invoke("Recycle") on VISTA Machine fails, whereas it works on 2003

11 views
Skip to first unread message

Richard C

unread,
Aug 12, 2009, 12:40:02 PM8/12/09
to
I am writing a IIS6 Application Pool Recycle tool in VB.NET and I have it
fully working on a Windows 2003 Server or a Windows XP box.

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

Joe Kaplan

unread,
Aug 12, 2009, 3:47:15 PM8/12/09
to
Do you have the ADSI extensions for IIS 7 installed on your Vista box? I
believe those are optional for IIS 7 and may not be there by default.
Essentially, you can't use the ADSI provider or any of the core metabase
APIs (ABO) without those bits.

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...

Richard C

unread,
Aug 12, 2009, 4:16:02 PM8/12/09
to
Hi Joe,

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

Joe Kaplan

unread,
Aug 14, 2009, 4:48:25 PM8/14/09
to
No idea, especially if it is just this method and only in the remote case.

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...

Brett

unread,
Sep 3, 2009, 1:12:02 PM9/3/09
to
Did you ever find a resolution for this? I'm getting the same results in a
very similiar scenario and your post seems to be the only information I can
find.
0 new messages