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.

SQL library and .net permission problem (I think)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-01-2007, 11:14 AM
Junior Member
 
Join Date: Aug 2007
Location: Australia
Posts: 49
Default SQL library and .net permission problem (I think)

Hi,

I've been working on a database application and all is working really well. I've now adding in image support to the database and when I use a cmd.FileToBlob command I get a

"Requesting for the permission of type 'System.Security.Permissions.FileIOPermissions.Fil eIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, Publickey=xxxxxxxxxxxx' failed.

Googling the error it appears to be a .net permissions problem, but I don't have any real experience with .net so I wondering if somebody can point me in the right direction.

Thanks.

Cheers.

M
Reply With Quote
  #2 (permalink)  
Old 10-01-2007, 12:14 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Are you working from a network?
Reply With Quote
  #3 (permalink)  
Old 10-01-2007, 08:51 PM
Junior Member
 
Join Date: Aug 2007
Location: Australia
Posts: 49
Default

Hi,

Yes...Even though its a home setup, I use a common file server for storing files.

Cheers.

M
Reply With Quote
  #4 (permalink)  
Old 10-01-2007, 09:25 PM
Junior Member
 
Join Date: Aug 2007
Location: Australia
Posts: 49
Default

Hi,

Moved everything to a local drive (source and images) and everything works as expected...At least I only wasted an hour trying to figure out why it didn't work. Thanks for the initial tip

Erel can you point me in the right direction to how to fix the permissions on the network drive issue (as that is my preferred method of working)?

Thanks.

Cheers.

M
Reply With Quote
  #5 (permalink)  
Old 10-01-2007, 09:53 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

When you work from a network drive .Net Framework grants limited access.
You will need to change the Framework settings (Framework 2.0 in your case).
This page covers it:
http://www.codeproject.com/useritems...select=1814597
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
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 12:23 PM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 10:22 AM
Teamtask problem (Outlook library) blue_wardrobe Bug Reports 4 07-07-2008 04:06 PM
Version 6.01 Problem with SIP Features of Hardware Library Woinowski Bug Reports 4 01-08-2008 01:59 PM
No permission to post on opensource!! Cableguy Forum Discussion 6 07-05-2007 01:19 PM


All times are GMT. The time now is 05:07 AM.


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