Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

c# asp.net website manipulating user file on desktop

Posted on 2012-03-29
7
225 Views
Last Modified: 2012-04-09
Hi Guys,

I have created a website which will grab a specific excel file on the users desktop and manipulate contents.  The catch is I have only done this on my local machine in microsoft visual web developer 2010 express, and have not put on web host yet.  So I have not tested it on the actual internet as of yet.

It obviously works local.. but my question is there has to be some type of security to allow a website to read a users pc and manipulate a file.  What strategy to I go about confronting this issue?  Will it just fail in a live environment, or will it ask user to allow manipulation?  Or do I need to write some type of code to ask user to allow?

Thank in advance
0
Comment
Question by:solarissf
  • 4
  • 3
7 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 37781652
Unfortunately this will fail in a live environment, it is working now as you machine is acting as the Server when running so it is allowed to manipulate files on the 'server'.
However in a live environment it will be breaking security to try and access a local users file system through the browser.
0
 

Author Comment

by:solarissf
ID: 37781655
how do I go about fixing this?
0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 37781713
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

Author Comment

by:solarissf
ID: 37781798
instead up having the user upload the file.  Someone recommended something about creating an activeX object, downloading it to the user, and manipulating that object.... this is above my head at the moment but I might have to learn... can you explain this process?
0
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 37781860
Sorry that is beyond my knowledge, don't use ActiveX objects as they can only be used by Internet Explorer generally.
0
 

Author Comment

by:solarissf
ID: 37781886
thanks jacko, appreciate you input... I may have to do the upload but hopefully I can figure out this activex idea.  

Does anyone have any input on activex?
0
 

Author Comment

by:solarissf
ID: 37782526
Or even if its not activeX, are there any more suggestions for my website to manipulate a specific excel file on the users desktop.  I'm doing some google searches and finding things like Web Deploy, but not sure if I'm on the right track.

Thanks
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question