Home > Computers and Internet > Inherited Windows Forms Control Causes Design-Time Error

Inherited Windows Forms Control Causes Design-Time Error

11-Jul-08 01:09 pm EST Leave a comment Go to comments

It’s been happening since the days of v1.1 of Microsoft’s .NET Framework: you create a control which other controls in your Windows Forms application inherit from, the parent control itself works but all the child controls suddenly get an error in the Visual Studio (VS) IDE for one of a multitude of reasons (which VS won’t explain):

Have you ever seen a more generalized error message?  It may as well be a big white ‘X’ inside a red circle with the word "Error" written next to it, followed by "You need to fix this….".

I mean, it’s a very pretty error message screen.  But the stack trace (which would ordinarily be useful to us devs) only contains the internalized calls made by Visual Studio itself to render the control in the Visual Studio environment.  Not particularly useful.  So where does one begin?

Will you look at websites like this with people like me who complain about errors of this sort.  Today’s error, in my case, was caused by one or more of the constituent controls contained by my parent control (as in the base class) using System.Data.dll and, for reasons still unknown, it has logic that causes the control(s) to not like rendering in 64-bit mode.  Since my office workstation is a 64-bit quad-core PC, I must switch to 32-bit mode to make my design-time changes and then remember to return to 64-bit configuration before I compile my application.

Switching between 32-bit and 64-bit configurations can be achieved, of course, by changing to the appropriate mode in the Debug toolbar drop-down (adjacent to the drop-down that toggles "Debug" and "Release" configuration options) or from within the solution configuration manager.

Hope this helps some other poor soul from spending the 2 hours on the problem that I had to today.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Terry Glavin

CHRONICLES

Techno Manor

Geek's Corner

VM.Blog.

an IT blog.. and an occasional rant

Yammer Site Status

Is Yammer down? Offline? Broken? Undergoing scheduled maintenance? When will it be back? Find out here.

jalalaj

A journey full of wonderful experiences

Azure and beyond

My thoughts on Microsoft Azure and cloud technologies

TechCrunch

Startup and Technology News

Ottawa Citizen

Ottawa Latest News, Breaking Headlines & Sports

National Post

Canadian News, World News and Breaking Headlines

Targeted individuals's

One Government to rule them all.

Joey Li's IT Zone

Everything about IT

jenyamatya

Unravelling the magik of code...

The Bike Escape

Because Cycling is Life

The Ross Report

Now you know where you need to know more...

Lights in the Dark

A journal of space exploration

Strength Rehabilitation Institute

Bridging the gap between physiotherapy and exercise.

The Ross Report

Now you know where you need to know more...

Little Girl's Mostly Linux Blog

Nothing to see here. Move along...

David Eedle

Geek, tech, programmer, business owner. Serial starter of things. Occasional finisher. Oh, and please don't call me Dave.

%d bloggers like this: