[Mono-bugs] [Bug 664818] New: WebPermission is not serializable because WebPermissionInfo ist not serializable

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jan 16 12:32:04 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=664818

https://bugzilla.novell.com/show_bug.cgi?id=664818#c0


           Summary: WebPermission is not serializable because
                    WebPermissionInfo ist not serializable
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System.Security
        AssignedTo: spouliot at novell.com
        ReportedBy: novell at depon.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.13)
Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13

Can not create an appdomain with WebPermission in the PermissionSet because I
got the exception 'Type System.Net.WebPermissionInfo is not marked as
Serializable.' in method AppDomain.CreateDomain. 

It shall be checked, if WebPermissionInfo shall get a serializable attribute. 



Reproducible: Always

Steps to Reproduce:
1.Create PermissionSet
2.Add WebPersmission
3.Create AppDomain

Actual Results:  
Receive Exception

Expected Results:  
No exception

System.Runtime.Serialization.SerializationException: Type
System.Net.WebPermissionInfo is not marked as Serializable.
  at
System.Runtime.Serialization.Formatters.Binary.BinaryCommon.CheckSerializable
(System.Type type, ISurrogateSelector selector, StreamingContext context)
[0x00000] in <filename unknown>:0 
  at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.GetObjectData
(System.Object obj,
System.Runtime.Serialization.Formatters.Binary.TypeMetadata& metadata,
System.Object& data) [0x00000] in <filename unknown>:0 
  at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObject
(System.IO.BinaryWriter writer, Int64 id, System.Object obj) [0x00000] in
<filename unknown>:0 
  at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectInstance
(System.IO.BinaryWriter writer, System.Object obj, Boolean isValueObject)
[0x00000] in <filename unknown>:0 
  at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteQueuedObjects
(System.IO.BinaryWriter writer) [0x00000] in <filename unknown>:0 
  at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectGraph
(System.IO.BinaryWriter writer, System.Object obj,
System.Runtime.Remoting.Messaging.Header[] headers) [0x00000] in <filename
unknown>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize
(System.IO.Stream serializationStream, System.Object graph,
System.Runtime.Remoting.Messaging.Header[] headers) [0x00000] in <filename
unknown>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize
(System.IO.Stream serializationStream, System.Object graph) [0x00000] in
<filename unknown>:0 
  at System.AppDomainSetup.SerializeNonPrimitives () [0x00000] in <filename
unknown>:0 
  at System.AppDomain.CreateDomain (System.String friendlyName,
System.Security.Policy.Evidence securityInfo, System.AppDomainSetup info)
[0x00000] in <filename unknown>:0 
  at System.AppDomain.CreateDomain (System.String friendlyName,
System.Security.Policy.Evidence securityInfo, System.AppDomainSetup info,
System.Security.PermissionSet grantSet, System.Security.Policy.StrongName[]
fullTrustAssemblies) [0x00000] in <filename unknown>:0 
  at BurnSystems.MetaHosting.Instance.InstanceStarter.Start () [0x00000] in
<filename unknown>:0 
  at InstanceRunner.Program.Main (System.String[] args) [0x00000] in <filename
unknown>:0

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list