koen Posted May 3, 2004 Posted May 3, 2004 ellow, I have got a problem with installing my program on a users PC, when you are logged in as administrator there is no problem but when you don't have admin rights the following error occurs when running the program... it's only when I click on my update form. In that form I have a datagrid using the dll of rustemsoft... I tried to higher the trust of this dll and I gave it full trust but that didn't help. I don't know how to solve it in an other way? any sugestions?? thx koen > The application attempted to perform an operation not allowed by the > security policy. The operation requuired the securityException. > > ************** Exception Text ************** > System.Security.SecurityException: Requested registry access is not allowed. > at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) > at RustemSoft.DataGridColumns.DataGridComboBoxColumn.Edit (CurrencyManager > Source, Int32 Rownum, Rectangle Bounds, Boolean ReadOnly, String > InstantText, Boolean CellIsVisible) > at System.Windows.Forms.DataGrid.Edit(String instantText) > at System.Windows.Forms.DataGrid.Edit() > at System.Windows.Forms.DataGrid.set_CurrentCell(DataGridCell value) > at System.Windows.Forms.DataGrid.OnMouseDown(MouseEventArgs e) > at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons > button, Int32 clicks) > at System.Windows.Forms.Control.WndProc(Message& m) > at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) > at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) > at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, > IntPtr wparam, IntPtr lparam) > > > ************** Loaded Assemblies ************** > mscorlib > Assembly Version: 1.0.3300.0 > Win32 Version: 1.0.3705.0 > CodeBase: > file:///c:/windows/microsoft.net/framework/v1.0.3705/mscorlib.dll > ---------------------------------------- > prMK > Assembly Version: 1.0.1578.23386 > Win32 Version: 1.0.1578.23386 > CodeBase: file:///C:/Program%20Files/Metes/MK%20Demo/prMK.exe > ---------------------------------------- > System.Data > Assembly Version: 1.0.3300.0 > Win32 Version: 1.0.3705.0 > CodeBase: > file:///c:/windows/assembly/gac/system.data/1.0.3300.0__b77a5c561934e08 9/system.data.dll > ---------------------------------------- > System > Assembly Version: 1.0.3300.0 > Win32 Version: 1.0.3705.0 > CodeBase: > file:///c:/windows/assembly/gac/system/1.0.3300.0__b77a5c561934e089/sys tem.dll > ---------------------------------------- > Microsoft.VisualBasic > Assembly Version: 7.0.3300.0 > Win32 Version: 7.00.9466 > CodeBase: > file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.3300.0__b03f5 f7f11d50a3a/microsoft.visualbasic.dll > ---------------------------------------- > System.Windows.Forms > Assembly Version: 1.0.3300.0 > Win32 Version: 1.0.3705.0 > CodeBase: > file:///c:/windows/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c 561934e089/system.windows.forms.dll > ---------------------------------------- > System.EnterpriseServices > Assembly Version: 1.0.3300.0 > Win32 Version: 1.0.3705.0 > CodeBase: > file:///c:/windows/assembly/gac/system.enterpriseservices/1.0.3300.0__b 03f5f7f11d50a3a/system.enterpriseservices.dll > ---------------------------------------- > System.Drawing > Assembly Version: 1.0.3300.0 > Win32 Version: 1.0.3705.0 > CodeBase: > file:///c:/windows/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d5 0a3a/system.drawing.dll > ---------------------------------------- > System.Xml > Assembly Version: 1.0.3300.0 > Win32 Version: 1.0.3705.0 > CodeBase: > file:///c:/windows/assembly/gac/system.xml/1.0.3300.0__b77a5c561934e089 /system.xml.dll > ---------------------------------------- > SandBar > Assembly Version: 1.0.6.0 > Win32 Version: 1.0.6.0 > CodeBase: file:///C:/Program%20Files/Metes/MK%20Demo/SandBar.DLL > ---------------------------------------- > CrystalDecisions.Windows.Forms > Assembly Version: 9.1.3300.0 > Win32 Version: 9.1.9370.0 > CodeBase: > file:///c:/windows/assembly/gac/crystaldecisions.windows.forms/9.1.3300 .0__692fbea5521e1304/crystaldecisions.windows.forms.dll > ---------------------------------------- > CrystalDecisions.Shared > Assembly Version: 9.1.3300.0 > Win32 Version: 9.1.9360.0 > CodeBase: > file:///c:/windows/assembly/gac/crystaldecisions.shared/9.1.3300.0__692 fbea5521e1304/crystaldecisions.shared.dll > ---------------------------------------- > DataGridColumnsTrial > Assembly Version: 2.1.4.0 > Win32 Version: 2.1.4.0 > CodeBase: > file:///C:/Program%20Files/Metes/MK%20Demo/DataGridColumnsTrial.DLL > ---------------------------------------- > > ************** JIT Debugging ************** > To enable just in time (JIT) debugging, the config file for this > application or machine (machine.config) must have the > jitDebugging value set in the system.windows.forms section. > The application must also be compiled with debugging > enabled. Quote
AndreRyan Posted May 3, 2004 Posted May 3, 2004 You're not permitted to write to HKEY_LOCAL_MACHINE or HKEY_CLASSES_ROOT in a limited user account, that appears to be an error in the dll, is there anyway to stop the registry access? Quote .Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
koen Posted May 3, 2004 Author Posted May 3, 2004 You're not permitted to write to HKEY_LOCAL_MACHINE or HKEY_CLASSES_ROOT in a limited user account' date=' that appears to be an error in the dll, is there anyway to stop the registry access?[/quote'] I have already send an email to the constructor of the dll and asked if there was a bug in the dll but they say that I have to customize myWindows user account security levels... but I gave the dll full trust but nothing changes. thx for the reply greets KD Quote
koen Posted May 10, 2004 Author Posted May 10, 2004 I have tried all possibilities I could find on the net but nothing works... Does somebody have an other idea? Quote
Arch4ngel Posted May 10, 2004 Posted May 10, 2004 Did you set correct right to your EXE ? Did you locked the registry for the current user ? If you locked it... it'll never be able to write something to the registry. Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Administrators PlausiblyDamp Posted May 10, 2004 Administrators Posted May 10, 2004 I don't think you will be able to work round this by assigning permissions to the DLL - you will have to make each user who needs the functionality of this DLL a local administrator! Fairly terrible practice in my opinion - can't see why a dll would need to modify / access these keys at runtime. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Arch4ngel Posted May 10, 2004 Posted May 10, 2004 Weird solution indeed. Request the source code ! :p But... for real... if the source code is available... you could modify the "Registry" section. But if it's not... you'll have to figure a way to get over this. Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
maritzayanet Posted February 16, 2006 Posted February 16, 2006 Hello: I hava a question.... Who you modify the "Registry" section... is in .Net or in the snap or where??? can you send some link where i can fine more information about it?? i will appreciate it Weird solution indeed. Request the source code ! :p But... for real... if the source code is available... you could modify the "Registry" section. But if it's not... you'll have to figure a way to get over this. 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.