Home : J-Integra for .NET : ERRMSG : Permission denied for activating type when Accessing .NET Objects
Q49667 - ERRMSG: Permission denied for activating type when Accessing .NET Objects

Permission denied for activating type when Accessing .NET Objects

 

Contents

  1. SYMPTOMS
  2. CAUSE
  3. 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.

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 6/23/2006.
Last Modified on 7/10/2006.
Last Modified by No Author Name Available!.
Article has been viewed 9101 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article