.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!



Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Image Access Error

Posted By: Aamrapali Tamgadge     Posted Date: February 11, 2011    Points:2   Category :ASP.Net
Hi Have Uploaded my site but the Following Exception is comin How Can i Solve this?



Access to the path 'H:\inetpub\vhosts\accountingacademy.net\httpdocs\Blog\BlogImages\profile_blank_gray.jpg' is denied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path 'H:\inetpub\vhosts\accountingacademy.net\httpdocs\Blog\BlogImages\profile_blank_gray.jpg' 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 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.

Responses
Author: Amit Mehra             
Posted Date: February 11, 2011     Points: 5   

Hi,

Try to give the relative path at the hosting instead of absoulate path

eg

../Images/Yourimage.jpg

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Blessy Baby             
Posted Date: February 11, 2011     Points: 5   

Hi,

Add read permision for ASP.net user to that folder.

Blessy Baby
Project Lead
Digitalmesh Softech India (p) Limited
Cochin,Kerala
Author: Aamrapali Tamgadge             
Posted Date: February 11, 2011     Points: 5   

Hi..how to add read permission?

Software Programmer At OTIS ISRC
Author: Jayakumar             
Posted Date: February 11, 2011     Points: 5   

Hi

get Permission Your hosting server control panel to the Folder.

Regards
Name : R.Jayakumar(JK)
Email Id : kumaraspcode2009@gmail.com


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend