Solved

vb.net + system.Security.Permissions.SecurityPermission

Posted on 2004-09-12
9
1,045 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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 …
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

751 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