Click here to Skip to main content
15,911,711 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Respected Sir/Madam

Our VB.Net Application is not worked in LAN. we use msaccess in Back end. please help us. Error when we Run it. Error as follows.
Application attempted to perform an operation not allowed by security policy. To grant this application the required permission, contact youre system administrator or use the microsoft .NET framework configuration tool.
   if you click continue, the application will ignore this error and attempt to continue. if you click quite, the application will close immediately.
   Request for the permission of type.
   System.Data.OleDb.OleDbPermission, System data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

PLEASE SOLVED ABOVE ERROR .

Thanking You.
Regards
Posted
Updated 12-Jan-12 22:18pm
v2

We can't.

It's a permissions problem, and it sounds like you are trying to use a single Access database file directly from a number of machines on the network. You need to look at your network configuration, and ensure that all the PC's have full read/write permissions to access the folder containing the database file.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 13-Jan-12 4:44am    
Correct, a 5.
--SA
Sergey Alexandrovich Kryukov 13-Jan-12 4:53am    
But I think the root of the problem is using Access on a network. I explained it in my answer, please see.
--SA
Hi,

Have you enabled the network access permission to the access file. Please check it.
 
Share this answer
 
This is a bad idea to use MS Access as a back end in network configuration in general. It does not use client-server technology and the database access is based on file access. This is a file server-based database. Why torturing yourself?

There are decent data bases, client–server relational database management systems (http://en.wikipedia.org/wiki/Client%E2%80%93server[^], http://en.wikipedia.org/wiki/Relational_database_management_system[^]), many are Open Source.

Choose what you really need: http://en.wikipedia.org/wiki/Comparison_of_database_tools[^].

—SA
 
Share this answer
 
This tells me you're trying yo run your .EXE from a shared location (not installed on each machine.)

DO NOT DO THAT! Because of Code Access Security, you run into all kinds of permission problems that you are not prepared to undertstand.
 
Share this answer
 

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