472,958 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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
Activator.GetObject];
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:

<system.runtime.remoting>
<application>
<service>
<wellknown
mode="SingleCall"
type="[type], [assembly]"
objectUri="[uri].rem"
/>

</service>
<channels>
<channel ref="http"/>
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
</channels>
</application>
</system.runtime.remoting>

My client config looks like:

<system.runtime.remoting>
<application>
<client>
<wellknown type="[Type], [Assembly]"
url="http://localhost/remoting/[objectUri]"
/>
</client>
<channels>
<channel ref="http" port="0">
<clientProviders>
<formatter ref="binary" typeFilterLevel="Full"/>
</clientProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>

Thanks for any help that is provided!

Dec 11 '06 #1
0 5282

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tim Shih | last post by:
Hi, I'm looking for a way to remotely pass bitmaps and soundfiles via remoting. I have a class which contains a bitmap and I can easily access it remotely as long as I do not set a value for the...
3
by: Skip | last post by:
Hi, I'm new to .NET remoting and there's something I'm having real trouble with. Basically, I'd like to create a component that can act as a server and as a client (can send messages and receive...
0
by: Skip | last post by:
Hi, I get the following exception thrown when I try to run my code: "An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional...
1
by: Skip | last post by:
Hi, I get the following exception thrown when I try to run my code: "An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional...
1
by: David Krmpotic | last post by:
Hi All! I have a .NET remoting Client-Server application with Server Activated Objects only.. something is worrying me.. sometimes (rarely), I can't connect to the server although it is...
5
by: Simon Verona | last post by:
I have a pair of functions that I'm calling using remoting - called readfile and writefile. The readfile works fine when called from the client PC. The writefile method returns an error: ...
4
by: Jan | last post by:
Yesterday I got the idea to use remoting for the test interface between our Windows Xp Embedded - based device and our system test application. I started looking in the MSDN help and made the code...
1
by: =?Utf-8?B?TUJ1cnNpbGw=?= | last post by:
This works without any problems: Code Snippet string uri = "tcp://localhost:8000/CAOFactory"; cf = (CustomerInterfaces.ICAOFactory)Activator.GetObject(typeof(CustomerInterfaces.ICAOFactory),...
2
by: Jayme.Pechan | last post by:
I realize this is a complicated scenerio to explain so hopefully it will make sense. I have an object that I create an instance of on a remote server. I can call functions on this object with no...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.