locked
The API 'System.Runtime.Serialization.DataMemberAttribute.get_IsNameSetExplicit()' cannot be used on the current platform.

    Question

  • Hi,

    I've been facing this exception but the information link provided doesn't lead anywhere. Does anyone have an idea what's the problem could be ?

    HResult=-2146233079
      Message=The API 'System.Runtime.Serialization.DataMemberAttribute.get_IsNameSetExplicit()' cannot be used on the current platform. See http://go.microsoft.com/fwlink/?LinkId=248273 for more information.

    Regards,

    Greg


    Thursday, April 24, 2014 5:59 AM

Answers

  • Hi Greg,

    Where you get this API, I do not find the same thing in the DataMemberAttribute Class. And furthermore only the methods followed by a little green bag can be used in Windows Store App. Plz validate again :)

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Thursday, April 24, 2014 8:55 AM
    Moderator