access is denied
hi,
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
__________________
shanwaj
|