Do you call it from MTA application? If yes - use STA.
Otherwise, post code snippet. Could be something in the code.
HTH
Alex
"AlexS" <salexru2000NO@SPAMsympaticoPLEASE.ca> schrieb:
> Do you call it from MTA application? If yes - use STA.
> Otherwise, post code snippet. Could be something in the code.
In other words: Make sure, the 'STAThread' attribute is specified for the
'void Main'.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/
Leon Friesema - 29 Nov 2004 09:31 GMT
>"AlexS" <salexru2000NO@SPAMsympaticoPLEASE.ca> schrieb:
>> Do you call it from MTA application? If yes - use STA.
>> Otherwise, post code snippet. Could be something in the code.
>
>In other words: Make sure, the 'STAThread' attribute is specified for the
>'void Main'.
Well, that seems to do the trick.
Thanks!
Leon.