Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. The main Issue on Browse folder in Web application

The main Issue on Browse folder in Web application

Scheduled Pinned Locked Moved ASP.NET
helpsysadmin
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vishnu Narayan Mishra
    wrote on last edited by
    #1

    Hello everyone I want to phrase my problem in a new way that the following code works well on the same system on debugging mode of the project but If I want to copy the url of the project and paste into new browser window without debugging mode, then the problem arises that Its shows progressing the browse folder dialog box does not appears any how. So If any one have the solution of my problem please reply me soon.... I written earlier on this topic shown below... --------------- I am facing a problem of browse folder. Its working fine on loacalhost but when I upload my project into my client's server, the browse folder dialog box does not appears any how. It giving no error but browser progress bar shows progressing.... Is the reason behind this is I have used Shell32.dll for browse folder.. Or there is another way of implementing browse folder functionality on my project.. Thanks following is mine code ------------------------------------------------------- Using shell32; protected void AddFolder_Click(object sender, EventArgs e) { string strPath = ""; string strCaption = "Browse a directory for uploading Album."; //DialogResult dlgResult; string dlgResult = ""; Shell32.ShellClass shl = new Shell32.ShellClass(); Shell32.Folder2 fld = (Shell32.Folder2)shl.BrowseForFolder(0, strCaption, 0, System.Reflection.Missing.Value); if (fld == null) { dlgResult = "Cancel";//DialogResult.Cancel; } else { strPath = fld.Self.Path; lstboxFile.Items.Add(strPath); //strPath = "albums\\MSN Home Page"; lstboxFile.Items.Add(strPath); BaydonConstants.hif1.Add(strPath); dlgResult = "Ok";//DialogResult.OK; } } ------------------------------------------------------- Vishnu Narayan Mishra Software Engineer

    modified on Monday, December 17, 2007 7:16:26 AM

    B M 2 Replies Last reply
    0
    • V Vishnu Narayan Mishra

      Hello everyone I want to phrase my problem in a new way that the following code works well on the same system on debugging mode of the project but If I want to copy the url of the project and paste into new browser window without debugging mode, then the problem arises that Its shows progressing the browse folder dialog box does not appears any how. So If any one have the solution of my problem please reply me soon.... I written earlier on this topic shown below... --------------- I am facing a problem of browse folder. Its working fine on loacalhost but when I upload my project into my client's server, the browse folder dialog box does not appears any how. It giving no error but browser progress bar shows progressing.... Is the reason behind this is I have used Shell32.dll for browse folder.. Or there is another way of implementing browse folder functionality on my project.. Thanks following is mine code ------------------------------------------------------- Using shell32; protected void AddFolder_Click(object sender, EventArgs e) { string strPath = ""; string strCaption = "Browse a directory for uploading Album."; //DialogResult dlgResult; string dlgResult = ""; Shell32.ShellClass shl = new Shell32.ShellClass(); Shell32.Folder2 fld = (Shell32.Folder2)shl.BrowseForFolder(0, strCaption, 0, System.Reflection.Missing.Value); if (fld == null) { dlgResult = "Cancel";//DialogResult.Cancel; } else { strPath = fld.Self.Path; lstboxFile.Items.Add(strPath); //strPath = "albums\\MSN Home Page"; lstboxFile.Items.Add(strPath); BaydonConstants.hif1.Add(strPath); dlgResult = "Ok";//DialogResult.OK; } } ------------------------------------------------------- Vishnu Narayan Mishra Software Engineer

      modified on Monday, December 17, 2007 7:16:26 AM

      B Offline
      B Offline
      Bassam Saoud
      wrote on last edited by
      #2

      This could be a permission issue related to your client's hosting company

      V 1 Reply Last reply
      0
      • B Bassam Saoud

        This could be a permission issue related to your client's hosting company

        V Offline
        V Offline
        Vishnu Narayan Mishra
        wrote on last edited by
        #3

        What are those permission security issues..?? How can I Trace out problem.??

        Vishnu Narayan Mishra Software Engineer

        B 1 Reply Last reply
        0
        • V Vishnu Narayan Mishra

          What are those permission security issues..?? How can I Trace out problem.??

          Vishnu Narayan Mishra Software Engineer

          B Offline
          B Offline
          Bassam Saoud
          wrote on last edited by
          #4

          check this out : running-asp-net-in-a-shared-hosting-environment.aspx[^] There are lots of resources out there, just google.

          M 1 Reply Last reply
          0
          • V Vishnu Narayan Mishra

            Hello everyone I want to phrase my problem in a new way that the following code works well on the same system on debugging mode of the project but If I want to copy the url of the project and paste into new browser window without debugging mode, then the problem arises that Its shows progressing the browse folder dialog box does not appears any how. So If any one have the solution of my problem please reply me soon.... I written earlier on this topic shown below... --------------- I am facing a problem of browse folder. Its working fine on loacalhost but when I upload my project into my client's server, the browse folder dialog box does not appears any how. It giving no error but browser progress bar shows progressing.... Is the reason behind this is I have used Shell32.dll for browse folder.. Or there is another way of implementing browse folder functionality on my project.. Thanks following is mine code ------------------------------------------------------- Using shell32; protected void AddFolder_Click(object sender, EventArgs e) { string strPath = ""; string strCaption = "Browse a directory for uploading Album."; //DialogResult dlgResult; string dlgResult = ""; Shell32.ShellClass shl = new Shell32.ShellClass(); Shell32.Folder2 fld = (Shell32.Folder2)shl.BrowseForFolder(0, strCaption, 0, System.Reflection.Missing.Value); if (fld == null) { dlgResult = "Cancel";//DialogResult.Cancel; } else { strPath = fld.Self.Path; lstboxFile.Items.Add(strPath); //strPath = "albums\\MSN Home Page"; lstboxFile.Items.Add(strPath); BaydonConstants.hif1.Add(strPath); dlgResult = "Ok";//DialogResult.OK; } } ------------------------------------------------------- Vishnu Narayan Mishra Software Engineer

            modified on Monday, December 17, 2007 7:16:26 AM

            M Offline
            M Offline
            Michael Sync
            wrote on last edited by
            #5

            1. As Bassam Saoud suggested, your hosting might not give the permission to do that. 2. You need to add your website as the trusted site in your IE even your hosting give you the permission... 3. I don't think it's good idea to use Shell32 dll in web application.

            Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

            1 Reply Last reply
            0
            • B Bassam Saoud

              check this out : running-asp-net-in-a-shared-hosting-environment.aspx[^] There are lots of resources out there, just google.

              M Offline
              M Offline
              Michael Sync
              wrote on last edited by
              #6

              Thanks a lot for sharing the nice article. I have just read it. He mentioned about how to change ASP.NET to run under medium trust. but I think the most of ASP.NET hosting doesn't change like that, isn't it? I had some experiences in using DiscountASP.NET last year.. I'm able to access the Access database using Oledb.

              WebPermission is restricted. This means your application can only communicate with an address or range of addresses that you define in the element.

              Do you have any idea about this line? I'm not very clear with this. Thanks again for sharing the interesting link.

              Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

              B 1 Reply Last reply
              0
              • M Michael Sync

                Thanks a lot for sharing the nice article. I have just read it. He mentioned about how to change ASP.NET to run under medium trust. but I think the most of ASP.NET hosting doesn't change like that, isn't it? I had some experiences in using DiscountASP.NET last year.. I'm able to access the Access database using Oledb.

                WebPermission is restricted. This means your application can only communicate with an address or range of addresses that you define in the element.

                Do you have any idea about this line? I'm not very clear with this. Thanks again for sharing the interesting link.

                Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

                B Offline
                B Offline
                Bassam Saoud
                wrote on last edited by
                #7

                I am afraid my experience with hosting is very limited, The company I work in host their own solutions, so this is never a problem.but AFAIK with Meduim trust you can only connect to SQL Server but I am not sure to be honest.

                M 1 Reply Last reply
                0
                • B Bassam Saoud

                  I am afraid my experience with hosting is very limited, The company I work in host their own solutions, so this is never a problem.but AFAIK with Meduim trust you can only connect to SQL Server but I am not sure to be honest.

                  M Offline
                  M Offline
                  Michael Sync
                  wrote on last edited by
                  #8

                  thanks. man.

                  Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups