Permission denied for activating type when Accessing .NET Objects |
|
Contents
- SYMPTOMS
- CAUSE
- RESOLUTION
SYMPTOMS
When you try to instanciate your .NET object from Java, the code fails with a Permission denied for activating type.... - see screenshot below:
CAUSE
You do not have a corresponding entry for the .NET object in the remoting.config file, which should be loaded by the .NET server with a call to RemotingConfiguration.Configure("remoting.config") (see the Access .NET from Java Using J-Integra for .NET example).
RESOLUTION
For every .NET object to be "exported" as remoteable, there must be a corresponding entry for it in the remoting.config file. It should look like either:
- <ACTIVATED type="namespace.myclass, assemblyname"> or
- <WELLKNOWN type="namespace.myclass, assemblyname" objectUri="myclass.soap" mode="Singleton" />
For a full description of the valid XML schema that is allowed in a configuration file, please visit the Microsoft .NET Framework General Reference - Remoting Settings Schema.
Status
This is per the .NET Remoting specifications, and does not require any fixes to J-Integra for .NET.