.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to access Bin Folder of Subdirectory?

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :ASP.Net
Hi,        I have one my WebApplication called "WEB1" in which I have App_Code folder and Bin Folder and I have one more webApplication called "WEB2" in which also Bin and App_Code Folder is exist.Now my requirement is to Merge WEB2 Project into WEB1 with creating one subDirectory called "SUBWEB2" , While rebuilding my solution I am getting error:The type or namespace name 'MyDummyBinDLL' could not be found (are you missing a using directive or an assembly reference?MyDummyBinDLL is presented under "SUBWEB2" sub directory now I have two Bin Folder one is WEB1 Root directory and second Bin is under SUBWEB2, I can not move my SUBWEB2 Bin folder DLL into root Bin folder,So now my problem is how can I access my SubDirectory Bin Folder do I need to rename my Bin Folder, if I will renamed it do I need any configuration in Web.Config.Please if any one have any code or solution please share with me.Thanks & RegardsVikrant....

View Complete Post

More Related Resource Links

Access Classes in an aspx page that is in folder in asp.net


I have classes in App_Code:
Connection.cs, ClientData.cs ....

I have a folder Authenticated within it have an aspx page Client.aspx

How do I access the page through Client.aspx ClientData.cs the class, because there is a mistake for me to define the class as I do, please help me!

Access denied to folder in ASP.NET project either though I have granted all users full permissions !



i have made a very simple file upload app, that i want users to be able to upload images to a folder on my server, well localhost for the time being Stick out tongue

here is the simple upload code...

        protected void ButtonRegisterDetails_Click(object sender, EventArgs e) 
            // display properties of the uploaded file 

How to restrict folder access to users and theirs only


Hi. I created a web application using "Forms Authentication". 

There is a folder name "uploads", and it creates subfolders as username when they register. Web application stores users' files and images under their folder ("uploads/username")

I tried to find a way to restrict users to download and upload files to their folder only and couldn't find a good one. 

Then I came up with this idea that stores "web.config" file each time user registers and the web.config should look like below. Username will be changed dynamically according to username.

This method actually works but I am little worried if this is a good practice as far as performance wise. Because it'll create web.config files as many as users and there might be other holes that I don't recognize. 

I appreciate any advice or better suggestion for this problem.

--------web.config in "/Root/uploads/username directory"--------------

<location path="HRpages">

how to access items inside Sharepoint List Folder

hi all i have a list with structure as below  QuckList(List)                A(Folder)                       1(List Items)                       2(List Items)                B(Folder)                        1(List Items)   i have to display the List items inside the folder in drop down   i am able to access the folder as Splistitem, but not able to access the items inside the folder   any ideas how to access the items inside the List Folder   ragava_28

Folder inside the List shows Access Denied when try to open using Manage Content Structure

Hi All, We are facing this issue in one of our site, when accessing the folder from Manage content structure. Folder is inside a list which uses a folder content type. When we try to open this folder use manage content and structure it throws access denied. any idea how we can check this as we the permissions are properly inherited and all the folders are checked in . Please update what else we can check.   Thanks, Jasjeet SIngh

Restrict folder access in Report Server

Hi There, I am creating folders each of our end users in Report Server, who upload their reports to their respective folder. I want to allow users to see and access only their folders and they should not be able to see others folders available on the Report Server, it is possible? If Yes, how do I do it? Thanks for your help. Regards, Suresh

Access is denied when creating Alert me on a folder level permission is this a known bug?

Hi, A user is getting an Access Denied error when creating an Alert Me on a folder level. The security set to the user is, Read access to the list but without permission to Create an alert, and he has a Contributor access to the folder. The security was perfect, he can't create an alert to a list level, but Alert Me is available on a folder level. When the user clicks on the Alert Me on a specific folder it will bring him to the alert configuration page, BUT, he would get an Access Denied error when hitting the OK(Save) button. Is this a known issue in Item/folder level security? The fact that Sharepoint allows user to see Alert Me function I assume that it should function correctly, but this is not the case. Hope to hear from you guys! TIA!  

restrict access for a single group to a single folder in a list


Hello and Goodmorning,

I have one list, organized with 3 folders.

I can create a group(s), add user(s) to this group(s). 

Now i need to assign access like this:  group1 can only see and 'readonly' folder1, group2 can only see and 'readonly' folder2, group3 can only see and 'readonly'...folder3!

Im sure this is possible, from similar non-programming posts on the forum.

I have been looking into SPRoleAssignment and SPRoleDefinition to define Group permissions but its the mapping them to specific folders that I am missing...

Enjoy your tea.







Restricting access to one folder


I am a Sharepoint newbie and have set up a new site with a Shared Document Library. I need to restrict access to one folder. I have broke inheritance and to test, only allowed myself access to the folder. I log onto the site as my test user and he can browse and open the documents in the folder. He is a 'domain user' and is a member of no groups.

When I 'check permissions' on the folder I get this :

Permission levels given to bill2 (testdomain\bill2)


The following factors also affect the level of access for bill2 (testdomain\bill2)

View Web Analytics Data
View reports on Web site usage.

Browse Directories
Enumerate files and folders in a Web site using SharePoint Designer and Web DAV interfaces.

View Items
View items in lists and documents in document libraries.

View Pages
View pages in a Web site.

Enumerate Permissions
Enumerate permissions on the Web site, list, folder, document, or list item.

Open Items
View the source of documents with server-side file handlers.

View Versions
View past versions of a list item or document.


TreeView in Web Part required webctrl_client folder to have atlease read access for all users


HI All

I am using the TreeView control from the Microsoft.Web.UI.WebControls Namespace to render a treeview in a SharePoint web part. The tree nodes images do not appear (text is rendered) properly until i grant atleast read permissions to Authenticated Users on the webctrl_client folder which has to be places in the web application's virtual directory.

Is there some way I can avoid granting the read permission on that folder to all authenticated users.

If i go ahead with the approach of giving the authenticated users rad permission, will a user loggedin via FBA get the read permission

Thanks in Advance

IIS 7 & W2K8 - Access to path \\remotewinXP\folder\ is denied. No error on IIS 6 & W2K3 hosting. Any



Appreciate if someone could point to the right answer on how to overcome this error. By clicking the Button3, the ExportedFilePDF.pdf should be copied to the \\presario remote machine. So far, no security issue on the same configuration in IIS6 + W2K3.

  Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
            File.Copy("C:\BackOffice\Export\ExportedFilePDF.pdf", "\\presario\FaxServer\Outbox\ExportedFilePDF.pdf", True)
        Catch ex As Exception
            Response.Write("Error copying file | " & ex.ToString)
        End Try

    End Sub

 The browser will generate this error message when the Button3 is clicked.

Error copying file | System.UnauthorizedAccessException: Access to the path '\\presario\FaxServer\Outbox\ExportedFilePDF.pdf' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) at Test5.Button3_Click(Objec

Image Upload Fails- access denied to folder


i am trying to use a fileopen dialog to select an image and copy it to my project folder .

i have used this code to do that.

OpenFileDialog ofd = new OpenFileDialog();
      ofd.Filter = "All Image Files| *.*";
          imgImagePath.Source=new BitmapImage(new Uri(ofd.FileName,UriKind.RelativeOrAbsolute));
          FileStream fs = new FileStream(ofd.FileName,FileMode.Open,FileAccess.Read);
          FileStream copyfs = new FileStream(@"../../Themes/Images", FileMode.CreateNew, FileAccess.Write);

The Error i am gettin is The so and so folder access is denied.

I have check that the folder is not read only. and its in d:

Any suggestions?


CRM2011 SharePoint document folder controlling access with claims


We would like to use CRM2011 and along with the document repository functionality of SharePoint. I'm currently using the on-premise install of CRM2011 beta and SharePoint Foundation. One of the requirements we have is for cases to be visible only to specific users, e.g. a team, specific user or some with whom the case is shared, who are managing the case. Unfortunately, this implies that access to documents in SharePoint should only be visible to those same individuals. Therefore other's should not be able to view, browse or search for and successfully find documents for cases they are not managing. 

I understand that all documents in SharePoint will be accessible in SharePoint as defined by SharePoint's security infrastructure.


Help with authorization in web.config to deny access to files in a folder



I have a web site that has a folder called Files that contains PDF files.  These PDF files should not be accessible to people who have not signed in to the web site. 

The login URL is www.mysite.com/Account/Login.aspx and the register URL is www.mysite.com/Account/Register.aspx. 

Once the person is signed in they can go to www.mysite.com/Documents/Documents.aspx.  This page has a gridview that lists the PDF files in the Files folder with a link to them.  If the person is not signed in, he/she can't view this Documents.aspx page.  However, if anyone has the URL to the PDF files, they can view those files without having to sign in.

How can I prevent someone from accessing the PDF files in this folder?

The site is hosted on GoDaddy using IIS 6.0.

Thanks in advance.

Read Access Files from Folder with SSIS

Can some body suggest how to read access files from folder location and insert the data from access Db table to Sql 2008

Database create error due to folder access right


I have SQL Server  and had that  problem Below .

When i try to create database having different folder it is not working

This directory works:
C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data

Anything else like

C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\OtherFolder

generated  error.


CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file

CREATE DATABASE failed. Some file names listed could not be created. Check related errors.


Any body has idea how to resolve this.

Access to single folder in a list


I want to give a user or group read access to a folder and not be able to view or read any other folder in a site collection. How do i do this?

When i grant the user read permission to this single library he is able to read all the other libraries in this site collection

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend