Pb Exception :HRESULT: 0x80131040 .

G

Gab

Hello,

I developed an VS2005 NET CF application for a pocket pc which use a a SQL
everywhere database .

Sometimes, I've got some problem without reason, indeed the application
close and this exception is thrown " Could not
load file or assembly 'System.Data.SqlServerCe, Version=9.0.242.0,
Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its
dependencies. The located assembly's manifest definition does not match the
assembly reference. (Exception from HRESULT: 0x80131040)".


Thanks for your help!

Gab
 
P

Paul G. Tobey [eMVP]

I bet there's a reason for it. My guess would be you're referencing a
version of SQL CE (I'm not sure what you mean by "SQL everywhere database",
either. You appear to be using SQL CE), that doesn't exist on the device
that generates that error. Install the right version on the device and it
seems that it should work. If it doesn't, tell us 1) what device (!), 2)
what you've tried to isolate the problem, 3) what the results are, 4) what
version of the assembly *is* on the device.

Paul T.
 
G

Gab

Hello Paul ,
Thanks for your answer !

The SQL CE version is SQL CE MOBIL 2005.All the installation packages that I
install on the device are:

- sqlce30.ppc.wce5.armv4i.CAB

- sqlce30.repl.ppc.wce5.armv4i.CAB.

- NETCFv2.wm.armv4i.cab

- System_SR_FR.CAB

1) What device (!), the device is symbol MC 35 with Windows Mobil 5.0

2) What you've tried to isolate the problem:

I can't isolate the problem because I can use the application for
15mns-20mns and without reason, the application completely close and the
exception "Could not .... (Exception from HRESULT: 0x80131040)" is throw
like that .The only thing that I have is the Exception message.

4) What version of the assembly *is* on the device.

You mean the version of the assembly for my NET CF application (version
1.000) , the System.Data.SqlServerCe is Version=9.0.242.0



Thanks for your help .

Gab

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> a écrit dans le message de (e-mail address removed)...
 
P

Paul G. Tobey [eMVP]

There's *always* something you can do to isolate the problem. It doesn't
sound like you've tried very hard. Run the program in the debugger, set to
capture all exceptions, and make it happen. Where does it happen? What are
the values of variables important to what's happening when the exception is
thrown.

Paul T.

Gab said:
Hello Paul ,
Thanks for your answer !

The SQL CE version is SQL CE MOBIL 2005.All the installation packages that
I install on the device are:

- sqlce30.ppc.wce5.armv4i.CAB

- sqlce30.repl.ppc.wce5.armv4i.CAB.

- NETCFv2.wm.armv4i.cab

- System_SR_FR.CAB

1) What device (!), the device is symbol MC 35 with Windows Mobil 5.0

2) What you've tried to isolate the problem:

I can't isolate the problem because I can use the application for
15mns-20mns and without reason, the application completely close and the
exception "Could not .... (Exception from HRESULT: 0x80131040)" is throw
like that .The only thing that I have is the Exception message.

4) What version of the assembly *is* on the device.

You mean the version of the assembly for my NET CF application (version
1.000) , the System.Data.SqlServerCe is Version=9.0.242.0



Thanks for your help .

Gab

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> a écrit dans le message de (e-mail address removed)...
I bet there's a reason for it. My guess would be you're referencing a
version of SQL CE (I'm not sure what you mean by "SQL everywhere
database", either. You appear to be using SQL CE), that doesn't exist on
the device that generates that error. Install the right version on the
device and it seems that it should work. If it doesn't, tell us 1) what
device (!), 2) what you've tried to isolate the problem, 3) what the
results are, 4) what version of the assembly *is* on the device.

Paul T.
 

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