P
Probashi
Hi,
I have .net object that runs a Microsoft Access application and I want
to expose this object through remoting. Here is my sample code:
Server Object :
public class Server : MarshalByRefObject
{
private Access.Application aa;
public void execute()
{
aa = new Access.Application();
aa.OpenCurrentDatabase (@"C:\tmp\tmp.mdb",false);
//do something else
}
Access.dll is the CRW for Access.Application (MS Access OLE Automation
object)
Client:
public class Client
{
public static int Main(string [] args)
{
Server obj = (Server)
Activator.GetObject(
typeof(Server),
"tcp://localhost:8086/ServerURI");
if (obj == null)
System.Console.WriteLine("Could not locate server");
else
{
obj.execute();
}
return 0;
}
}
}
I got File or Assembly not found exception, it is looking for my
Access.dll, which is only installed on the server and I do not want to
install this on the client. How can I solve this problem.
Thanks
I have .net object that runs a Microsoft Access application and I want
to expose this object through remoting. Here is my sample code:
Server Object :
public class Server : MarshalByRefObject
{
private Access.Application aa;
public void execute()
{
aa = new Access.Application();
aa.OpenCurrentDatabase (@"C:\tmp\tmp.mdb",false);
//do something else
}
Access.dll is the CRW for Access.Application (MS Access OLE Automation
object)
Client:
public class Client
{
public static int Main(string [] args)
{
Server obj = (Server)
Activator.GetObject(
typeof(Server),
"tcp://localhost:8086/ServerURI");
if (obj == null)
System.Console.WriteLine("Could not locate server");
else
{
obj.execute();
}
return 0;
}
}
}
I got File or Assembly not found exception, it is looking for my
Access.dll, which is only installed on the server and I do not want to
install this on the client. How can I solve this problem.
Thanks