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


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!
>>
>
>



Relevant Pages

  • Re: Add New Users
    ... this is a permissions issue. ... permissions as possible on the AD server. ... >This sample code works perfectly in Console App. ... > Dim grp As DirectoryEntry ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: SharePoint
    ... in a console app, it must be something to do with web priviledges. ... I hope other SharePoint actions aren't as convoluted... ... the sid used internally may have been somewhat mangled. ... if you have other sharepoint server ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Console application to become COM server?
    ... Microsoft MVP, MCSD ... > and turn your console app into a COM server. ... > the client asks, waits again, works again, ... ...
    (microsoft.public.vc.atl)
  • Re: Console application to become COM server?
    ... what would you recommend a quick way to go about it? ... modifications and turn your console app into a COM server. ... the server starts, waits for the client to call ...
    (microsoft.public.vc.atl)
  • RE: SharePoint
    ... a Windows 2003 server with an admin account running it, ... sharepoint admin permissions that I shouldn't be running into this, ... this without error (like it runs in the console app)? ... Dim profileManager As New UserProfileManager ...
    (microsoft.public.sharepoint.portalserver.development)