Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 31st, 2006, 09:07 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

I understand that sometimes (more often than I'd like) the answer is just "you can't". If that's the case, then I'll have to deliver the bad news to the boss.

But I'm not quite ready to give up just yet if anybody else has a suggestion?
 
Old October 31st, 2006, 09:33 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

The only way that I can even remotely tihnk to accomplish this would be an AcitveX control that you could run over RDP in the clients browser. Just remember, at this point your user is no long a causal web browser they have a direct connection to your server, be careful not to open Pandoras Box.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
The Following User Says Thank You to dparsons For This Useful Post:
Ron Howerton (February 22nd, 2013)
 
Old October 31st, 2006, 09:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

It's an application for internal use only, so the security concerns are few. But the process for gaining approval to install anything on the workstation is so daunting it's eaiser to say "it can't be done".

In addition to ensuring that installed components play well with EVERYTHING else on the machine, all gov't applications must be strictly compliant with section 508 of the Employees with Disabilities Act. That means that visually or mobility impaired government users must be able to use all applications any other gov't employee must use. Native web controls are barely accessible as it is (ever try navigating a web site without a monitor or mouse?) and user controls only add layers of complexity. So, I try to stick to native web controls whenever possible for this reason.

But thanks for the suggestion!
 
Old November 3rd, 2006, 12:54 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

Enquiring minds may wish to know I was finally able to get this &^%$ thing to work as wished. The problems I was encountering were related to how links were coded, network security and how VS programs upload files.

First, I was unable to edit uploaded files that were stored in a folder below the VS application on the IIS server due to security on the application folder that was inherited to embedded folders. I could've opened the application folder up to modifications, but there are obvious security and integrity issues associated with doing that.

So, I moved the upload folder to another server and opened it to the world. I could then edit documents in place (although the links we discussed obviously had to be changed to reference the other server as well as the folder directly, rather than relatively as was suggested.) That meant it wasn't necessary to save edited documents to the local hard drive and upload them again, which is a tedious process for an alleged document management system.

BUT, moving the upload folder to another server caused other problems (and I hope MS is paying attention here, because this is what really frustrated us about this whole mess). While Windows authentication uses the user's network PIN to access files via links as you would expect (assuming anonymous users are not allowed, of course), the PostedFile.SaveAs method for input file tags appears to use IIS_User instead, which did not have rights to the upload folder. And the message returned is "Login or password failed" without mentioning which PIN was being used to perform the upload - about as useless as "Object undefined" when you don't know which object it means. WE were left to deduce that it was not using pass through authentication to referece the folder. Rather than giving IIS_USER rights to the folder, we relied on impersonation using the web.config file to use an internal service ID with the necessary permissions:

<system.web>
    <identity impersonate="true" userName="john smith" password="password" />
</system.web>

Users can now edit downloaded files from their location on the server using their native editor (documents in Word, spreadsheets in Excel, etc.) as we suspecteed should be possible, and then save them back using the SAVE option in the editor. Finding the right folder using the browser or downloading and then uploading again via the HTML input file object really is not required if the folder has proper security AND the application's user has the necessary rights.

Thanks again for everybody's help figuring this little anomaly out!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to figure out how to work a link issue gene4455 VBScript 0 October 22nd, 2008 12:06 PM
Link button in nested grids clcik doesnt work fir RaghaSM ASP.NET 2.0 Basics 1 June 26th, 2008 12:05 AM
How does Update Link in FormView work? URGENT shaly ASP.NET 2.0 Professional 0 December 7th, 2006 04:10 PM
Link Button does not work properly nitinp ASP.NET 2.0 Basics 0 November 9th, 2006 06:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.