Hi Rob,
In my test projects created by following the previous Knowledge Base
article in VS.NET 2003, if the object type being transferred to the server
has a strong name, the following error occurs:
System.Runtime.Serialization.SerializationException: Because of security
restrictions, the type ServerClassValue.ForwardMe cannot be accessed. --->
System.Security.SecurityException: Request failed.
In .NET Framework 1.1, there are some security enhancements. By default, a
strong-named assembly can be called only by other assemblies that are
granted full trust by security policy. You can use the
AllowPartiallyTrustedCallersAttribute attribute to explicitly allow the
assembly use by partially trusted code.
The remoting application works well after adding the following code in the
assembly of the object type being transferred:
[assembly: AllowPartiallyTrustedCallers]
You can refer to the following article for more information:
AllowPartiallyTrustedCallersAttribute Class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemSecurityAllowPartiallyTrustedCallersAttributeClassTopic.asp
Best regards,
Perry Deng
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.