Hello Steve,
What version of Microsoft Windows Vista do you run?
Seems to me that the user you use to create accounts don't have the right
permission.
It wants to write to the registry and gets access deny.
Use RegMon
(
http://www.microsoft.com/technet/sys...es/regmon.mspx) to
check what registry value you get access deny in and change permission ont
aht registry key and you shouldn't get the same error and hopefully no other
erros.
Thank you
John Bryntze
"Steve" wrote:
> Hi
> When I add a new user account I get the follwing error when I open that
> account. It does not happen on my account. Any ideas please?
>
> Microsoft.NET Framework
>
> An unhandled exception has occurred in your application. If you click
> Continue, the application will ignore this error and attempt to continue.
> If you click Quit, the application will be shut down immediately.
>
> Access to the registry key is denied.
>
>
>
> See the end of this message for details on invoking
> just-in-time (JIT) debugging instead of this dialog box.
>
> ************** Exception Text **************
> System.UnauthorizedAccessException: Access to the registry key is denied.
> at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
> at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)
> at WarReg_PopUp.Subroutines.WriteValueString_SubRegis try(String
> Reg_MainKey, String Reg_SubKey, String Reg_Value, String Value)
> at WarReg_PopUp.MainForm.MainForm_Load(Object eventSender, EventArgs
> eventArgs)
> at System.Windows.Forms.Form.OnLoad(EventArgs e)
> at System.Windows.Forms.Form.OnCreateControl()
> at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
> at System.Windows.Forms.Control.CreateControl()
> at System.Windows.Forms.Control.WmShowWindow(Message& m)
> at System.Windows.Forms.Control.WndProc(Message& m)
> at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
> at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
> at System.Windows.Forms.Form.WmShowWindow(Message& m)
> at System.Windows.Forms.Form.WndProc(Message& m)
> at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
> at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
> at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
> IntPtr wparam, IntPtr lparam)
>
>
> ************** Loaded Assemblies **************
> mscorlib
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.2032
> CodeBase:
> file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
> ----------------------------------------
> WarReg_PopUp
> Assembly Version: 1.5.0.4
> Win32 Version: 1.5.0.4
> CodeBase: file:///C:/Acer/WR_PopUp/WarReg_PopUp.exe
> ----------------------------------------
> System.Windows.Forms
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.2032
> CodeBase:
> file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
> ----------------------------------------
> System
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.2032
> CodeBase:
> file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
> ----------------------------------------
> System.Drawing
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.2032
> CodeBase:
> file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
> ----------------------------------------
> Microsoft.VisualBasic
> Assembly Version: 7.0.5000.0
> Win32 Version: 7.10.6001.4
> CodeBase:
> file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
> ----------------------------------------
> Microsoft.VisualBasic.Compatibility
> Assembly Version: 7.0.5000.0
> Win32 Version: 7.10.3077
> CodeBase:
> file:///C:/Acer/WR_PopUp/Microsoft.VisualBasic.Compatibility.DLL
> ----------------------------------------
> CustomMarshalers
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.573
> CodeBase:
> file:///c:/windows/assembly/gac/custommarshalers/1.0.5000.0__b03f5f7f11d50a3a/custommarshalers.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.
>
> For example:
>
> <configuration>
> <system.windows.forms jitDebugging="true" />
> </configuration>
>
> When JIT debugging is enabled, any unhandled exception
> will be sent to the JIT debugger registered on the machine
> rather than being handled by this dialog.
>
>
>
>
>