I'm trying to web deployment an application which
utilizes .NET Remoting and I'm getting an
intermittent 'System.ExecutionEngineException' exception
(top-level call stack shown below). The exception does
not consistently appear in the same location; as a result
I feel that it may be a CLR bug. I believe it has
something to do with web-based deployment because I can
directly run the application connected to the same .NET
Remoting server and everything works great. I also tried
web-based deployment of the entire application which also
worked without any problem (i.e. No .NET Remoting but web
deployed). I do not believe it's a security problem
because I gave the application FullTrust permission using
the .NET Configuration and it runs correctly when web
deployed without .NET Remoting. I have no idea how to fix
this problem, can someone on the CLR or .NET Remoting
teams please help me out? Has anyone else tried to web
deploy the client-side of a .NET Remoting application?
Thanks for any help,
Bryan
CARTER Inc.
Part of the call stack (using .NET 1.1):
mscorlib.dll!
System.Security.CodeAccessSecurityEngine.PreCheck
(System.Security.CodeAccessPermission permObj,
System.Security.PermissionSet permSetObj, int capOrSet,
System.Threading.StackCrawlMark stackMark,
System.Security.PermissionType permType) + 0x28 bytes
mscorlib.dll!
System.Security.CodeAccessSecurityEngine.Check
(System.Security.CodeAccessPermission cap,
System.Threading.StackCrawlMark stackMark) + 0x1d bytes
mscorlib.dll!
System.Security.CodeAccessPermission.Demand() + 0x3f bytes
system.windows.forms.dll!
System.Windows.Forms.Control.get_Parent() + 0x20 bytes
Jay B. Harlow [MVP - Outlook] - 09 Sep 2003 20:18 GMT
Bryan,
Are you using any P/Invoke in your code? (DllImport attributes, VB.NET
Declare statements)?
Normally I see ExecutionEngineException, when I am using P/Invoke to access
a Win32 API and did not get the parameters defined properly.
Hope this helps
Jay
> I'm trying to web deployment an application which
> utilizes .NET Remoting and I'm getting an
[quoted text clipped - 36 lines]
> system.windows.forms.dll!
> System.Windows.Forms.Control.get_Parent() + 0x20 bytes
Bryan - 09 Sep 2003 21:54 GMT
I don't believe so (everything is .NET C#), but I do use
a commercial product which might. If it was a P/Invoke or
DllImport problem wouldn't I always see that problem? The
Exception only appears when I'm running using web-
deployment and .NET Remoting. The call-stack also
indicates that's it's got something to do with the
CodeAccessSecurityEngine. It also import to note that the
exception in may different locations and always has the
same top-level stack. Any other ides?
thanks,
Bryan
CARTER Inc.
>-----Original Message-----
>Bryan,
[quoted text clipped - 49 lines]
>
>.
Jay B. Harlow [MVP - Outlook] - 09 Sep 2003 22:25 GMT
Bryan,
Unfortunately that was the only idea that I had.
Jay
> I don't believe so (everything is .NET C#), but I do use
> a commercial product which might. If it was a P/Invoke or
[quoted text clipped - 74 lines]
> >
> >.
Gang Peng[MSFT] - 09 Sep 2003 22:44 GMT
ExecutionEngineException normally means an Access Violation in the
unmanaged code.
So the managed callstack is not that helpful to tell what the problem it.
You can try to run the application under windbg, which is free debugger
available at:
http://www.microsoft.com/whdc/ddk/debugging/default.mspx
You can get the callstack and see why the AV happens.
If it is an AV inside CLR, you can post the call stack and we can see if it
is a known problem.
Gang Peng
[MS]
Dave - 12 Sep 2003 23:43 GMT
I ran into same problem; when I called Microsoft Support they provided me a
fix that will be available in the next Service Pack.
If you want to get the fix early, contact them (
http://support.microsoft.com/default.aspx?scid=fh;en-us;Prodoffer02a ) and
ask them about fix for KB article 825709 ..
> I'm trying to web deployment an application which
> utilizes .NET Remoting and I'm getting an
[quoted text clipped - 36 lines]
> system.windows.forms.dll!
> System.Windows.Forms.Control.get_Parent() + 0x20 bytes