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.


Device Error: file/assembly not found


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-06-2008, 12:53 AM
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, 01:15 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,343
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

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 05-06-2008, 06:29 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
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, 09:07 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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, 10:25 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
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, 05:15 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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-09-2008, 12:30 AM
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 On
Pingbacks are On
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 & Help Needed 7 05-10-2008 03:54 PM
FTP file download fails on device willisgt Questions & Help Needed 3 01-31-2008 12:45 PM
How co compile to Device *.exe file haiphanngoc Questions & Help Needed 4 09-07-2007 10:36 AM
Avoid the "optional resource assembly cannot be found" Erel Code Samples & Tips 1 07-12-2007 11:24 AM
.sbp file association in the Device Cableguy Code Samples & Tips 8 05-18-2007 03:12 PM


All times are GMT. The time now is 02:59 AM.


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