Solved

Allowing ASP.NET access to local file system - within IE browser

Posted on 2008-10-16
5
2,467 Views
Last Modified: 2013-12-08
Hi,
I want to be able to have my client ASP.NET session autodownload a file (word doc) from the server, save it to the local hard disk and then invoke Word (which I know is on hte local PC) to display the file.
Is this possible within ASP.NET/IE?
What security levels do I need to setup for IE on the client workstations?
The situation is that we are exploring the redevelopment of our customer mgt system from a locally installed exe to ASP.NET. But we must be able to setup the ASP.NET to bypass the usual prompts ("do you trust this site" etc) to make the standard functions we have run without intervention.
Note: this will initially be on a intranet, but I would like to be able to expose it to the www as well (after appropriate login accdess of course) if that makes any difference.
0
Comment
Question by:TMJC
  • 3
  • 2
5 Comments
 
LVL 8

Expert Comment

by:rlh68
ID: 22737140

It's generally not good to create a site that access the local systems drives.

To do this you will need to run client side scripts in the web page to access the users local drive. The browser is not going to let the web page subvert its security without the users permission. Either by a pop-up alert or by configuring IE to allow the scripts to run.

You could configure the scripts to run automatically for sites on your local intranet. To do this you would need to modify IE's security settings via a Domain Group Policy or on each pc. This is not a good practice though, and it won't work if you migrate to the internet.

All that said, I can't help but think there is a better way to do what you are attempting. Have you considered putting the files on a shared file server? Or if you have a Domain with user home directories in a shared location you could use the home directory instead of the local drive.
0
 

Author Comment

by:TMJC
ID: 22737264
Thanks for the reply.
why store on the local drive?
- we copy the Word doc file from the server to the local HDD to make Word open/save/close faster. Some of our links are pretty poor and Word does not handle remote files being editted too well. Once the Word doc is saved locally we want to upload it back to the server  -again, without  direct user intervention - currently via a macro that fires in the Word "close" trigger
- we also create a log on the local HDD for trouble shooting purposes. The log files for many users would overwhelm the server - there may be 50 users and each may generate 10 Mb per day in log file recordings.
- we also have the capacity (in the present app) to record voice files and then upload them to typists for transcription. To retain this functionality, we need to be able to invoke the voice recorder s/w (not dissimilar to invoking Word, as above) and save the voice file to the HDD. The recording s/w just won't work when we try to use a network share.

If I can get the users to add the web site to the "trusted" web sites list, would that work?

I worry that we are being too ambitious in moving from an exe to an ASP.NET model.

0
 
LVL 8

Expert Comment

by:rlh68
ID: 22737388

The users would have to add the site to their trusted lists and then configure their IE security settings to allow scripts without prompting them, not sure it would work.

A browser plugin (BHO) may do the job or a Java applet (never thought I would say that). This would give you the client access  you needed with little user intervention, just when they installed the plugin or applet.

Browser Helper Object
http://msdn.microsoft.com/en-us/library/bb250489.aspx
0
 

Accepted Solution

by:
TMJC earned 0 total points
ID: 22737422
many thanks - you've sent me off to explore BHO (in VB.NET for me!)
Thanks again
0
 
LVL 8

Expert Comment

by:rlh68
ID: 22813691
Is it fair to accept your own post as a solution?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

910 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

21 Experts available now in Live!

Get 1:1 Help Now