Solved

vb.net + system.Security.Permissions.SecurityPermission

Posted on 2004-09-12
9
1,037 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 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
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…

776 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