에 대한 질문은 내 프로젝트의 System.Windows.Forms에 대한 참조를 추가해야했습니다. asp.net에서 FolderBrowserDialog 컨트롤을 사용하기 위해 C# asp.net
는이 코드 작성 :FolderBrowserDialog f = new FolderBrowserDialog();
f.ShowDialog();
을하지만,이 오류가 발생했습니다 :
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.
어떤 도움?
asp.net 앱에서 WinForms 컨트롤을 사용해서는 안됩니다. 우리가하는 일을 더 많이 보여줄 수있었습니다. –
무엇을하려고합니까? – SLaks
나는 시스템의 관리자가 사용자 파일이 (서버에) 저장되어야하는 경로를 찾도록하고 싶다. – scatman