Welcome to ISAserver.org
Forums |
Register |
Login |
My Profile |
Inbox |
RSS
|
My Subscription |
My Forums |
Address Book |
Member List |
Search |
FAQ |
Ticket List |
Log Out
Missing ConnectToConfigurationStorageServer
|
Users viewing this topic:
none
|
Logged in as: Guest
|
Login | |
|
Missing ConnectToConfigurationStorageServer - 23.Dec.2007 2:24:14 PM
|
|
|
david_reindorf
Posts: 6
Joined: 23.Dec.2007
Status: offline
|
Hi, I'm working with "Windows Server 2003" and the 180 day trial of "ISA Server 2006 Enterprise". Until now there was no "Configuration Server". In my C# program I have referenced msfpccom.dll and used GetContainingArray() on an instance of the FPC Class. Now there is an "Configuration Server" in the system and that works no longer. I have read some tutorials and found ConnectToConfigurationStorageServer. But there is no such method in this class. Is that a limitation of the trial edition? How can I connect to a configuration storage sever in the trial? Or do I have to get the full version?
|
|
|
|
RE: Missing ConnectToConfigurationStorageServer - 18.Jan.2008 5:27:06 PM
|
|
|
mlanden
Posts: 4
Joined: 18.Jan.2008
Status: offline
|
I too am having the same problem, but I have a licensed version so I don't think it's a trial version issue. The samples in the SDK show a method at the root object named ConnectToConfigurationStorageServer, although there is no such method. Any luck?
|
|
|
|
RE: Missing ConnectToConfigurationStorageServer - 19.Jan.2008 5:04:02 AM
|
|
|
david_reindorf
Posts: 6
Joined: 23.Dec.2007
Status: offline
|
At the installation one has to choose the type of the ISA Server. Depending on the installation option there is a different dll I guess. With fpc.Array.Item(1) // Index starts with 1, to input the name of the server is also possible I could connect to the Server. My problem was actually that ApplyChanges did not work. It always raised an error with an error number. Finally I have found the description of the error number. Something like "ApplyChanges is no longer used. etc" Now an IsaRule has a Save() method and I just use that instead. Hope that helps.
|
|
|
|
RE: Missing ConnectToConfigurationStorageServer - 25.Jan.2008 6:44:30 PM
|
|
|
mlanden
Posts: 4
Joined: 18.Jan.2008
Status: offline
|
Yes, it does, thank! So the code I've written works on ISA 2006, but when I try to connect remotely to an ISA 2004 instance, the code blows up with some vague error - FPC.Root.1: An operation error occurred in vbscript or COMExecption HRESULT: 0x80072020 in C#. If I run the code locally on the ISA 2004 server, it works just fine. I'd imagine it's the same issue you mentioned earlier - different dll. I was under the impression they were compatible. Have you had an experience with ISA 2004?
|
|
|
|
RE: Missing ConnectToConfigurationStorageServer - 26.Jan.2008 8:14:55 AM
|
|
|
david_reindorf
Posts: 6
Joined: 23.Dec.2007
Status: offline
|
How do you try to connect to that server? My method only works local. And on which code line occurs the error?
|
|
|
|
RE: Missing ConnectToConfigurationStorageServer - 27.Jan.2008 5:28:37 PM
|
|
|
mlanden
Posts: 4
Joined: 18.Jan.2008
Status: offline
|
using System; using System.Collections.Generic; using System.Text; using Microsoft.Isa.Interop; namespace ISATest { class Program { static void Main(string[] args) { int buffersize = 10000; FPCClass iFPC = new FPCClass(); //****ERROR HERE - when trying to connect iFPC.ConnectToConfigurationStorageServer("myisaserver", "", "", "", "","",""); Console.WriteLine("Number of Arrays found: " + iFPC.Arrays.Count); for (int i = 1; i <= iFPC.Arrays.Count; i ++) { if (iFPC.Arrays.Item(i).Name.ToUpper().Contains("somestring")) { Console.WriteLine(iFPC.Arrays.Item(i).Name); FPCArray iArray = iFPC.Arrays.Item(i); FPCSessionsMonitor iSessionMonitor = iArray.SessionsMonitors.SessionsMonitorFirewall; FPCServer iServer = iArray.Servers.Item(i); FPCFilterExpressions filter = new FPCFilterExpressions(); filter.FilterType = FpcFilterType.fpcSessionsFilter; filter.AddStringFilter(FpcFilterCriteria.fpcFilterByClientUserName, FpcFilterCondition.fpcContains, "someusername"); iSessionMonitor.ExecuteQuery(filter, buffersize); for (int j = 1; j <= buffersize; j++) { FPCSessionsMonitorEntry session = null; try { session = iSessionMonitor.Item(j); iServer.VPNDisconnect(session.ClientIP); } catch { } } iSessionMonitor.EndQuery(); } } iFPC.DisconnectFromConfigurationStorageServer(); Console.ReadLine(); } } }
|
|
|
|
RE: Missing ConnectToConfigurationStorageServer - 28.Jan.2008 12:23:44 PM
|
|
|
david_reindorf
Posts: 6
Joined: 23.Dec.2007
Status: offline
|
The exact error would be helpful. And as I said I am just working locally.
|
|
|
|
RE: Missing ConnectToConfigurationStorageServer - 28.Jan.2008 5:31:04 PM
|
|
|
mlanden
Posts: 4
Joined: 18.Jan.2008
Status: offline
|
Oh sorry, the error was in previous post. VBScript: FPC.Root.1: An operation error occurred in vbscript C#: COMExecption HRESULT: 0x80072020 Thanks!
|
|
|
|
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 |
|