Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListError while generating thumbnails for image columnError while generating thumbnails for image column
Previous
 
Next
New Post
9/27/2008 2:05 AM
 

 We have an image column with images stored on the server.

 

When the page renders we get this error,

AssemblyVersion: 04.08.04

PortalID: 29

PortalName: .....

UserID: 1

UserName: host

ActiveTabID: 739

ActiveTabName: Home

RawURL: /DesktopModules/UserDefinedTable/MakeThumbnail.ashx?image=%2fPortals%2f.......%2fDashboards%2f1%2f3.jpg&w=200&h=150&PortalId=29

AbsoluteURL: /DesktopModules/UserDefinedTable/MakeThumbnail.ashx

AbsoluteURLReferrer: http://....../ExistingClients/MyDashboard/tabid/855/language/en-AU/Default.aspx

UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 844001b9-70b8-4581-95f8-d05b45e64c6f

InnerException: Unhandled Error: 

FileName

FileLineNumber: 0

FileColumnNumber: 0

Method: DotNetNuke.Modules.UserDefinedTable.MakeThumbnail.ProcessRequest

StackTrace

Message: System.Exception: Unhandled Error: ---> System.Security.SecurityException: Access denied to e:\inetpub\esvc000013\Portals\.......\Dashboards\1\3.jpg. at DotNetNuke.Modules.UserDefinedTable.MakeThumbnail.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace ---

 
New Post
9/27/2008 4:11 AM
 

make sure, that users have read access for the folder, whre the image is stored, being granted in Admin :: File Manager.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/27/2008 4:58 AM
 

 Thanks Sebastian that's the first thing I thought of too... All Users have View Folder permissions on that folder

 

Any other thoughts?

 
New Post
9/27/2008 6:24 AM
 

please verify, that local account "Network Service" has full permission for that folder in FileSystem


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/26/2008 4:05 AM
 

I use DNN 4.9.0 and the UDT 3.5.1.

On a portal of mine I catch this error "Access denied" so I checked all the permissions on the file system. Since all it's correct I watch into the UDT source code and I found the cause of this strange behavoiur.

Into the file MakeThumbnail.aspx.vb near line 84 there is this code:

            ' If strFilePath doesn't point to a file of the current portal, throw a security exception
            If strFilepath.ToLower.LastIndexOf("\portals\" & PS.PortalId) = -1 Then
                Throw New System.Security.SecurityException("Access denied to " & strFilepath & ".")
            End If

Since my portal HomeDir is "Portals\myportalname" and not "Portals\myportalid" the IF above can't work correctly and always return -1.

I think it's better testing (PS.HomeDirectory) instead of ("\portals\ & PS.PortalID).

Wath do you think about?
 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListError while generating thumbnails for image columnError while generating thumbnails for image column


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out