• Twitter
  • FaceBook

Welcome to ISAserver.org

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

FPCServer DistributionStatus ?

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [ISA 2006 Misc.] >> ISA 2006 Programming >> FPCServer DistributionStatus ? Page: [1]
Message << Older Topic   Newer Topic >>
FPCServer DistributionStatus ? - 8.Dec.2010 9:02:42 AM   


Posts: 2
Joined: 8.Dec.2010
Status: offline

I'm current developing a project which communicates with ISA/TMG through the FPCLib with .net(c#)

I want to retrieve the DistributionStatus which i read about on http://msdn.microsoft.com/en-us/library/aa501971.aspx .. anyhow, to start with i cannot even see the DistributionStatus property in my project?? They only way i can retrieve an IFPCDistributionStatus2 or FPCEEDistributionStatus is through reflection.. and it looks like it worked but the LastConfigurationUpdateTime of the object is set to "31-12-1899 00:00:00" and the Status is FpcConfigurationStatus.fpcStatusError :/

FPC root = (FPC)Activator.CreateInstance((Type.GetTypeFromProgID("FPC.Root")));
typeof(FPC).InvokeMember("ConnectToConfigurationStorageServer", BindingFlags.InvokeMethod, System.Type.DefaultBinder, root, new object[] { "<isa-ip>", "<isa-username>", "<isa-domain>", "<isa-password>" });

FPCLib.FPCArray arr = null;

foreach (FPCLib.FPCArray xarr in root.Arrays)
arr = xarr;

FPCServer server = arr.Servers.Item("<isa-computer-name>");


object o = server.GetType().InvokeMember("DistributionStatus", BindingFlags.GetProperty, System.Type.DefaultBinder, server, null);
if (o != null)
IFPCDistributionStatus2 status = (IFPCDistributionStatus2)o;


Console.WriteLine(status.LastConfigurationUpdateTime.ToString()+" : "+status.Status.ToString());
catch (Exception ex)
Post #: 1

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [ISA 2006 Misc.] >> ISA 2006 Programming >> FPCServer DistributionStatus ? Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts