Hi,
I am just starting to experiment with remoting. I have a DLL with a class that
inherits from MarshalByRefObject in the bin directory of a virtual directory. I then
try to create an instance the following way:
dim attributes(0) as Object
attributes(0) = new urlattribute("http://ComputerName:80/RemotingTest")
dim s =
Activator.createinstance("ClassLibrary6","ClassLibrary6.ServiceClass",attributes)
When I do this, I get a:
Permission denied for activating type ClassLibrary6.ServiceClass, ClassLibrary6,
Version=1.0.837.19591, Culture=neutral, PublicKeyToken=null
error. What security settings need to happen in order to create the object? Is there a
different/better/correct way to create an instance of the remote object?
Also, as a side note, I have a more general question. I need to be able to have work
done remotely on COM+ objects. I have been looking into various ways to do this using
http. The first is web services as a wrapper around the COM+ objects on the remote
machine, it's simple to implement, but the performance is rather poor. Another seems
to be the SoapVRoot attribute, but that isn't completely functional on XP, and when it
is, it still means only 10 simultaneous users, which is unacceptable.
So I am now trying to use a remoting (MarshaByRefObject) as a wrapper around the COM+
object, hoping the performance will be better.
Am I on the right track? Anyone have any ideas about what the best solution for
something like this is?
Thanks,
Marina
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.