Opened 16 years ago

Closed 11 years ago

#449 closed defect (fixed)

Trying to delete a dataview required by the system throws exception

Reported by: Mark J. Millard Owned by: bweaver
Priority: minor Milestone: Release Candidate 2
Component: Admin Tool Version: 1.5.1315
Severity: Keywords: administrator tool
Cc: Database Engine: N/A
Operating System: Windows 7 Ultimate 64 bit

Description

I was trying to align my dataviews local with DEV2. I thought a good way would be to delete all the dataviews I was concerned with after a new install. gets and lookups. I was trying to delete the code_value_lookup. It threw this exception. The administrator tool should capture and give a friendly message.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

Exception Text
System.InvalidOperationException: 1 permission(s) exist that are specifically tied to this dataview. You must remove the following permissions before continuing: ,

at GrinGlobal.Business.SecureData.DeleteDataViewDefinition(String fullyQualifiedDataViewName, Boolean forceDelete)
at GrinGlobal.Admin.AdminHostProxy.DeleteDataViewDefinition(String dataviewName, Boolean forceDelete)
at GrinGlobal.Admin.ChildForms.frmDataviews.promptToDelete()
at GrinGlobal.Admin.ChildForms.frmDataviews.deletePermissionTemplateMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.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.4927 (NetFXspW7.050727-4900)
CodeBase: ​file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll


GrinGlobal.Admin

Assembly Version: 1.5.1315.0
Win32 Version: 1.5.1315.0
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Admin/GrinGlobal.Admin.exe


System.Windows.Forms

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
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.4927 (NetFXspW7.050727-4900)
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.4927 (NetFXspW7.050727-4900)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


GrinGlobal.InstallHelper

Assembly Version: 1.5.1315.0
Win32 Version: 1.5.1315
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Admin/GrinGlobal.InstallHelper.DLL


GrinGlobal.Core

Assembly Version: 1.5.1315.0
Win32 Version: 1.5.1315
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Admin/GrinGlobal.Core.DLL


GrinGlobal.Business

Assembly Version: 1.5.1315.0
Win32 Version: 1.5.1315
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Admin/GrinGlobal.Business.DLL


System.Configuration.Install

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System.Configuration.Install/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.Install.dll


System.Xml

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll


System.Configuration

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


System.Data

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: ​file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll


System.Transactions

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
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.4927 (NetFXspW7.050727-4900)
CodeBase: ​file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll


System.Web

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: ​file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll


GrinGlobal.Interface

Assembly Version: 1.5.1315.0
Win32 Version: 1.5.1315
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Admin/GrinGlobal.Interface.DLL


System.Core

Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.4926 built by: NetFXw7
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll


System.Web.Services

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll


g_4cqul2

Assembly Version: 1.5.1315.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.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.

Change History (4)

comment:1 by Mark J. Millard, 16 years ago

Component: Curator Tool → Admin Tool
Owner: changed from Pete Cyr to bweaver

comment:2 by bweaver, 16 years ago

Status: new → addressed

(In [1317]) - fixes #454 Making dataivew list exportable sounded like a great idea, so I went ahead and made all list views exportable in the admin tool. Right click any list view and select "Export List" to have a .csv generated and it will automatically open up in Excel.

  • fixes #449 Dataview editor in admin tool now prompts with a friendly message when trying to delete a dataview that has one or more permission(s) associated directly with it

comment:3 by bweaver, 16 years ago

Status: addressed → released

comment:4 by Mark J. Millard, 11 years ago

Resolution: → fixed
Status: released → closed
Note: See TracTickets for help on using tickets.