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

Top 5 Contributors of the Month
Post New Web Links

Shared Folder request handle

Posted By:      Posted Date: September 09, 2010    Points: 0   Category :.NET Framework
Hi All, I am just wondering if we can handle the request that is received to a shared location.? I am trying to find all the user names who access that particular folder. For Example: Folder Name, Time, User Name \\machine\folder\, 8-Aug-2010 13:00, User1 \\machine\folder2\, 8-Aug-2010 14:00, User2 \\machine\folder3\, 8-Aug-2010 15:00, User3 Is the above format of achivable using .NET.? Thanks in Advance, Chaks.

View Complete Post

More Related Resource Links

Handle: maximum request length exceeded


When uploading a file over 4mb I receive error: maximum request length exceeded.

This is fine - I don't want users to upload files any larger.

But, anyone know how to handle the error in a clean way?

It appears I can't avoid it with an IF statement or Try/Catch block.



How To Get The Unc Share Name Of A Given Folder (If Shared)?



How To Get The Unc Share Name Of A Given Folder (If Shared)?

Thanks in advance


Pankaj Ghodake


Cannot open Word document from sharepoint Shared Documents folder


Hey Every body

I have a very strange problem. Our Company has a Microsoft Office Sharepoint Server 2007 solution running as our company Intranet solution. 

We have a solution where outside users, can gain access to a workspace site on Sharepoint where diffrent people can work together on projects that involves both out side users and internal staff. 
We have a folder called shares documents here we can upload documents that we want the other memebers off this workspace too see.
The problem is that internal staff can open up Word documents directly, but the external users are not able to open up directly these Word documents. Word just sayes that that is is unabel to open up the word document.
But when the users download the documents instead it works fine.

I have tries with both offcie 2003 and office 2007 and the problem is the same. But if i try to open up these documens via Open Office the problem due not exits, then is works fine. Why does Microsoft Word have these problems?

And is it just when the external users are opening up the documents directly from the sahred Documens folder that we have this problem.

The external users are connecting to our Citrix Netscaller security solution for authenticating purpoes first, after they have been validated through this solution, they ar

Can I put Partials somewhere else except Shared folder?


I have View which loads more than one partials.

<% foreach (var item in Model)
   { %>
        <% if (item.Name == "Administrator") { Html.RenderPartial("AdminMenu"); } %>        
        <% if (item.Name == "Moderator") { Html.RenderPartial("ModeratorMenu"); } %>
        <% if (item.Name == "Registered") { Html.RenderPartial("RegisteredUserMenu"); } %>
<% } %>

It's convinient to me to divide menus for pieces. But number of partials keep growing and it is getting harder to find concrete partial in Shared folder. Can I store partials in view folder which uses this partial?

Html.RenderPartial() doesn't have such parameter as Controller Name so I think that it's impossible. But if there are any solutions to solve this inconvinience?


How to add folder from UNC to Document Library (Shared Documents)



Is it possible to add a new folder to my Shared Documents (SharePoint) from my network shares? Let's say i have this \\\My Pictures and i want to add this folder to my Shared Documents.


Filtered/Not Authorized Issues with Sharepoint Workspace Shared Folder Synchronization



I have a folder with files named ".hgignore" and ".hgignore.i" and a folder named ".hg", all of which are not being properly synchronized by Sharepoint Workspace using Shared Folder Synchronization.

For the file error details, I see:

"Filtered. A policy of your organization prevents this file from synchronizing. The file was not synchronized with other members."

For the folder error details, I see:

"Not Authorized. You do not have the required permission to synchronize this file. Other members in the workspace will not see your changes."

In the workspace properties-->Folder Info, I see files and file extensions excluded from synchronization listed as:


However, I do not see any setting that would create a conflict for my files/folders, and more importantly, I do not seem to be able to edit this file. I am a manager of the workspace.

I have also checked in File-->Manage Account-->Account Preferences-->Security and "Block restricted file types" is NOT checked. Otherwise, I can't

Please help!





.NET error Request for the permission of type securityPermission for shared assembly on network


      We have following error while running one of .net assembly from our COM application.

Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed

The COM application built on mixed mode with .NET2.0 and VC++2008 and runs on various enviroments. but at
customer production fails with above error. Tried with different settings and CASPOL commands below but
still we get errors when running from SHARED drive

-Registered with regasm C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>regasm /codebase \\Machinexxx\folder1\\bin\Validation.dll

-Gave full trust to assemblies from .net configuration manager.
- caspol.exe -quiet -machine -addgroup All_Code -url "\\machine-xx01\folder1\Bin\*" LocalIntranet
- caspol.exe -m -ag LocalIntranet_Zone -url "\\machine-xx01\folder1\Bin\*" FullTrust –n FullTrustshare
after various caspol commands, which were successful, we did restart machine, but still when running
the application with that DLL it will throw above security error.

