Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Error Adding An Image

web-app

Hi,

     One of our users received this error when attaching an image to a comment:

Server Error in '/' Application.

Access to the path 'C:\Program Files\CounterSoft\CounterSoft Gemini Issue Tracker\Gemini Web Application\controls\RAD\UserImages\Release Coordination - smaller.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 'C:\Program Files\CounterSoft\CounterSoft Gemini Issue Tracker\Gemini Web Application\controls\RAD\UserImages\Release Coordination - smaller.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 IUSRMACHINENAME) 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 'C:\Program Files\CounterSoft\CounterSoft Gemini Issue Tracker\Gemini Web Application\controls\RAD\UserImages\Release Coordination - smaller.jpg' is denied.]
   System.IO.
Error.WinIOError(Int32 errorCode, String maybeFullPath) +7714255
   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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +61
   System.IO.FileStream..ctor(String path, FileMode mode) +55
   System.Web.HttpPostedFile.SaveAs(String filename) +99
   Telerik.Web.UI.PostedFile.SaveAs(String fileName, Boolean overwrite) +48
   Telerik.Web.UI.Widgets.FileSystemContentProvider.StoreFile(UploadedFile file, String path, String name, String[] arguments) +90
   Telerik.Web.UI.RadFileExplorer.ProcessUploadedFiles() +565
   Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) +352
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082

     I am guessing that this is not normal.  However, I do not think that this control was intended for this purpose.

Thanks, Jeremy

JeremyA
· 1
JeremyA
Replies (1)
helpful
0
not helpful

It seems like the user was using the editor to add the image and not the attachment box (bottom of the page). To enable adding images using the editor's image manager you'll have to give permissions on the the UserImages folder (controls\RAD\UserImages) to the application pool user (network service).


Mark Wing
· 9108
Mark Wing