Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 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 25th, 2008, 05:45 PM
Authorized User
Join Date: Apr 2008
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access denied error when using FileUpload Control

Greetings All,

I'm using the standard FileUpload control and returning the result back to the server via the javascript submit() method. When I run it I get the following error:

htmlfile: Access is denied

I ran across this from MS: http://support.microsoft.com/kb/892442
and according to it I should be OK. Here's the code I'm using for getting the user's file:

    function ConfirmFile()
        document.getElementById("hdn5").value=window.confi rm('The following file will be saved to the database. Press OK if this is correct.' + '\n' + '\n' + document.getElementById("FileUpload1").value);
    function FileUpload()

The FileUpload function is called first and the file is then confirmed by the ConfirmFile function. When the confirm box is displayed the filename with the complete path down to the root directory is shown. Unless I missed something per that MS article I should be OK.

Does anyone have any idea what I missed?



Similar Threads
Thread Thread Starter Forum Replies Last Post
401.3 Access denied due to Access Control List cforsyth .NET Framework 2.0 8 May 28th, 2009 01:56 PM
ASP Access Denied Error hkccwong Classic ASP Basics 6 January 11th, 2008 04:12 AM
'Access is denied' error purvin Javascript 4 March 22nd, 2006 04:42 AM
please.....urgent....."access denied error while s Ramakrishna General .NET 2 October 12th, 2004 12:19 AM
Chapter 3. Access Denied Error kevinq BOOK: ASP.NET Website Programming Problem-Design-Solution 0 July 30th, 2003 02:10 AM

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