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 December 28th, 2007, 03:04 AM
Authorized User
Join Date: Dec 2007
Posts: 38
Thanks: 2
Thanked 0 Times in 0 Posts
Default access is denied

  i am a biginner to asp.net, i am using version 1.1 and database is Ms Access.i have done one small project. its working fine in local server but i am facing problem after hosting it on web.
here i can view all pages whatever in my folder.
what exactly i am facing is
1.not able to do DML operations like adding,updating,deleting
(before giving permissions showing error like "System.Data.OleDb.OleDbException: Operation must use an updateable"
2.whenever i am inserting image to my folder its showing error like
   "Access to the path "D:\webserver\d-1023f43\xxx.org.in\www\abc\image\xxx.gif" is denied"
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

abc-Main folder
image-image folder
3.also whatever i stored images to database and image folder,its not showing in datagrid.
  past one week i used read all the forums.i came to know that its getting lack permissions.
   i checked all the permissions of folder.my folder is running under ASPNET user.i giver all permissions in iis.somewhere i read that programmer need to write <identity impersonate="true" username,password>tag.
So my questions are:
1.Why is the asp.net user not authorized to access the path, althoug I use impersonate and so the current windwos-login-user?
2.How can I grant the user the permission to write files on a network path?

3.which user i need either aspnet or iuser\machineName
4.what username and password should be give in web config to store the images.
plz help me.
thanks in advance

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
Access Denied tys MySQL 4 April 6th, 2007 08:31 AM
Access is denied. Ramakrishna General .NET 4 November 30th, 2004 09:05 AM
Access is Denied khautinh General .NET 1 March 26th, 2004 04:44 PM
Access Denied tys MySQL 0 March 25th, 2004 03:46 PM

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