Mark Posted September 24, 2003 Posted September 24, 2003 Hi all. First sorry for my English, im italian....be patient :) I have realized a simple application with VB.NET on my pc (Win XP, VB.NET Standard 2002) that by a button pressing shows some information on the display (pc name, user name etc.) If i try to run this application on another pc with windows 2000 it works correctly, but in a pc with windows 98 it doesn't work and this message appears: "The application attempted to perform an operation not allowed by the security policy. The operation required SecurityException. To grant this appication the required permission please contact your system administrator, or use the Microsoft .NET security policy administration tool." After this message the application closes itself. Framework 1.1 is present on both computers. On my pc, under "Administration tools" i find "MS Framework 1.1 configuration", with some keys about security, policies etc. I would like to know what i have to do to solve this message, because i'd like to run this application with 98/me/nt/2000/xp systems. Thank you in advance and....good coding! Bye Quote
*Gurus* Derek Stone Posted September 24, 2003 *Gurus* Posted September 24, 2003 Are you running the application from a network drive? Quote Posting Guidelines
Mark Posted September 24, 2003 Author Posted September 24, 2003 Are you running the application from a network drive? No. I copy the .exe file from my pc to the others, without any distribution procedure. Quote
*Gurus* Derek Stone Posted September 24, 2003 *Gurus* Posted September 24, 2003 Have the policies on the machines affected been modified from the defaults? If they haven't there is absolutely no reason as to why those executables should be throwing any security exceptions. Runtime Security Policy | Machine | Code Groups | All_Code | My_Computer_Zone Make sure that's set to the "Full Trust" permission set. Quote Posting Guidelines
Mark Posted September 24, 2003 Author Posted September 24, 2003 Here is midnight. Tomorrow morning i will try your suggestion. If i understood i have to modify the policy option of the target machine; but i have installed Framework 1.1 normally, without any modify to its option. However THANK YOU I will inform you about (i hope :) ) success. Thank you again Quote
Mark Posted September 25, 2003 Author Posted September 25, 2003 I tried to configure my pc as you have suggested(All Code - Full Trust) a then to remake the application file. Now it works correctly also in the pc with Windows 98. So i have to set this option once on my pc (develop) and NOT in all target pcs, right?? In this target machine, in the windows/framework/config subfolder, i find an application (Configuration Wizard) that allows to modify some properties of any application in the system. What is its utility? Thank you again ! Quote
*Gurus* Derek Stone Posted September 26, 2003 *Gurus* Posted September 26, 2003 You need to ensure the correct permissions are set on each client machine, not just the computer the application was developed on. Quote Posting Guidelines
Mark Posted September 26, 2003 Author Posted September 26, 2003 Ok, thank you for your answer. But in the machines with windows 98 i haven't the "MS Framework configuration", but only a "Configuration Wizard" that seems to allow to modify any application security permission of every application, one by one. In every caso now, thank to you, i know that i havo to set the correct policy on every client. Thank you again and sorry if i was too hard to understand !! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.