.jpg.config file?

Last post 03-07-2012, 8:04 PM by woody6. 2 replies.
Sort Posts: Previous Next
  •  03-06-2012, 7:57 PM 73358

    .jpg.config file?

    I was impressed with the online demo of DotNetGallery and decided to try it out and see what it would take to incorporate it into my site.   I've created a simple C# project in VS2008 with a single page for viewing a minimal album.   When I move it to my hosting provider, I get an error I do not understand (shown below).
     
    The path for the image is correct, but no 'Mt_rushmore_07_27_2005.jpg.config' file exists.   Am I missing a config?
     
    Thanks,
    Woody6
     

    Server Error in '/' Application.

    Access to the path 'D:\Hosting\4797090\html\img2\Mt_rushmore_07_27_2005.jpg.config' 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 'D:\Hosting\4797090\html\img2\Mt_rushmore_07_27_2005.jpg.config' 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.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [UnauthorizedAccessException: Access to the path 'D:\Hosting\4797090\html\img2\Mt_rushmore_07_27_2005.jpg.config' is denied.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7716623 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1162 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +66 l.e() +161 DotNetGallery.GalleryFileSystemDataProvider.UpdatePhoto(String categoryid, String photoid, String title, String comment, String propexpr) +837 DotNetGallery.GalleryFileSystemDataProvider.GetPhotoInfo(String categoryid, String photoid, String& title, String& comment, Int32& width, Int32& height, Int32& filesize, String& ipaddress, String& propexpr, DateTime& time, Int32& commentcount) +227 DotNetGallery.GalleryFileSystemDataProvider.LoadPhotoArray(String categoryid) +182 DotNetGallery.GalleryBrowser.a(GalleryDataProvider A_0, String A_1) +431 DotNetGallery.GalleryBrowser.GetAllCategoryData() +99 DotNetGallery.GalleryBrowser.b(HtmlTextWriter A_0) +1362 DotNetGallery.GalleryBrowser.Render(HtmlTextWriter writer) +156 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19 System.Web.UI.Page.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266

  •  03-07-2012, 7:26 AM 73363 in reply to 73358

    Re: .jpg.config file?

    Hi woody6,
     
    Please check the permission of folder  "D:\Hosting\4797090\html\img2", ensure that your site has write/read permission of it.
     
    You can give the full permission to user "Everyone" of this folder and  try again.
     
    Regards,
     
    Ken 
     


     
  •  03-07-2012, 8:04 PM 73372 in reply to 73363

    Re: .jpg.config file?

    Thanks Ken.   I wasn't sure how to do that in a hosted environment, but when I found where to configure directory permissions that did indeed fix the problem.
     
    --Woody
View as RSS news feed in XML