E
Erik
I have an app being deployed via no-touch deployment.
Within the app I do some simple clipboard operations
using the .Net clipboard object. The app runs fine after
normal deployment, but with no-touch, I get the following
error when trying to set clipboard data:
"The current thread must be set to Single Thread
Apartment (STA) mode before OLE calls can be made.
Ensure you Main function has STAThread Attribute marked
on it."
My app is set to STA (as all WinForms apps are by
default). Anyone know another way around this?
Thanks,
Erik
Within the app I do some simple clipboard operations
using the .Net clipboard object. The app runs fine after
normal deployment, but with no-touch, I get the following
error when trying to set clipboard data:
"The current thread must be set to Single Thread
Apartment (STA) mode before OLE calls can be made.
Ensure you Main function has STAThread Attribute marked
on it."
My app is set to STA (as all WinForms apps are by
default). Anyone know another way around this?
Thanks,
Erik