External Component has thrown an exception

C

Charles

Hi,

We have a vb.net 2005 application with Framwork 2.0. It was migrated
from a vb.net 2003 application.

I am launching my application through Citrix. I do not get the
"External Component has thrown an exception" error all the time, I can
go 1-2 days without it, then it starts for reasons I dont know to give
this error when I try to open various forms. It is not always the same
forms that trigger the errors...I can not see a link between the forms
that trigger the error and those that don't.

If I launch my application without going through Citrix, it works fine
and i never get the error.

Also, my application by default launches in French. if the user
language preference is English, the us_EN ressource files are loaded
instead. and it seems that it is only the users that are in English
that have that error.

Here is an example of the error we are getting :

System.Runtime.InteropServices.SEHException: External component has
thrown an exception.
at System.Reflection.Assembly.GetResource(String resourceName,
UInt64& length, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
at System.Reflection.Assembly.GetManifestResourceStream(String
name, StackCrawlMark& stackMark, Boolean skipSecurityCheck)
at System.Reflection.Assembly.GetManifestResourceStream(Type type,
String name, Boolean skipSecurityCheck, StackCrawlMark& stackMark)
at
System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
at
System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo
culture, ResourceSet& resourceSet)
at
System.ComponentModel.ComponentResourceManager.ApplyResources(Object
value, String objectName, CultureInfo culture)
at
System.ComponentModel.ComponentResourceManager.ApplyResources(Object
value, String objectName)
at DAM.BaseClients.FrmUsrPenseBetes.InitializeComponent()


Sometimes, we will get this error :

System.BadImageFormatException: Bad IL format.
at DAM.BaseClients.MetSuivi.SelCRABCByComAndMonth(Decimal
pRessourceId, String pPeriode)
at DAM.BaseClients.FrmCRASaisie.LoadData()


And again, this only happens while in Citrix, and not if we launch the
application directly from a network drive.


To temporarily solve the problem, we will disconnect all users
currently using the application on the Citrix server, then once
everyone is disconnected, the problem seems to go away. The next time
a user logs on, the problem wont happen. Until maybe 1-2 days after
that where something happens (we dont know what causes this), and then
we will get the error again.

Anyone able to help us? It looks like the ressource files are either
getting corrupted or locked and thats why forms are not able to
launch. But why is it doing this?

Thanks for your help,

Charles
 

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