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.

Device Error: file/assembly not found

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-05-2008, 11:53 PM
Dave Mitchell's Avatar
Newbie
 
Join Date: Mar 2008
Posts: 8
Default Device Error: file/assembly not found

When trying to run a program on my device that uses .dll's, I get the following error: An error occurred. File or assembly name 'Storage Card\Basic4PPC Dev\HTTP.dll', or one of its dependencies, was not found. The program uses HTTP.dll and it is in the named directory along with the program source code. Programs run fine if they don't use any .dll's and I get the same error with any .dll. I am using a Sprint Mogul, V6.01 of Basic4PPC, .Net v2.0.7045 and System_SR_ENU_wm is installed. Thanks for any guidance.
Reply With Quote
  #2 (permalink)  
Old 05-06-2008, 12:15 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Ithink this has to do with the fact that the http dll uses CF2.0...
You need to copy the config file to the same folder as the app...
t should have been created when you compliled your app, and it's name should be something like..."yourApp.exe.config"...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #3 (permalink)  
Old 05-06-2008, 05:29 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The config files are no longer required since version 6.0.
First try to copy the required files to the main storage instead of the storage card.
Note that V6.30 merges the library in the executable making it simpler.
You can try the beta version if you like.
Reply With Quote
  #4 (permalink)  
Old 05-06-2008, 08:07 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

Quote:
Originally Posted by Erel View Post
The config files are no longer required since version 6.0.
Although the HTTP library is a .NET 1.0 library I thought that legacy compiled apps using .NET 2 libraries running on systems with both .NET 1.0/1.1 and .NET 2.0 installed still needed the config file to force .NET 2.0 operation - the legacy compiler still produces a config file and Dbasic still has one. Am I mistaken?
Reply With Quote
  #5 (permalink)  
Old 05-06-2008, 09:25 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You are right. If you want to use .Net 2.0 libraries with the legacy compiler you should distribute the config file as well.

However I don't see no reason of using the legacy compiler with .Net 2.0 libraries.
The only exception is if you want to take advantage of the VGA double pixel mode (which is also supported by the optimized compiler in V6.30).
Reply With Quote
  #6 (permalink)  
Old 05-06-2008, 04:15 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

Quote:
Originally Posted by Erel View Post
However I don't see no reason of using the legacy compiler with .Net 2.0 libraries..
I agree but I was just being pedantic (as usual )
Reply With Quote
  #7 (permalink)  
Old 05-08-2008, 11:30 PM
Dave Mitchell's Avatar
Newbie
 
Join Date: Mar 2008
Posts: 8
Default

Thanks. I found that installing Basic4PPC on the device and moving the source files and .dll's to the device resolved the issue.
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
FileSize(file) brings up error on device - but not on Desktop TWELVE Questions (Windows Mobile) 7 05-10-2008 02:54 PM
FTP file download fails on device willisgt Questions (Windows Mobile) 3 01-31-2008 11:45 AM
How co compile to Device *.exe file haiphanngoc Questions (Windows Mobile) 4 09-07-2007 09:36 AM
Avoid the "optional resource assembly cannot be found" Erel Code Samples & Tips 1 07-12-2007 10:24 AM
.sbp file association in the Device Cableguy Code Samples & Tips 8 05-18-2007 02:12 PM


All times are GMT. The time now is 09:24 AM.


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