﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	db_engine	os_version
413	Unhandled Exception when assigning a new user to a group BEFORE saving the user	rlittle	bweaver	"During the TTT exercises (Day 4 Review Session), the students were instructed to add a new user with certain data provided (title, first and last name, initial, primary phne, email, site code, password). They were then instructed to add the user to the CT Users group. If this action is attempted WITHOUT saving the user first, the following exception error is returned:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint ""fk_sgum_su"". The conflict occurred in database ""gringlobal"", table ""dbo.sec_user"", column 'sec_user_id'.
The statement has been terminated.
   at GrinGlobal.Business.SecureData.AddUsersToGroup(Int32 groupID, List`1 userIDs)
   at GrinGlobal.Admin.AdminHostProxy.AddUsersToGroup(Int32 groupID, List`1 userIDs)
   at GrinGlobal.Admin.ChildForms.frmUser.popupAddToGroup()
   at GrinGlobal.Admin.ChildForms.frmUser.btnAddGroup_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4200 (NetFxQFE.050727-4200)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
GrinGlobal.Admin
    Assembly Version: 1.5.1177.0
    Win32 Version: 1.5.1177.0
    CodeBase: file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Admin/GrinGlobal.Admin.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
GrinGlobal.Core
    Assembly Version: 1.5.1172.0
    Win32 Version: 1.5.1172
    CodeBase: file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Admin/GrinGlobal.Core.DLL
----------------------------------------
GrinGlobal.Business
    Assembly Version: 1.5.1172.0
    Win32 Version: 1.5.1172
    CodeBase: file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Admin/GrinGlobal.Business.DLL
----------------------------------------
GrinGlobal.InstallHelper
    Assembly Version: 1.5.1172.0
    Win32 Version: 1.5.1172
    CodeBase: file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Admin/GrinGlobal.InstallHelper.DLL
----------------------------------------
System.Configuration.Install
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration.Install/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.Install.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
GrinGlobal.Interface
    Assembly Version: 1.5.1172.0
    Win32 Version: 1.5.1172
    CodeBase: file:///C:/Program%20Files/GRIN-Global/GRIN-Global%20Admin/GrinGlobal.Interface.DLL
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.1 built by: SP
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (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 computer
rather than be handled by this dialog box.

Replicated by me on Win Vista 32 Home - originally seen on workshop XP machines.

Ideally, group should be allowed to be set prior to saving. If not, then the Group tab should not be displayed."	defect	closed	major	Post TTT - Response Updates	Admin Tool	1.5.1167		fixed			SQL Server	XP Pro 32 bit
