Question Permissions Error

ggunter

Well-known member
Joined
Apr 23, 2008
Messages
137
Programming Experience
Beginner
Hi all!!

I'm a VB6 programmer trying to upgrade my skillset to VS2005. I have written a small application that will get a person's name based on an ID number.:D

My problem is that I cannot get the program to access the database.

I have the VS software set to run the debugger with the selected permissions (at least, I think I do). I have signed the assembly and created a Certificate for the program.:)

In debug mode the program runs fine. When I run the executable, I receive the following error:

"Request for the permission of type 'System.Data.OleDb.OleDbPermission,
System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=<token>'
failed.":confused:

Any help would be greatly appreciated as this one really has me stumped.
 
Well, after a couple of weeks reading online and playing with the program, I finally got it to run. I moved the development off the network drive to the PC's hard drive and everything functions as it should.:D

Don't really know why and I haven't been able to find anything online that would explain it but it works. At this point, I can only assume it is something specific to my company.
 
Back
Top