Solved

c# asp.net website manipulating user file on desktop

Posted on 2012-03-29
7
216 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now