Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

When I build my project I get the following error and this is new territory for me as a noobie in .net. Thanks in advance for suggestions.

 

 

Error 1:

System.IntPtr is an unsupported type. Please use [XmlIgnore] attribute to exclude members of this type from serialization graph.

 

File:

C:\Denali CAD\trunk\CAD\EnRoute.CAD.UI\EXEC

Project:

EnRoute.CAD.UI

Posted

I just fixed the problem. One of the other projects that I referenced in this project had a class with property of type system.IntPtr. I had to use the xmlIgnore attribute on the property to correct the problem. Thanks.

 

<Xml.Serialization.XmlIgnore()> _

Public ReadOnly Property WindowHandle() As Nullable(Of IntPtr)

Get

Return _winHandle

End Get

End Property

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...