Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process.
Posted
Comments
Sandeep Mewara 19-Sep-10 7:02am    
Better to Google for the exception instead of posting it here without any detail! :doh:
Sandeep Mewara 19-Sep-10 7:13am    
Please do't post the same question multiple times.
further, you can always use 'Improve Question' link to update your question.

Your question write now does not make much of a sense, please edit it and add more details.
ArtificerGM 24-May-11 15:08pm    
What question, I see no question... please give more details rakhi

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900