Solved

vb.net + system.Security.Permissions.SecurityPermission

Posted on 2004-09-12
9
1,033 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
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 69

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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now