473,545 Members | 2,032 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.S erializationExc eption: Because of security
restrictions, the type ExceptionDispat ch.MessageObjec tSerialise cannot be
accessed.
---> System.Security .SecurityExcept ion: Request failed.
at
System.Security .SecurityRuntim e.FrameDescSetH elper(FrameSecu rityDescriptor
secDesc, PermissionSet demandSet, PermissionSet& alteredDemandSe t)
at
System.Runtime. Serialization.F ormatterService s.nativeGetSafe UninitializedOb j
ect(RuntimeType type)
at
System.Runtime. Serialization.F ormatterService s.GetSafeUninit ializedObject(T y
pe type)
--- End of inner exception stack trace ---

Server stack trace:
at
System.Runtime. Serialization.F ormatterService s.GetSafeUninit ializedObject(T y
pe type)
at
System.Runtime. Serialization.F ormatters.Soap. ObjectReader.Pa rseObject(Parse R
ecord pr)
at
System.Runtime. Serialization.F ormatters.Soap. ObjectReader.Pa rse(ParseRecord
pr)
at
System.Runtime. Serialization.F ormatters.Soap. SoapHandler.Sta rtChildren()
at System.Runtime. Serialization.F ormatters.Soap. SoapParser.Pars eXml()
at System.Runtime. Serialization.F ormatters.Soap. SoapParser.Run( )
at
System.Runtime. Serialization.F ormatters.Soap. ObjectReader.De serialize(Heade r
Handler handler, ISerParser serParser)
at
System.Runtime. Serialization.F ormatters.Soap. SoapFormatter.D eserialize(Stre a
m serializationSt ream, HeaderHandler handler)
at
System.Runtime. Remoting.Channe ls.CoreChannel. DeserializeSoap RequestMessage( S
tream inputStream, Header[] h, Boolean bStrictBinding, TypeFilterLevel
securityLevel)
at
System.Runtime. Remoting.Channe ls.SoapServerFo rmatterSink.Pro cessMessage(ISe r
verChannelSinkS tack sinkStack, IMessage requestMsg, ITransportHeade rs
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeade rs& 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 3049
DC
Solved!
Config setting

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

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

System.Runtime. Serialization.S erializationExc eption: Because of security
restrictions, the type ExceptionDispat ch.MessageObjec tSerialise cannot be
accessed.
---> System.Security .SecurityExcept ion: Request failed.
at
System.Security .SecurityRuntim e.FrameDescSetH elper(FrameSecu rityDescriptor
secDesc, PermissionSet demandSet, PermissionSet& alteredDemandSe t)
at
System.Runtime. Serialization.F ormatterService s.nativeGetSafe UninitializedOb j ect(RuntimeType type)
at
System.Runtime. Serialization.F ormatterService s.GetSafeUninit ializedObject(T y pe type)
--- End of inner exception stack trace ---

Server stack trace:
at
System.Runtime. Serialization.F ormatterService s.GetSafeUninit ializedObject(T y pe type)
at
System.Runtime. Serialization.F ormatters.Soap. ObjectReader.Pa rseObject(Parse R ecord pr)
at
System.Runtime. Serialization.F ormatters.Soap. ObjectReader.Pa rse(ParseRecord pr)
at
System.Runtime. Serialization.F ormatters.Soap. SoapHandler.Sta rtChildren()
at System.Runtime. Serialization.F ormatters.Soap. SoapParser.Pars eXml()
at System.Runtime. Serialization.F ormatters.Soap. SoapParser.Run( )
at
System.Runtime. Serialization.F ormatters.Soap. ObjectReader.De serialize(Heade r Handler handler, ISerParser serParser)
at
System.Runtime. Serialization.F ormatters.Soap. SoapFormatter.D eserialize(Stre a m serializationSt ream, HeaderHandler handler)
at
System.Runtime. Remoting.Channe ls.CoreChannel. DeserializeSoap RequestMessage( S tream inputStream, Header[] h, Boolean bStrictBinding, TypeFilterLevel
securityLevel)
at
System.Runtime. Remoting.Channe ls.SoapServerFo rmatterSink.Pro cessMessage(ISe r verChannelSinkS tack sinkStack, IMessage requestMsg, ITransportHeade rs
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeade rs& 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******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

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

System.Runtime. Serialization.S erializationExc eption: Because of security
restrictions, the type ExceptionDispat ch.MessageObjec tSerialise cannot be
accessed.
---> System.Security .SecurityExcept ion: Request failed.
at
System.Security .SecurityRuntim e.FrameDescSetH elper(FrameSecu rityDescriptor
secDesc, PermissionSet demandSet, PermissionSet& alteredDemandSe t)
at
System.Runtime. Serialization.F ormatterService s.nativeGetSafe UninitializedOb j ect(RuntimeType type)
at
System.Runtime. Serialization.F ormatterService s.GetSafeUninit ializedObject(T y pe type)
--- End of inner exception stack trace ---

Server stack trace:
at
System.Runtime. Serialization.F ormatterService s.GetSafeUninit ializedObject(T y pe type)
at
System.Runtime. Serialization.F ormatters.Soap. ObjectReader.Pa rseObject(Parse R ecord pr)
at
System.Runtime. Serialization.F ormatters.Soap. ObjectReader.Pa rse(ParseRecord pr)
at
System.Runtime. Serialization.F ormatters.Soap. SoapHandler.Sta rtChildren()
at System.Runtime. Serialization.F ormatters.Soap. SoapParser.Pars eXml()
at System.Runtime. Serialization.F ormatters.Soap. SoapParser.Run( )
at
System.Runtime. Serialization.F ormatters.Soap. ObjectReader.De serialize(Heade r Handler handler, ISerParser serParser)
at
System.Runtime. Serialization.F ormatters.Soap. SoapFormatter.D eserialize(Stre a m serializationSt ream, HeaderHandler handler)
at
System.Runtime. Remoting.Channe ls.CoreChannel. DeserializeSoap RequestMessage( S tream inputStream, Header[] h, Boolean bStrictBinding, TypeFilterLevel
securityLevel)
at
System.Runtime. Remoting.Channe ls.SoapServerFo rmatterSink.Pro cessMessage(ISe r verChannelSinkS tack sinkStack, IMessage requestMsg, ITransportHeade rs
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeade rs& 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
1893
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 Remoting and possible others. Keywords: VSS Remote Access, VSS Web Access, VSS Internet Access,
0
1091
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 Remoting and possible others. Keywords: VSS Remote Access, VSS Web Access, VSS Internet Access,
0
3276
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 comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others.
8
1739
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 package) to .NET. Our clients have been asking for lot of new stuff namely being able to send patient information to devices, being able to fix...
8
1131
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 package) to .NET. Our clients have been asking for lot of new stuff namely being able to send patient information to devices, being able to fix...
0
7409
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7664
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7437
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7771
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5982
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4958
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1900
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
720
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.