MarshalDirectiveEx exception: "Excessively long string"

  • Thread starter Thread starter aimlab08
  • Start date Start date
A

aimlab08

We have a window application, which is written in .net 2003 (C#). One
of our users installed our latest version yesterday. When he tried to
open the application, he get an unhandling exception:
System.Runtime.InteropService.MarshalDirectiveEx: Excessively long
string.

We moved back to install the previous version, again he got the same
error, but the previous version work for him before. Now the user can
not run our program from his machine at all.

The application is running fine for other users.

Any idea how to solve this issue?

Thanks in advance.

Linda
 
Pete,

The previous version worked fine for the same machine until we
installed the new version. Now the previous version also stop working.
Also other users do not have this issue. I did a internet search, some
one posted the same question before. But I did not see any solution
for this.

Maybe some window patch we should install?

Linda
 
Is it possible that installing a new version of your app caused a
prerequisite to be installed (SP for .NET, or something similar?) which has
subtly altered the way the framework is handling long strings in interop
calls?

Judging by the error message, it looks like this might be the result of an
interop call, maybe a WinAPI call of some sort? If so, are you sure you
have all your API signatures correctly declared and that you're passing in
the right data types?
 
Back
Top