473,394 Members | 1,734 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,394 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 9326
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.