473,508 Members | 2,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Remoting

DC
Hi,

I am trying to serialise an object across remoting, and I get the following
message:

System.Runtime.Serialization.SerializationExceptio n: Because of security
restrictions, the type ExceptionDispatch.MessageObjectSerialise cannot be
accessed.
---> System.Security.SecurityException: Request failed.
at
System.Security.SecurityRuntime.FrameDescSetHelper (FrameSecurityDescriptor
secDesc, PermissionSet demandSet, PermissionSet& alteredDemandSet)
at
System.Runtime.Serialization.FormatterServices.nat iveGetSafeUninitializedObj
ect(RuntimeType type)
at
System.Runtime.Serialization.FormatterServices.Get SafeUninitializedObject(Ty
pe type)
--- End of inner exception stack trace ---

Server stack trace:
at
System.Runtime.Serialization.FormatterServices.Get SafeUninitializedObject(Ty
pe type)
at
System.Runtime.Serialization.Formatters.Soap.Objec tReader.ParseObject(ParseR
ecord pr)
at
System.Runtime.Serialization.Formatters.Soap.Objec tReader.Parse(ParseRecord
pr)
at
System.Runtime.Serialization.Formatters.Soap.SoapH andler.StartChildren()
at System.Runtime.Serialization.Formatters.Soap.SoapP arser.ParseXml()
at System.Runtime.Serialization.Formatters.Soap.SoapP arser.Run()
at
System.Runtime.Serialization.Formatters.Soap.Objec tReader.Deserialize(Header
Handler handler, ISerParser serParser)
at
System.Runtime.Serialization.Formatters.Soap.SoapF ormatter.Deserialize(Strea
m serializationStream, HeaderHandler handler)
at
System.Runtime.Remoting.Channels.CoreChannel.Deser ializeSoapRequestMessage(S
tream inputStream, Header[] h, Boolean bStrictBinding, TypeFilterLevel
securityLevel)
at
System.Runtime.Remoting.Channels.SoapServerFormatt erSink.ProcessMessage(ISer
verChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeaders& responseHeaders, Stream& responseStream)
The remoting host runs on my machine, as does the client.
I am using HTTP on localhost for remoting.

I am sure there is a simple security fix, but I don't know what it is.

Any help gratefully accepted.

Thanks.
DC


Nov 21 '05 #1
2 3038
DC
Solved!
Config setting

"DC" <an**@anonymous.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
Hi,

I am trying to serialise an object across remoting, and I get the following message:

System.Runtime.Serialization.SerializationExceptio n: Because of security
restrictions, the type ExceptionDispatch.MessageObjectSerialise cannot be
accessed.
---> System.Security.SecurityException: Request failed.
at
System.Security.SecurityRuntime.FrameDescSetHelper (FrameSecurityDescriptor
secDesc, PermissionSet demandSet, PermissionSet& alteredDemandSet)
at
System.Runtime.Serialization.FormatterServices.nat iveGetSafeUninitializedObj ect(RuntimeType type)
at
System.Runtime.Serialization.FormatterServices.Get SafeUninitializedObject(Ty pe type)
--- End of inner exception stack trace ---

Server stack trace:
at
System.Runtime.Serialization.FormatterServices.Get SafeUninitializedObject(Ty pe type)
at
System.Runtime.Serialization.Formatters.Soap.Objec tReader.ParseObject(ParseR ecord pr)
at
System.Runtime.Serialization.Formatters.Soap.Objec tReader.Parse(ParseRecord pr)
at
System.Runtime.Serialization.Formatters.Soap.SoapH andler.StartChildren()
at System.Runtime.Serialization.Formatters.Soap.SoapP arser.ParseXml()
at System.Runtime.Serialization.Formatters.Soap.SoapP arser.Run()
at
System.Runtime.Serialization.Formatters.Soap.Objec tReader.Deserialize(Header Handler handler, ISerParser serParser)
at
System.Runtime.Serialization.Formatters.Soap.SoapF ormatter.Deserialize(Strea m serializationStream, HeaderHandler handler)
at
System.Runtime.Remoting.Channels.CoreChannel.Deser ializeSoapRequestMessage(S tream inputStream, Header[] h, Boolean bStrictBinding, TypeFilterLevel
securityLevel)
at
System.Runtime.Remoting.Channels.SoapServerFormatt erSink.ProcessMessage(ISer verChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeaders& responseHeaders, Stream& responseStream)
The remoting host runs on my machine, as does the client.
I am using HTTP on localhost for remoting.

I am sure there is a simple security fix, but I don't know what it is.

Any help gratefully accepted.

Thanks.
DC

Nov 21 '05 #2
DC
Solved!
Config setting

"DC" <an**@anonymous.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
Hi,

I am trying to serialise an object across remoting, and I get the following message:

System.Runtime.Serialization.SerializationExceptio n: Because of security
restrictions, the type ExceptionDispatch.MessageObjectSerialise cannot be
accessed.
---> System.Security.SecurityException: Request failed.
at
System.Security.SecurityRuntime.FrameDescSetHelper (FrameSecurityDescriptor
secDesc, PermissionSet demandSet, PermissionSet& alteredDemandSet)
at
System.Runtime.Serialization.FormatterServices.nat iveGetSafeUninitializedObj ect(RuntimeType type)
at
System.Runtime.Serialization.FormatterServices.Get SafeUninitializedObject(Ty pe type)
--- End of inner exception stack trace ---

Server stack trace:
at
System.Runtime.Serialization.FormatterServices.Get SafeUninitializedObject(Ty pe type)
at
System.Runtime.Serialization.Formatters.Soap.Objec tReader.ParseObject(ParseR ecord pr)
at
System.Runtime.Serialization.Formatters.Soap.Objec tReader.Parse(ParseRecord pr)
at
System.Runtime.Serialization.Formatters.Soap.SoapH andler.StartChildren()
at System.Runtime.Serialization.Formatters.Soap.SoapP arser.ParseXml()
at System.Runtime.Serialization.Formatters.Soap.SoapP arser.Run()
at
System.Runtime.Serialization.Formatters.Soap.Objec tReader.Deserialize(Header Handler handler, ISerParser serParser)
at
System.Runtime.Serialization.Formatters.Soap.SoapF ormatter.Deserialize(Strea m serializationStream, HeaderHandler handler)
at
System.Runtime.Remoting.Channels.CoreChannel.Deser ializeSoapRequestMessage(S tream inputStream, Header[] h, Boolean bStrictBinding, TypeFilterLevel
securityLevel)
at
System.Runtime.Remoting.Channels.SoapServerFormatt erSink.ProcessMessage(ISer verChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeaders& responseHeaders, Stream& responseStream)
The remoting host runs on my machine, as does the client.
I am using HTTP on localhost for remoting.

I am sure there is a simple security fix, but I don't know what it is.

Any help gratefully accepted.

Thanks.
DC

Nov 21 '05 #3

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

Similar topics

0
1884
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
0
1087
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
0
3271
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
8
1729
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged...
8
1127
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.