471,082 Members | 908 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,082 software developers and data experts.

Remoting...Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed.

I've read several posts out there that state that setting
typeFilterLevel="Full" on the client and/or server will correct this
issue, however I'm still unable to get around it. I can successfully
create the object, and set properties that have primitive types, but
when I go to set a property that is an instance of another remote
object, the above error is thrown. Is there something special I need to
do in order to be able to set properties to business object types? I'm
using .Net 2.0, hosted in IIS.

Here's a sample of what I'm trying to do:

ITemplate template = (ITemplate)[Create proxy method using
IGoal goal = (IGoal)[Create proxy method using Activator.GetObject];

template.NumOfDays = 3; //works fine typeof = byte
template.NumOfWeeks = 2; //works fine typeof = byte
template.Goal = goal; //blows up with error

My server config files looks similar to the following:

type="[type], [assembly]"

<channel ref="http"/>
<formatter ref="binary" typeFilterLevel="Full"/>

My client config looks like:

<wellknown type="[Type], [Assembly]"
<channel ref="http" port="0">
<formatter ref="binary" typeFilterLevel="Full"/>

Thanks for any help that is provided!

Dec 11 '06 #1
0 5181

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Tim Shih | last post: by
3 posts views Thread by Skip | last post: by
1 post views Thread by Skip | last post: by
1 post views Thread by David Krmpotic | last post: by
5 posts views Thread by Simon Verona | last post: by
1 post views Thread by =?Utf-8?B?TUJ1cnNpbGw=?= | last post: by
2 posts views Thread by Jayme.Pechan | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.