?
Solved

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

Posted on 2008-10-16
5
Medium Priority
?
2,497 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
[X]
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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
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.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 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