Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Optimized Compilation problem on the device

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-12-2008, 09:22 AM
bob bob is offline
Junior Member
 
Join Date: Oct 2007
Location: Germany / FÜ
Posts: 10
Default Optimized Compilation problem on the device

Hi,

Normal compilation is working without problems, optimized compilation generates an error-free .exe, too, but if I try to start it on my PDA I get the following error (non-optimized works with no problems)

datei- oder assemblyname 'crypto, Version=1.0.2647.40023,Culture=neutral, PublicToken=null' bzw. eine Abhängigkeit davon nicht gefunden

something like
file or assembly name 'crypto, Version=1.0.2647.40023,Culture=neutral, PublicToken=null' or a dependancy not found

Any Ideas? .net 2 is installed on the device ROM. Cryptodevice.dll is available, of course - is there probably a new version of this lib for .net 2.0 somwhere?

Robert
Reply With Quote
  #2 (permalink)  
Old 03-12-2008, 10:56 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

This is a guess but it looks like the CryptoDevice.dll on the desktop that the exe is compiled against may be a different version to that on the device. I would check the version numbers (Explorer right click->Properties->Version in XP or .right click->Properties->Details in Vista). My CryptoDevice.dll is version 1.0.2915.17330 - yours looks earlier.
Reply With Quote
  #3 (permalink)  
Old 03-12-2008, 11:58 AM
bob bob is offline
Junior Member
 
Join Date: Oct 2007
Location: Germany / FÜ
Posts: 10
Default

unfortunately not - same version on the pda and on the desktop and btw same version as you have mentioned....

*sigh*
Reply With Quote
  #4 (permalink)  
Old 03-12-2008, 12:08 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

It's picking that wrong version number up from somewhere. If there is an appname.exe.config file, where appname is the name of your exe, in the same directory then delete it. Optimised compiled exes don't need them.

If that (probably) doesn't make any difference then if you have .NET Reflector check the versions of the references in the exe, or post an exe that exhibits the problem and I will have a look inside it and try it on my device.
Reply With Quote
  #5 (permalink)  
Old 03-12-2008, 01:05 PM
bob bob is offline
Junior Member
 
Join Date: Oct 2007
Location: Germany / FÜ
Posts: 10
Default

perfect!!!! deleted the appname.exe.config and all works fine - I don't understand it, but OK

Thanks a lot!!

Robert
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimized compilation susu Questions (Windows Mobile) 10 01-15-2009 09:07 PM
optimized compilation manu Questions (Windows Mobile) 4 08-06-2008 06:17 PM
6.01 Optimized compilation error dpriem Bug Reports 2 01-06-2008 03:42 PM
FMOD and Optimized Compilation @Work Bug Reports 8 12-28-2007 07:51 PM
Version 6.0 Device optimized compilation problem HarleyM Bug Reports 0 12-28-2007 02:01 AM


All times are GMT. The time now is 08:58 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0