Custom tool error Failed to generate code

Dr TJ picture Dr TJ · Oct 30, 2010 · Viewed 9.2k times · Source

Why this error is appearing? I was just setting some default values in a dataset designer... its second time that this is appearing...
"Custom tool error Failed to generate code. Exception of type 'System.OutOfMemoryException' was thrown"

Answer

Dr TJ picture Dr TJ · Nov 4, 2010

I just found a way to regenerate codes.
In Solution Explorer right click on your DataSet and click Run Custom Tool.
I do it after closing and reopening VS2010...
Hope this help you, if you faced the problem...
good luck