MVCGrid.Net icon indicating copy to clipboard operation
MVCGrid.Net copied to clipboard

"There is already a grid definition with the name 'MVCGridDefinitionTable'."

Open benjduartejr opened this issue 9 years ago • 4 comments

error using mvc grid...pls help. thank you

benjduartejr avatar May 04 '16 03:05 benjduartejr

I am having the same issue. Whatever I change the name to in MVCGridConfig.cs, it fails in RegisterGrids() on the MVCGridDefinitionTable.Add() call, giving me an error saying that "there is already a grid definition with the name". Have you resolved this yet?

dterracino avatar Jun 06 '16 20:06 dterracino

Hello, I had the same error. Just remove line "MVCGridConfig.RegisterGrids ();" of the Global.asax This solved the problem.

dgarridor avatar Jun 13 '16 22:06 dgarridor

Make sure that MVCGridDefinitionTable.Add() is used once through the application life cycle .If RegisterGrids() is called in Global.asax and you also have [assembly: WebActivatorEx.PreApplicationStartMethod(typeof(ATCDWebUI.MVCGridConfig), "RegisterGrids")] on top of MVCGridConfig.cs then you will get this error.

shefaliA avatar Jul 17 '16 03:07 shefaliA

The problem started happening after I renamed the project and folders. Deleting /bin fixed this issue for me.

fredbainbridge avatar Mar 09 '18 20:03 fredbainbridge