Security problems with new Service Pack
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.remoting.

Post a new message to this list...

Sylvain Ross
Hi,
I'm using dotnet 1.0 and I developped a whole remoting system which was
working perfectly until a few days ago, when I installed the latest
Service Pack for dotnet 1.0 :

Here is the exception :

======================================================================================

It seems that the Service pack adds some security restrictions, and now
I got an exception when trying to invoke a remote method on a remote object:

Unhandled Exception:
System.Runtime.Serialization.SerializationException: Reques
t for the permission of type System.Runtime.Remoting.ObjRef failed. --->
System.
Security.SecurityException: Request failed.
at
System.Security.SecurityRuntime.FrameDescSetHelper(FrameSecurityDescriptor
secDesc, PermissionSet demandSet, PermissionSet& alteredDemandSet)
at
System.Runtime.Serialization.FormatterServices.nativeGetSafeUninitializedO
bject(RuntimeType type)
at
System.Runtime.Serialization.FormatterServices.GetSafeUninitializedObject(
Type type)
--- End of inner exception stack trace ---

Server stack trace:
at
System.Runtime.Serialization.FormatterServices.GetSafeUninitializedObject(
Type type)
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObject(Pa
rseRecord pr)
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRec
ord pr)
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWi
thMapTyped(BinaryObjectWithMapTyped record)
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWi
thMapTyped(BinaryHeaderEnum binaryHeaderEnum)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(He
aderHandler handler, __BinaryParser serParser, Boolean fCheck,
IMethodCallMessag
e methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
(Stream serializationStream, HeaderHandler handler, Boolean fCheck,
IMethodCallM
essage methodCallMessage)
at
System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessa
ge(String objectUri, Stream inputStream, Boolean bStrictBinding,
TypeFilterLevel
securityLevel)
at
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(
IServerChannelSinkStack sinkStack, IMessage requestMsg,
ITransportHeaders reques
tHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeaders& respon
seHeaders, Stream& responseStream)

Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req
Msg, IMessage retMsg)
at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa
ta, Int32 type)
at PowerstackCommon.IPowerstackCluster.DoYouKnowMe(IPowerstackServer s)
at PowerstackServer.PowerstackServer.ClusterCheckerSub()

======================================================================================

If anyone knows how to solve that ...

Thx in advance

Sylvain
Reply to this message...
 
    
Ken Kolda
I don't know anything about the SP for .NET 1.0, but the error you're
getting is a very familiar one. In .NET 1.1 they added a TypeFilterLevel
property to the BinaryServerFormatterSinkProvider object which you have to
set to TypeFilterLevel.Full in order to deserialize ObjRefs. Here's more
info:

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconautomaticdeserializationinnetremoting.asp

Ken

"Sylvain Ross" <Click here to reveal e-mail address> wrote in message
news:413ef2d9$0$7590$Click here to reveal e-mail address...
[Original message clipped]

==========
[Original message clipped]

==========
[Original message clipped]

Reply to this message...
 
 
System.Runtime.Remoting.Channels.BinaryServerFormatterSink
System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider
System.Runtime.Remoting.Channels.IServerChannelSinkStack
System.Runtime.Remoting.Channels.ITransportHeaders
System.Runtime.Remoting.Messaging.HeaderHandler
System.Runtime.Remoting.Messaging.IMessage
System.Runtime.Remoting.ObjRef
System.Runtime.Remoting.Proxies.RealProxy
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
System.Runtime.Serialization.Formatters.TypeFilterLevel
System.Runtime.Serialization.FormatterServices
System.Runtime.Serialization.SerializationException
System.Security.PermissionSet
System.Security.SecurityException




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com