0

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#.

2
Contributors
4
Replies
5
Views
5 Years
Discussion Span
Last Post by Srcee
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.

Edited by Srcee: n/a

0

In the catch block i get BadImageFormatException.

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.

Edited by Ketsuekiame: n/a

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.

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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.