Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

C# Code Property Error

Posted on 2008-10-01
15
Medium Priority
?
707 Views
Last Modified: 2013-12-17
Hello Experts. When I am compiling my code, or at random times when I am designing a user control that contains the property 'ManuallyAddedCurves', it gives me the same error. I even comment out the code (which I really don't use), and it still gives me the same error. I am not sure how to fix this... The error is really bugging me, however my code still works fine.

---------------------------
Microsoft Visual Studio
---------------------------
Code generation for property 'ManuallyAddedCurves' failed.  Error was: 'Type 'ModelEditorApplication.Common.ManuallyAddCurveNameEventArgs' in Assembly 'ModelEditor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.'
---------------------------
OK  
---------------------------
0
Comment
Question by:RishadanPort
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 5
15 Comments
 
LVL 6

Author Comment

by:RishadanPort
ID: 22616811
My code always builds fine, just issues this error like 5 times before it builds
0
 
LVL 6

Author Comment

by:RishadanPort
ID: 22616824
And if I close Microsoft visual studio, and then reopen it... the Error messages are no longer sent to me.... for a while.
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 750 total points
ID: 22624103
There is not enough detail to help you with this problem.  You could start with Visual Studio.NET version.  Then, are there any service packs installed?  Operating system?  Does this happen on more than 1 machine?
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 6

Author Comment

by:RishadanPort
ID: 22625918
I don't use more then 1 machine for this project. It only happens periodically, and once I close Visual Studio, and reopen it, the error disappears. What could cause this?    (The error then later, at some random time popups up again, but I can still compile and run fine)
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 22626574
I don't know what would cause this, but you didn't indicate .NET version and operating system.
0
 
LVL 6

Author Comment

by:RishadanPort
ID: 22626591
Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)

Microsoft .NET Framework
Version 2.0.50727 SP1
0
 
LVL 6

Author Comment

by:RishadanPort
ID: 22626595
Operating system Windows XP
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 22626602
Operating system?
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 22626623
Is the 'ManuallyAddCurveNameEventArgs' marked with an Editor attribute and 'ModelEditor'?
0
 
LVL 6

Author Comment

by:RishadanPort
ID: 22626648
I don't think I put any attributes.
0
 
LVL 6

Author Comment

by:RishadanPort
ID: 22626664
Nothing except the Main Method has any attributes.


Main is just simply declared like this:

        [STAThread]
        static void Main()
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 22626733
When does this occur?  Can you attach a .png screenshot of the circumstances?
0
 
LVL 6

Author Comment

by:RishadanPort
ID: 22626772
Currently the situation stopped happening after I closed Visual Studio, and then reopened it. It previously happened every time I tried compiling. It would issue this error popup box 5 times repeatedly (after clicking the OK button each time).

It would also show the error when I was working with the UserControl that had the property 'ManuallyAddedCurves'. (again it would popup the error box 5 times after clicking ok each time). If I see it again I will post a screen shot
0
 
LVL 6

Author Comment

by:RishadanPort
ID: 22626795
I had previously tried closing and reopening Visual Studio... but again the situation started happening a day or more later, so still think the problem lurks out there.
0
 
LVL 6

Author Closing Comment

by:RishadanPort
ID: 31502053
After restarting Visual Studio a while ago, the problem has not occured since then... however I am still puzzled by the problem
0

Featured Post

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question