Any p

Best practice to store the shared folder path across the whole application


For example. The folder MEDIA_ROOT must be visible from the whole application, it stores the path of all my media files.

What is the best practice to store such a global variable.

Sharepoint Shared Documents webpart "go to parent folder" button missing



I'm trying to find a way to move to parent folder inside Shared Documents webpart .

In this tutorial it's only mentioned the SharePoint-wide UP button, but is there a way to move to parent folder (of the document library, of course) inside the non-maximized Shared Documents webpart?

Thank you

howto access remote shared folder using remote login and password ?



I want to write some piece of code in C# to access (create directory, create files) on a remote shared folder (stored in a remote machine), but using a specific remote user and password (a user defined in the remote machine) but not defined on the local machine where my piece of code is to be run.

I can do that using the explorer: if I type \\remoteserver for exemple, I can then give a login as remoteserver\remoteuser and the password of this remoteuser to access the shared folder (the permission has been set on the remote shared folder to authorize full permission for this user)

Plesae tell me if it is possible and how I can do that using the base .NET framwork library (or any extension of it).



How to access shared folder.



I am trying to access a shared folder which is located on a different server rather than on the asp.net server.

I configured windows authentication and set impersonation to true. Also try with enable/disable basic authentication. 

I have tried the following:

  1. with a mapped drive
  2. shared folder access (\\sharedfolder\)
  3. virtual directory pointing to shared folder with pass through configuration.

However none of the above works. I am getting "Access Denied" error when trying with shared folder and virtual directory. In the case of mapped drive getting "Not Found" error.

I have spent almost the whole day but unable to resolve this issue.

Could any of you please suggest me how can I resolve this issue ??

Note that I tried impersonation through code as well but no luck.

Please help me out..

How to Call .Exe in Shared Folder using Script Task Component in SSIS 2005 ?


Hi friends,

I have a Shared Folder where Two .NET .Exes are placed.

My requirment is to call this two Exes using Script Task Component.

I am very bigginer in SSIS.

Please provide me Assistance to solve this issue.

if you need more information regarding problem, let me know.


How to change the folder icon dynamically based on the name of folder in shared document library


I have created visual webpart ,through this webpart i am creating the folders dynamically in shared document library.

here my thing is if i create folder with specific name,want to set custom icon instead of default icon

please any one help me on this.


Advanced thanks




Dear gentlemen and ladies of the Microsoft Dynamic Data Team,

Mr. Steve Naughton says (and I hope so) that there might be chances that you read the posts published in this forum: I really hope so.

If that were the case then I am formally requesting to you in providing a "real answer" to my question:

I want to customize a dynamic data page (the details one) so I can have access to the data it has been already gathered from the end user UI (details.aspx) and use it to pass this same data to the following controls/pages that I am going to display next time to the end user.

For instance:

I have a screen with different types of data in it: texts, numbers, dates, check boxes, radio buttons and dropdownlists that has been filled with data by the end user. I want now to reset all fields exept the dropdownlist of which I'd like to keep the previously chosen values(the very same thing you do between dropdownlist of List.aspx ad Details.aspx). Even with FoxPro I could do that because data and controls were available there. It was as simple as setting carrying on to true.


I have found my

view state vs request parameters


If  the view state is the data entered into the form fields then they are supposed to be available in the request parameters or request body. Then why would we need view state for?


Unique ID throughout entire request



I am hoping somene here could advise me on a better solution to my present problem.  First a little background information on the application. 

I have a web application using the 3.5 framework.  The structure of this application is as follows: UI -> WebService   -> Business Layer -> DataAccess Layer.   What I want to accomplish is for every request (click on a link or button) have a unique identifer that follows this request through its entire lifecycle.  This unique identifer can be accessible anywhere within this request.  We use Response.Redirects which could easily be changed to Server.Transfers (although I do not want to do that) but  the problem lies with the web service calls.  Currently, a GUID is set in the ApplicationRequest.  This GUID checks for a guid value in the RawURL and if so, assigns this value to a HttpContext Item.  If not, HttpContext.Items gets a new one created.  However, this idea is wrong and will need to be revisisted.  The bigger problem is with the web service calls.  Without changing every web service method signature, and every call for that matter, is there a way of getting this GUID there.  I created a web method in every web service so that each time I instantiate a web service object in the UI, before calling any

System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPerm


Good Day all,

Having an issue with an outside user accessing my IIS7 box. I do not have this problem when running the website from my host machine. I found this post: Http://forums.asp.net/t/1371394.aspx. I assure you that this is not a solution because I am not storing any of my files on a network share. 

What do you think my approach should be. 

I already have read rights to IIS user to my BIN folder. 

Thanks for the help. 

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