Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed 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: 1,336
Awards Showcase
Forum Contributer 
Total Awards: 1
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: 1,336
Awards Showcase
Forum Contributer 
Total Awards: 1
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Choose Folder - Optimized Compilation orhan Questions & Help Needed 9 05-15-2008 02:36 PM
Optimized compilation susu Questions & Help Needed 3 05-13-2008 06:23 AM
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 05:39 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0