question about c# asp.net
Posted
by daddyCool
on Stack Overflow
See other posts from Stack Overflow
or by daddyCool
Published on 2010-05-05T11:52:58Z
Indexed on
2010/05/05
11:58 UTC
Read the original article
Hit count: 332
in order to use the FolderBrowserDialog control in asp.net, i had to add a reference to System.Windows.Forms in my project.
i wrote this code:
FolderBrowserDialog f = new FolderBrowserDialog();
f.ShowDialog();
but this error occured:
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.
any help?
© Stack Overflow or respective owner