Remoting from a control hosted in IE
From: mfeingold (mfeingold_at_discussions.microsoft.com)
Date: 10/21/04
- Next message: Rob Teixeira: "Re: ICryptoTransform.TransformFinalBlock behavior (bug?)"
- Previous message: David Gardner: "Where does UseMachineKeyStore live exactly?"
- Next in thread: Nicole Calinoiu: "Re: Remoting from a control hosted in IE"
- Reply: Nicole Calinoiu: "Re: Remoting from a control hosted in IE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 20 Oct 2004 20:23:05 -0700
I have a control which connects to an object on a server. This object has an
event, and client (the control) subscribes to this event. So something
happens on the server, it fires the event - the control is notified.
All this works just fine when the controll is hosted in a windows
application, but I have to host it in IE.
To make it work I asserted any permission I can think of (as a matter of
fact I asserted unrestricted for now) but it got me only so far. The control
creates the remoted object and it can subscribe to an event, but when the
server attempts to fire the event, it blows (see the text of the message
below in this post)
It looks like I still need to assert necessary permissions somewhere else,
but what permissions and where do I assert them - I have no clue. Any idea?
The text of the exception:
An unhandled exception of type 'System.Runtime.Remoting.RemotingException'
occurred in mscorlib.dll
Additional information: An error occurred while processing the request on
the server: System.Security.SecurityException: Request for the permission of
type System.Security.Permissions.SecurityPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
at System.Security.PermissionListSet.CheckDemand(CodeAccessPermission
demand, PermissionToken permToken)
at System.Security.CodeAccessSecurityEngine.Check(PermissionToken
permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32
checkFrames, Int32 unrestrictedOverride)
at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission
cap, StackCrawlMark& stackMark, PermissionType permType)
at System.Security.CodeAccessPermission.DemandInternal(PermissionType
permissionType)
at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object
graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
at
System.Runtime.Remoting.Channels.CoreChannel.SerializeBinaryMessage(IMessage
msg, Boolean includeVersions)
at
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream
requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders,
Stream& responseStream)
at
System.Runtime.Remoting.Channels.Tcp.TcpServerTransportSink.ServiceRequest(Object state)
at System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()
- Next message: Rob Teixeira: "Re: ICryptoTransform.TransformFinalBlock behavior (bug?)"
- Previous message: David Gardner: "Where does UseMachineKeyStore live exactly?"
- Next in thread: Nicole Calinoiu: "Re: Remoting from a control hosted in IE"
- Reply: Nicole Calinoiu: "Re: Remoting from a control hosted in IE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|