locked
Portable Class Libraries and AppDomains RRS feed

  • Question

  • I have some types which are used from .Net 4.5 and WinRT code, so I moved these to a portable class library.

    In the WinRT world, everything works fine. But in the .Net4.5 world, these types needs to be shared between two AppDomains. In pure .NET4.5 code, such types would have been marked with the [Serializable] attribute, but this is removed for the PCL. The alternative, to derive from MarshallByRefObject is also not available. Hence, I now get an error "not marked as serializable" when trying to access the objects of these types cross AppDomains.

    So my question is, does anyone know a workaround to create types within a PCL, that allow for being used cross AppDomains?

    Wednesday, June 19, 2013 12:25 PM

All replies

  • Hi Seb,

    Welcome to the MSDN Forum.

    I am trying to involve some other one into this case, it will take some times.

    If the issue is urgent to your business, it is recommended that you contact Microsoft Customer Spport Services(CSS) via telephone so that a dedicated Support Professional can assist you in a more efficient manner. Please be advised that contacting phone support will be a charged call. 

    to obtain the phone numbers for specific technology request please take a look at the web site listed below.

    http://support.microsoft.com/default.aspx?scid=fh;EN-US;PHONENUMBERS  

    If you are outside the US please see http://support.microsoft.com for regional support phone numbers.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, June 20, 2013 5:59 AM
  • Hi Mike,

    any news regarding this issue?

    The missing [Serializable] attribute also creates problems using named pipes, because I can no longer use the binary formatter.

    Is there any place to vote for getting the [Serializable] attribute and the BinaryFormatter back?

    Friday, July 12, 2013 9:09 AM
  • Hi Seb,

    Not yet.

    And you can try to submit it here: https://connect.microsoft.com/VisualStudio/feedback/ 

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, July 15, 2013 2:46 AM
  • I put it to connect (here), lets see if this gives some more information...
    Wednesday, August 14, 2013 2:51 PM