473,383 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Permission Problem

I have an application which uses an Access Database to store the various
information. It was working perfect until I had to put it in a shared folder
in order to be able to use it from various machines. Now, when I try to
execute the application, it displays the following error message:

Requsest for the permission of type 'System.Data.OleDb.OleDbPermission,
System.Data, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' Failed.

When I click the OK Button, an other windows appears on the screen which
says:

Application attempts to perform an operation not allowed by the security
policy. To grand this application the required permission, contact your
system administrator, or use the Microsoft .NET Framework Configuration
tool.

Unfortunately I am the administrator but I have no idea how to fix it.

Sep 30 '06 #1
2 9325
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.

Thanks,

Seth Rowe

Pitaridis Aristotelis wrote:
I have an application which uses an Access Database to store the various
information. It was working perfect until I had to put it in a shared folder
in order to be able to use it from various machines. Now, when I try to
execute the application, it displays the following error message:

Requsest for the permission of type 'System.Data.OleDb.OleDbPermission,
System.Data, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' Failed.

When I click the OK Button, an other windows appears on the screen which
says:

Application attempts to perform an operation not allowed by the security
policy. To grand this application the required permission, contact your
system administrator, or use the Microsoft .NET Framework Configuration
tool.

Unfortunately I am the administrator but I have no idea how to fix it.
Sep 30 '06 #2
Thank you very much.

It works fine.

? "rowe_newsgroups" <ro********@yahoo.com?????? ??? ??????
news:11**********************@m73g2000cwd.googlegr oups.com...
>
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.

Thanks,

Seth Rowe

Pitaridis Aristotelis wrote:
>I have an application which uses an Access Database to store the various
information. It was working perfect until I had to put it in a shared
folder
in order to be able to use it from various machines. Now, when I try to
execute the application, it displays the following error message:

Requsest for the permission of type 'System.Data.OleDb.OleDbPermission,
System.Data, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' Failed.

When I click the OK Button, an other windows appears on the screen which
says:

Application attempts to perform an operation not allowed by the security
policy. To grand this application the required permission, contact your
system administrator, or use the Microsoft .NET Framework Configuration
tool.

Unfortunately I am the administrator but I have no idea how to fix it.

Sep 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Wayne Wengert | last post by:
I am using VS.NET 2003, VB.NET, ADO.NET and an Access 2000 database. I want to display a list of all tables in an Access database. I want to put that list of table names in a listbox so the user...
11
by: Richard Muller | last post by:
Hi, I new to ASP. I have a problem with an ASP script opening a file for writing on my server. Here's how I got to this error: I downloaded a neat FileUpload ASP example from...
10
by: Florian G. Pflug | last post by:
Hi I installed a postgres-application (which was developed on debian woody) on red hat 9 today, using the postgres 7.3 rpms from redhad. One of my the triggers uses the pg_settings table (more...
4
by: mr_wizard | last post by:
I haven't written ASP code to update an Access DB in years. Having a permission problem. Been working on it for hours, time to get some help. Running IIS 5 on an XP Pro system. ASP code to update...
6
by: Arne Beruldsen | last post by:
I'm using a Webform which contains a datagrid. The datagrid is being populated from an Access database. When I use the Adaptor Control it allows me to preview the data with no problems. However,...
3
by: Chris Skaryd | last post by:
I'm using Postgres 7.4. I have a database called tracking and user called test5. From the Red Hat command line test5 can psql tracking and run: SELECT * FROM Customers; Not surprisingly, a...
6
by: news.microsoft.com | last post by:
Hope someone can help Working Visual Web Developer 2005 using Access databases It all works fine using the WebDevelopers webserver but when I use IIS I get these errors The Microsoft Jet...
5
by: ajaymohank | last post by:
Hello friends.... i have a problem in php. i am using dream weaver for doing php. in a page i wrote exec("notepad.exe"); and when i called the page from another system the notepad is executing in my...
2
Vkas
by: Vkas | last post by:
I have a website developed in php Web site is working ok and the products images are being uploaded in folder (pimgs) ok if it is hosted in any other domain (www.x.com / www.abc.com )!!! i have...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.