Fatal Execution Engine Error while creating a DataTable on a new Windows 2003 Server

J

John Lau

Hello,

I am moving a working C# program from one of our Windows 2003 Server to a
new Windows Server 2003 that we just configured. The framework 1.1 is
installed on both servers.

I've traced the error to the following statement:

objDataTable = new DataTable();

The error is:

Fatal Execution Engine Error (0x7927e0af).
Application has generated an exception that could not be handled.

I am using the Exception Management Application Block, but the try catch
block is not catching the error.

A DataTable? How can this be possible? Is my framework corrupted? Any
help would be greatly appreciated.

Regards,
John

P.S. Happy New Year everybody!
 
J

John Lau

Hello Sahil,

Thank you for your suggestion. My app is already a console app. Even if it
was not a console app, and your suggestion worked, I cannot simply leave my
server in a state where my app cannot create a DataTable! The ability to
create a DataTable is too basic to use a workaround.

I've found my problem. For those who may be interested, it was a permission
problem. There is code in the app to impersonate a user account on the
server. Before the impersonation, I can create a DataTable. After the
impersonation, I cannot. I was able to fix the problem by adding the user
account to the Administrators group. The user cannot remain part of the
admin group, but at least this tells me the problem is a permissions issue.
Why a user needs any permissions in order to create a DataTable is beyond
me. In any case, I'm just happy that I found it.

Regards,
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top