SQL Lite under Windows 7 HELP!!!

Cableguy

Expert
Licensed User
Longtime User
Hi guys...

I developed a Windows XP based app on my NetBook, and after compiling it all works fine on Windows XP....
My problem is I need it to run on Windows 7 but it is giving me an error!!
Unable to load "System.Data.SQLite, Version=1.0.65.0, Culture=neutral, PublicKey Token=db937bc2d44ff139" or one of it's dependencies. The assembly name or basecode was invalid (Exception HRESULTx80131047)

As I can see it, it is not possible to "register" a dll under Windows 7, as we used to do in WIndows xp...
I need to run this in Windows 7!!! Please!!!
 

Cableguy

Expert
Licensed User
Longtime User
Yes, of that I am sure.
I even re-installed .net cf 2.0 and 3.5 to no avail...
 

Cableguy

Expert
Licensed User
Longtime User
I don't see any reason why it fails on Windows 7 and works on XP.

Does any other users with Windows 7 encounter this problem with the SQL library?
Can I presume from your words that you have tried it and it failed?

I have had this error before, but since the app was under-developed, I didn't take the time to report it...
I also do not have an windows7 SO PC with b4P to try developing in....
 

Cableguy

Expert
Licensed User
Longtime User
Ok, so here's some more details...

I have a xp pro netbook, in wich I develop my apps...
This particular app is to run on a windows 7 PC.

I did NOT make a cab for my app, I just compiled it and copied all the necessary files from one computer to the other.

Can any one repeat the process? I can Share the app I developed, for testing, but will leave the dll out of the zip...
 

specci48

Well-Known Member
Licensed User
Longtime User
Can any one repeat the process?

Done... without any problems!

I unpacked your .zip on my xp-desktop, compiled it, copied the result to my win7 notebook and everything works fine.



specci48
 

Cableguy

Expert
Licensed User
Longtime User
I supose this means that my customers windows 7 install is no good, but to fix it withou re-installing it?

PS: one question ...do you have b4ppc installed in your win 7 notebook?
 
Last edited:

specci48

Well-Known Member
Licensed User
Longtime User
PS: one question ...do you have b4ppc installed in your win 7 notebook?

Yes.

:sign0013: not to mention it for myself because this may be an important difference to your situation.


specci48
 

Cableguy

Expert
Licensed User
Longtime User
Yes.

:sign0013: not to mention it for myself because this may be an important difference to your situation.


specci48

No prob, but as it is obvious, I cannot simply install b4ppc in my customer win 7 pc...
 

Cableguy

Expert
Licensed User
Longtime User
Just on the offchance - I assume that this is a compiled exe, have you tried running it as Administrator?
I have thought of that and went learcking around the EXE props, but found nothing similar to that.Anyway, ignoring the error message, renders the app completle usable, except for the SQL related commands...

It doesn't make any difference if Basic4ppc IDE is installed or not. The compiled program doesn't interact with the IDE in anyway.

Yes but, I was thinking that, maybe during install, B4p registers or something similar, all the default dlls...thus making a difference.
 

agraham

Expert
Licensed User
Longtime User
There is no registration of Basic4ppc dlls. If they are in the same folder as the exe is started from they should be picked up automatically. I assume that you haven't found out how to run it as Administrator. I don't have Windows 7 but on Vista you right click the exe and select "Run as Administrator". If the option doesn't appear maybe you don't have Administrator privileges as whatever user you are logged in as.

Where are you trying to run this app from? If it is the Program Files folder try it from a temporary folder under C: as Program Files is a special location that is protected by Windows from non-Administrator modification.
 

Cableguy

Expert
Licensed User
Longtime User

The user I was logged with had all the available priveleges turned on.
I was running my app fom a folder created on the Desktop screen
 

Cableguy

Expert
Licensed User
Longtime User
Last edited:

Cableguy

Expert
Licensed User
Longtime User
I've found the "Run as Administrator" bit, but to no avail...
The error persists....

I've asked my customer, who is a long time friend, to download and instal the b4ppc demo, and see if that makes the app works...
Still waiting on that one...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…