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.
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.