all groups > dotnet clr > december 2003 >
You're in the

dotnet clr

group:

ExecutionEngineException hosting in IE


ExecutionEngineException hosting in IE Bill Dines
12/12/2003 8:33:55 AM
dotnet clr:
I'm having some problems running an application hosted
within IE that do not appear to occur when running
normally.

I start the application from another managed app with the
following code:

System.Diagnostics.ProcessStartInfo i = new
System.Diagnostics.ProcessStartInfo("IExplore.exe");
i.Arguments = "http://webserver/MyApp/MyApp.exe";
i.WindowStyle =
System.Diagnostics.ProcessWindowStyle.Hidden;
System.Diagnostics.Process.Start(i);

The application starts normally and runs for a while
before crashing. When the process is not being debugged
I get a "Setup Error" dialog with the following message:

Failed to load resources from resource file
Please check your setup.

After clicking OK, the application ends.

When I'm debugging the process I get an
ExecutionEngineException occuring executing the following
code:

Microsoft.Win32.RegistryKey key =
CreateOrOpenCurrentUserKey(SETTINGS_KEY, false);

return key.GetValue("DisplayName",string.Empty).ToString
();

the application cannot continue after this exception.

The above code has already been successfully executed
several times before the error occurs.

I really need to be able to deploy this app from a web
server, so any help would be much appreciated

ta

Bill
ExecutionEngineException hosting in IE More info Bill Dines
12/15/2003 6:56:08 AM
I've removed the code where the error was occurring, and
the error now just happens further on in the application
(calling InitializeComponent() from a form's constructor)
so I'm not sure the error has anything to do with the
code that's executing...

Please help!!

B
[quoted text, click to view]
AddThis Social Bookmark Button