Assembly.LoadFrom(...) throw exception _HResult = -2146232800

  • Thread starter Thread starter gc
  • Start date Start date
G

gc

Dear ALL,

upgrading from v1.3 to v2.2
on a pocket pc 2003 se
calling the Assembly.LoadFrom(...) throw an exception with _HResult =
-2146232800

Please advice
 
Upgrading from what to what? .NET Compact Framework has no version 1.3 or
2.2, so tell us what you're actually talking about and give us more than
just the name of the call you're making. Clearly you're doing something
wrong and we aren't going to be able to tell you what if you won't tell us
what you're doing.

Paul T.
 
Upgrading from what to what? .NET Compact Framework has no version 1.3 or
2.2, so tell us what you're actually talking about and give us more than
just the name of the call you're making. Clearly you're doing something
wrong and we aren't going to be able to tell you what if you won't tell us
what you're doing.

Paul T.








- Show quoted text -

thanks for the response

upgrading from cf 1 sp3 to 2 sp2, it's clear now?

the project upgraded with the wizard in the visual studio

before the upgrading EVERYTHING worked perfect, so we are NOT
"Clearly doing something wrong"

thanks
 
And you're loading what assembly? Built how? Using any external native DLL
calls or requiring anything? And the assembly is where on the device?

Paul T.
 
thanks for the response,

if you know AutoUpdater you have the answers to your questions.

just to remind you

Assembly a = null;
AssemblyName name = new AssemblyName();

// If assembly does not exists, presume the version to be 0.0.0
name.Version = new Version("0.0.0");

// Try obtaining assembly version
string sPath = xmlConfig["updateinfo"]
["checkassemblydir"].GetAttribute("name") + @"\" +
xmlConfig["updateinfo"]["checkassembly"].GetAttribute("name");
try
{
if ( File.Exists(sPath) )
{
a = Assembly.LoadFrom(sPath);
name = a.GetName();
}
}
 
And just before Assembly.LoadFrom is called, what's the value of sPath?

Paul T.
 
That's not a full path. Put \\ in front of it or make suitable adjustments
and it might work better. Other than that, nothing jumps to mind.

Paul T.
 
Back
Top