locked
Folder browser dialog not working RRS feed

  • Question

  • User-638392327 posted

    Hi ,

    I am using folder browser dialog for my web application. The control works fine when i developed in my local machine. but after deploying the website in another server the folder browser component doesnt open the dialog.

    I am running my application pool with "Local System" credentials.

    I tried setting the STAThread to the method from where i am calling the folder browse component,but still it doesnt show the dialog.

    below is my code

    [STAThread]
            private void ShowFolderBrowser()
            {
                Thread newThread = new Thread(new ThreadStart(ThreadMethod));
                newThread.SetApartmentState(ApartmentState.STA);
                newThread.Start();    

                       }
            void ThreadMethod()
            {
                FolderBrowser Browser = new FolderBrowser();
                Browser.ShowDialog();
                txtFolderPath.Text = Browser.DirectoryPath;
            }

    Please help me to resolve the issue.

     

    Thanks

    RMAKR

    Friday, February 25, 2011 8:48 AM

All replies

  • User197322208 posted
    think about WHERE you show the browser: on the client or on the server(Agreed, on your PC is the same...)
    Friday, February 25, 2011 3:53 PM