bad experience with 2.0 final release?

L

Lloyd Dupont

I downloaded C# express final release last friday.
Previously I was working with 2.0 beta 2.

I had a few libraries which crashed. Presumably because of some missing
function incompatibilities.
Anyway I went over these but now I really hit a wall.

I have, in my project, 1 windows form application and a few dll.
All of them recompiled from scratch.


There is a method I call a few times.
On the 3rd time I get:
BadImageFormatException
An attempt was made to load a program with an incorrect format. (Exception
from HRESULT: 0x8007000B)
at Cook.GUI.RecipeIngredientGridModel.get_NumRows()
at NGui.Grid.GridView.GetPreferredSize(Size proposed) in
F:\MyWork\eCookBook\NGui\Grid\GridView.cs:line 303

Now the documentation from MSDN makes me wonder.. how come such an exception
(BadImageFormat) is thrown from a function in a DLL
1. which is part of my project, I mean the C# source I just compiled
2. which I alread called successfully a few times before this exception!

I though the beta were quite allright, but it seems to me the final release
are not!
 
F

Frans Bouma [C# MVP]

Lloyd said:
I downloaded C# express final release last friday.
Previously I was working with 2.0 beta 2.

I had a few libraries which crashed. Presumably because of some
missing function incompatibilities.
Anyway I went over these but now I really hit a wall.

I have, in my project, 1 windows form application and a few dll.
All of them recompiled from scratch.


There is a method I call a few times.
On the 3rd time I get:
BadImageFormatException
An attempt was made to load a program with an incorrect format.
(Exception from HRESULT: 0x8007000B)
at Cook.GUI.RecipeIngredientGridModel.get_NumRows()
at NGui.Grid.GridView.GetPreferredSize(Size proposed) in
F:\MyWork\eCookBook\NGui\Grid\GridView.cs:line 303

Now the documentation from MSDN makes me wonder.. how come such an
exception (BadImageFormat) is thrown from a function in a DLL
1. which is part of my project, I mean the C# source I just compiled
2. which I alread called successfully a few times before this
exception!

I though the beta were quite allright, but it seems to me the final
release are not!

Did you follow the precise explanation how to remove beta2 from your
system prior to install the RTM version? It's key you remove beta2
correctly before installing RTM.

Frans

--
 
L

Lloyd Dupont

Did you follow the precise explanation how to remove beta2 from your
system prior to install the RTM version? It's key you remove beta2
correctly before installing RTM.
I used the (optional) uninstall tool.
Anyway I'm going to try to write a simple sample and I'll submit to the
feedback center..
 
G

Guest

The only problem that I found was when I tried to debug a web service from
VS2003 I was unable to attach to the iis asp_net process. I have not found a
workaround to this yet.
 
L

Lloyd Dupont

Yeepee....
They have finally acknowledged the bug.
But are still investiagting (looks like it's difficult to fix).
At least I now know for sure they are motivated to fix it.
I hope they will have a downloadable bug fix under 1 month :S
 
L

Lloyd Dupont

Here is a post from Microsoft:
Our investigation is still continuing but we have identified a possible
workaround.

The bug occurs while processing the "where T:class" constraints. Commenting
out
the two "where T:class" clauses from your simplified repro gets us past the
ImageFormat
exception. Avoiding the use of "where" should allow you work around this bug
while we address the runtime issue.

Thanks for alerting us to this issue.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top