Re: Fatal Execution Engine Error while creating a DataTable on a new Windows 2003 Server
From: John Lau (johnlau_at_olc.ubc.ca)
Date: 01/03/05
- Next message: Leo: "GAC Question"
- Previous message: Alvin Bruney [MVP]: "Re: How much is Bill worth right now?"
- In reply to: Sahil Malik: "Re: Fatal Execution Engine Error while creating a DataTable on a new Windows 2003 Server"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 2 Jan 2005 17:40:00 -0800
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
"Sahil Malik" <contactmethrumyblog@nospam.com> wrote in message
news:ucOCr5B8EHA.3416@TK2MSFTNGP09.phx.gbl...
> Does this code work in console app?
> Datatable dt = new DataTable() ; <---
>
> If it does, then use this trick
> http://dotnetjunkies.com/WebLog/sahilmalik/archive/2004/12/06/35295.aspx
>
> Might help you diagnose your problem a little bit.
>
> - Sahil Malik
> http://dotnetjunkies.com/weblog/sahilmalik
>
>
> "John Lau" <johnlau@olc.ubc.ca> wrote in message
> news:uX9YKJ87EHA.208@TK2MSFTNGP12.phx.gbl...
>> 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!
>>
>
>
- Next message: Leo: "GAC Question"
- Previous message: Alvin Bruney [MVP]: "Re: How much is Bill worth right now?"
- In reply to: Sahil Malik: "Re: Fatal Execution Engine Error while creating a DataTable on a new Windows 2003 Server"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|