Solved

vb.net + system.Security.Permissions.SecurityPermission

Posted on 2004-09-12
9
1,042 Views
Last Modified: 2008-01-09
i have built a simple vb.net application that i want to be able to run from a shared drive over the network,  the problem is i get this erro when i run it.

The application attempted to perform an operation not allowed by the security policy.  The operation required the SecurityException.  To grant this application the required permission please contact your system administrator, or use Microsoft .NET security policy administration tool.

System.Security.Permissions.SecurityPermission

i have ran the Microsoft .NET Framework 1.1 wizard on the computer where the application is housed and changed the local intranet to full trusted, but it still doesn't work.

Thanks
0
Comment
Question by:dkilby
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 12038771
you need to do it on the client machine, not the local machine ...

http://searchvb.techtarget.com/ateQuestionNResponse/0,289625,sid8_cid518830_tax293474,00.html
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 12039241
You need to adjust the security.

Open the Control Panel
Open Administrative tools
Open Microsoft .Net Framework 1.1 Wizards
Click Adjust .Net Security
click Next
Select Local Intranet
Change the level of trust to Full
click next
click Finish
0
 

Author Comment

by:dkilby
ID: 12039542
i have tried adjusting the machine on both the machine where the application resides and where i am trying to run the machine and still the same error.  

Changing the security on all the machines is a tough option as there is a lot of machines on the network, what i want to do is when an error occurs on a machine the user can run this small application that will take a screen shot of the machine then save the file on the a shared drive on the network, the user can not use print screen themselves as the machines are locked down, is there any way i can accomplish this? without having to install .NET on all the machines and also changing the security on all the machines.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Accepted Solution

by:
123654789987 earned 500 total points
ID: 12041269
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 12044769
write it in a non-.net language.
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 12044773
there is no way to run a .net app without installing the framework.

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.net capture  result of a SQL query in variables 3 32
VB.Net. Reading xml value 6 36
System.net.Sockets Error 5 39
Create a button class for use in all vb.net apps 5 14
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question