C# - Access A Networked Drive Via The Web?
Feb 4, 2010
We have around 2000 staff. Each has a shared drive to store some of their files. This shared drive points to a central location on our network.Example:
John's F: drive -> \ournetworkjohn.doe
Jane's F: drive -> \ournetworkjane.doe
Each user will have a folder within the root "ournetwork" labeled with their username. I do not have to worry about the directory creation as that's already done for me. These users are all tied into our AD for authentication. Folder name == AD username.We would like the ability to allow our users to access their mapped "F" drive from outside our network through a web page. I understand that the programming involved(assuming it comes to that) will not rely on their mapped drive but rather the UNC path as posted above.I am open to suggestions on how to get this accomplished. ASP.NET? Is there just an IIS solution like WebDAV? (although client-side WebDAV on win 7 seems to be broken, so that may be off the table).
View 1 Replies
Similar Messages:
Feb 15, 2011
I am using windows authentication in website. All LAN users have access to one shared drive. I want to retrieve those files progrmatically. Like reading a file from network drive. If I open the solution and click F5, I am able to access it. Once it is hosted in IIS, its throwing error.
View 3 Replies
Oct 7, 2010
Cannot Access File on Network Drive from web Application
View 5 Replies
May 21, 2010
How can I use menuitemclick event to control what menu item data is slected for display on a gridview from my database.mdf sql datafile?
View 1 Replies
Mar 10, 2011
is it possible to simulate usb flash drive with code (asp.net with c# is better - if not with php) or a software like virtual clone drive ?
i have a program with usb flash drive unlocker (4 my laptop) and i want to simulate that usb drive , so i can get rid of that usb flash from my laptop !
View 1 Replies
May 7, 2015
I want to download a file from google drive (like .docx, .xlsx etc.) to a specific location, I am able to do so which are publicly share using WebClient object.
But now I want to download file which private in share but unable to do it.
How to improve my code which should download private file also.
//Parameters
//1) Link - google drive link from where to download
//2) filename- name of filename-
//3) oringinalDocDirectory- path where file has to save
public ActionResult SaveToServer(string Link,string filname,string oringinalDocDirectory) {
if (!Directory.Exists(oringinalDocDirectory))
Directory.CreateDirectory(oringinalDocDirectory);
var docFinalSavePath = Path.Combine(oringinalDocDirectory, filname);
WebClient client = new WebClient();
client.DownloadFile(new Uri(Link.Replace("&export=download","")), docFinalSavePath);
return Json(new { status = docFinalSavePath }, "text/html", JsonRequestBehavior.AllowGet);
}
View 1 Replies
Nov 9, 2011
I have been told 'they' want to be able to see the documents on Drive:H
Is this doable from within a web application project?
View 10 Replies
Oct 20, 2010
I tried to save a file to local drive using the code below but got "access denied" error. How to save file to local drive? Dim file As String = "c:myfile" Dim stream As New System.IO.FileStream(file, System.IO.FileMode.Create)
View 6 Replies
Mar 17, 2010
I have an ASp.net application using C#. I need to copy a file present on the web server machine to a remote machine on the network. Although this seems to be a trivial matter I am having difficulties copying the exe I am Trying
string Source = @"c: emp est.exe"
string Destination = @"Z: est.exe"
File.Copy(Source, Destination, true)
Z: is mapped to the Remote machine network drive. I am able to physically copy files to this drive from the Web Server machine, but when I try from ASp.net, I get the following error System.Io.Exception: Logon Failure: unknown user name or bad password
I think it has to do with the Web Server using the ASPNET user , which does not have the right credentials on the remote machine. I do not know how to solve this issue I tried using WMI too, I was able to copy files from one directory to another directory on the remote machine, but not from the Web Server machine to Remote machine
View 2 Replies
Apr 4, 2011
Need to upload files in mapped drive. i tried with UNC path. locally i tried with 2 systems its working fine. but in production environment its not working. Scenario is, 2 systems with windows 2003 server. one is app server and second is data server. Hosted app in IIS. Its something with the drive/folder permissions.
View 1 Replies
Dec 16, 2010
How do you test-drive ASP.NET WebForms development in VS08?
View 2 Replies
May 13, 2014
I have a link button column in gridview and that column have a network drive pdf document link. i want to open that document when click on that button.
View 2 Replies
Nov 2, 2010
I'll be having a website to upload images and am creating the database now , I'll have one original image and about 6 to 7 thumbnails , I just want it to be in the best possible way so I thought I'll save the original image in database and I'll be saving it's thumbnails on hard drive as they're going to be accessed alot so I dont want the httphandlers to be bringing like 20 images from the database while they can be brought easily from the harddrive.
View 7 Replies
Oct 20, 2010
I tried to save a file to local drive using the code below but got "access denied" error. How to save file to local drive?
View 2 Replies
Mar 17, 2010
I have a folder C:Images which has a some images. This folder is not inside my project and I would to know if there is a way to load an image from that folder on to an ASP.NET Image control.
<asp:Image ID="img" runat="server" />
One solution could be to make the Images folder a Virtual directory on the IIS but I would like to know if this can be done without creating a virtual directory for the Images folder.
View 2 Replies
Oct 26, 2010
I would like to upload a file to network share drive e.g.
View 1 Replies
Feb 24, 2010
In my company application we send emails to candidates. Now we want to save the those emails ( with attachments ) to a folder on a network as a proof of what we sent to the candidates. How can this be done?
View 2 Replies
Sep 2, 2010
Is it possible to create a SqlServer database at a network drive?
View 2 Replies
Jun 28, 2010
I have a asp page in which i have to display the image which is stored in my local disk C: i.e.. C:Program FilesAdrenalinAdrenalinUploadedFilesTemplateFileabc.jpg
how can i do that...i am not able to do so. the image is not displayed instead it shows a empty image holder with the name of the image as specified and URL as not available.
View 2 Replies
Apr 22, 2010
Seems simple but users have no internet access. The application will be hosted internally on as Intranet site. The application will be able to make webservice calls to the internet. I tested and tried Mapquest. However all the other providers seems to assume the users are able to access the internet so their API's are javascript based with src tags pointing to internet URL's
View 4 Replies
Sep 17, 2010
I want to bind gridview of all D: drive file folders in asp.net? and download the file?
View 1 Replies
Feb 14, 2011
How to locate the path of other drive's folder in server?
For ex:
The application is there in 'C:SomeFolder', now I want to export a file to the drive 'D:AnotherFolder' on the server. How can I achieve this?
View 2 Replies
May 10, 2012
Frontend - IIS7 Server
Backend - SQL 2005 Server
I have an .net web form that upload an excel file to my server. I would like for this Excel file to be upload to my SQL server since it need to be process by a sql command and the SQL server cannot seems to be able to access the IIS7 when running the quary i needed. All i want to be able to do is to load this excel file to a folder within the SQL server.Here is my web.config folder path -
<appSettings>
<add key="FolderPath" value="Uploads/"/>
</appSettings>
and here is the code -
Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs)
If FileUpload1.HasFile Then
Dim FileName As String = Path.GetFileName(FileUpload1.PostedFile.FileName)
Dim Extension As String = Path.GetExtension(FileUpload1.PostedFile.FileName)
Dim FolderPath As String = ConfigurationManager.AppSettings("FolderPath")
[code]....
when i try to change the path in the web.config it will tell me it cannot use physical path only virtual.
View 1 Replies
Jan 26, 2013
I need to host a website that designed in Microsoft Visual Web developer express 2008.I need to config iis in windows xp system and i need to config the iis in that system and host it.Addtionally i have one small clarification.In my application, i need to export and save the excel in E drive. In local it works fine. If i run in another machine using iis, whether the exported excel will save in that machine or in the remote machine.
View 1 Replies
Jul 8, 2013
How to make may software as a portable like when we use a dongle it automatically install a related software ...
View 1 Replies