Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends

i am in problem.i make a project in Window Application ADO.NET C# and DataBase use MS ACCESS.when i run this exe to another computer it will show error i already install .NET Framework to other system.. it will show error like..

'Application attempted to perform an operation not allowed by the Security Policy'
'To grant this application the required permission.'
'Request for the Permission of type'
'System.Data.oledb.oledbpermission, System.data,version=2.0, Culture=neutral,
PublicKeyToken=b77a5c561934e09 failed'


some permission to MS ACCESS.can you tell me how it solve..

Thanks & Regards
Mohit Sharma
Posted
Comments
shefeekcm 25-Jun-11 8:26am    
just give your connectio string.

1 solution

Take a look the following post. It addresses the same problem...

The solution provided is:
------ from post
Goto control panel --admin tools --Microsoft .Net Framework 2.0
Configuration.
Expand the Runtime Security Policy Node. Expand the Machine Level node.
Expand the Code Groups node. Right click on the All_Code node and
select "New..." Follow the wizard to build the new permission set (I
normally use strong name - see the .Net help for how to add a strong
name to you're solution). After you finish the wizard, you should be go
to go (on your computer at least!) So before you exit the Framework
Configuration, right click on "Runtime Security Policy" and select
"Create Deployment Package" and follow the wizard (be sure to select
Machine Level). This msi installer has to be run on each computer that
is going to use your program, and it must be run of the local drive -
running it from the network drive will not do anything. I had our
company's Network admin set up a login script to run the installer - I
think it the easiest way to accomplish it.
-------------------------------

http://bytes.com/topic/visual-basic-net/answers/542979-permission-problem[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900