Solved

asp.net, C# Invalid FORMATETC structure when using MS Chart

Posted on 2012-04-12
3
407 Views
Last Modified: 2012-04-17
Hello,

I have an ASP.NET web content form where I have installed MSChart application.
I have also installed this MS CHart control in the toolbox,  however, when I attempt to drag this control on to a webcontent form, I get the following error msg:

"The operation could not be completed.  Invalid FORMATETC structure".

 I have attached a screnshot for more details.

I am researching the deletion of a * .suo files, but I can't seem to find this file in my project/solution.

ANY help would be greatly appreciated.
invalid-formatetc-structure.jpg
0
Comment
Question by:Codeaddict7423
  • 2
3 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 37842530
What do you mean by "MS Chart"?  Are you talking about the old ActiveX control, or the new charting controls?

In order to see .suo files, you need to show hidden files in Windows Explorer.
0
 

Author Comment

by:Codeaddict7423
ID: 37843398
TheLearnedOne,

Thank you for the quick reply.  I was referring to the MSChart control that allows developers to display tabular data in a graphic format (ie: line charts, bar charts, pie charts, etc.)
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 37843680
ASP.NET is multi-threaded, and the MSChart.ocx is an COM ActiveX control, which is single-threaded.  The two don't play well together.  Also, it looks like a web page is not a proper site for the ActiveX control.

I would look into proper charting components for ASP.NET.

Built-in Charting Controls (VS 2010 and .NET 4 Series)
http://weblogs.asp.net/scottgu/archive/2010/02/07/built-in-charting-controls-vs-2010-and-net-4-series.aspx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now