We are currently developing a webbased application in ASP.NET 4.5 ( MVC
) that connects to DRA but we are running into some problems. I will
paste the source first:


Code:
--------------------

using System;
using System.IO;
using System.Security.AccessControl;
using System.Security.Principal;
using MCSWEBDCOMLib;
using EASERVERLib;
using DraWCUtility;
using NETIQDRAVARSETLib;

namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
ADUtil adUtil = new ADUtil();
object serverName = "pri-dra";
object serverInfo = new object();
object allClientPowers = new object();
object errors = new object();

bool result = adUtil.GetServerInfoSafe(serverName, ref serverInfo, ref errors);
if (result)
{
adUtil.GetClientPowersFromServerInfoSafe(serverInf o, true, ref allClientPowers, ref errors);
}
Console.WriteLine("done");
}
}
}

--------------------


This works, compiles and even returns a boolean ( true ). The problem
lies within the content of serverInfo and allClientPowers. Because the
COM dll's that we refrenced from DRA we dont know what types are
returned. Because every variable is passed on as a ref object.

Does anyone even remotely tried something like we are doing right now?

This


--
dwibelastingdienst
------------------------------------------------------------------------
dwibelastingdienst's Profile: https://forums.netiq.com/member.php?userid=4469
View this thread: https://forums.netiq.com/showthread.php?t=49235