security restrictions
From: MR (nospam)
Date: 06/01/04
- Next message: jman: "DAL on server? How does client know where it is?"
- Previous message: Alek Davis: "Re: Security - Best Encryption Tool"
- Next in thread: Sunny: "Re: security restrictions"
- Reply: Sunny: "Re: security restrictions"
- Reply: Sunny: "Re: security restrictions"
- Messages sorted by: [ date ] [ thread ]
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>
- Next message: jman: "DAL on server? How does client know where it is?"
- Previous message: Alek Davis: "Re: Security - Best Encryption Tool"
- Next in thread: Sunny: "Re: security restrictions"
- Reply: Sunny: "Re: security restrictions"
- Reply: Sunny: "Re: security restrictions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|