954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

An add-in for Visual Studio works well on framework 3.5 but not on 4

I'm working on an add-in for Visual Studio which works well on framework 3.5 but not on 4.
Do you have any idea why would the add-in do this?
The add-in is written in C#.

Srcee
Junior Poster in Training
59 posts since May 2010
Reputation Points: 10
Solved Threads: 0
 

The problem happens after I create:

System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SomeKindOfDialog)); private System.Windows.Forms.TableLayoutPanel MainTable;

When I try to do this:

resources.ApplyResources(this.MainTable, "MainTable");

The program crashes.

Srcee
Junior Poster in Training
59 posts since May 2010
Reputation Points: 10
Solved Threads: 0
 

In the catch block i get BadImageFormatException.

Srcee
Junior Poster in Training
59 posts since May 2010
Reputation Points: 10
Solved Threads: 0
 

What version of .net is your add-in built against? Also,check if there is an InnerException as that generally provides a little more insight to the problem.

Ketsuekiame
Master Poster
752 posts since May 2010
Reputation Points: 349
Solved Threads: 107
 
What version of .net is your add-in built against? Also,check if there is an InnerException as that generally provides a little more insight to the problem.

Where to check for inner exception? Every line of the code?

It's not build against nothing. It doesn't work in 4.0. The platform is x86.

Srcee
Junior Poster in Training
59 posts since May 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You