security restrictions

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: MR (nospam)
Date: 06/01/04


Date: Tue, 1 Jun 2004 22:53:09 +0300

When trying to make a call to a remote method object i get the following
error:
Because of security restrictions, the type TestLog.MessageSeverity cannot be
accessed.

i read that this has to do with deserialization with .NET. (see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconautomaticdeserializationinnetremoting.asp)

however, i am not clear on what exactly is the problem or how to correct it.
how can i get past this problem?
thanks

MessageSeverity is a public enum that is defined in the TestLog namesapce.
(TestLog is the remoted object, MessageLog is the class name)

The client calls the object this way:
obj =
(MessageLog)Activator.GetObject(typeof(MessageLog),"tcp://computer:15000/Log
Test");
obj.LogMessage("test", MessageSeverity.Status, "Yahoo it worked!");

The app.config for the host is:
<system.runtime.remoting>
    <application>
        <service>
            <wellknown mode="Singleton" type="TestLog.MessageLog, TestLog"
objectUri="LogTest" />
        </service>
        <channels>
            <channel ref="tcp" port="15000" />
        </channels>
    </application>
    <debug loadTypes="true" />
    <customErrors mode="off"/>
</system.runtime.remoting>



Relevant Pages

  • security restrictions
    ... When trying to make a call to a remote method object i get the following ... Because of security restrictions, ... MessageSeverity is a public enum that is defined in the TestLog namesapce. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: security restrictions
    ... biconix dot com> says... ... > When trying to make a call to a remote method object i get the following ... > MessageSeverity is a public enum that is defined in the TestLog namesapce. ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: security restrictions
    ... biconix dot com> says... ... > When trying to make a call to a remote method object i get the following ... > MessageSeverity is a public enum that is defined in the TestLog namesapce. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: security restrictions
    ... biconix dot com> says... ... > When trying to make a call to a remote method object i get the following ... > MessageSeverity is a public enum that is defined in the TestLog namesapce. ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: security restrictions
    ... biconix dot com> says... ... > When trying to make a call to a remote method object i get the following ... > MessageSeverity is a public enum that is defined in the TestLog namesapce. ...
    (microsoft.public.dotnet.framework.remoting)