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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Profilepic.ashx Null Stream ErrorProfilepic.ashx Null Stream Error
Previous
 
Next
New Post
9/28/2015 2:32 PM
 

I am troubleshooting a problem where profile images are not showing up in Active Forums.  This is caused by the profilepic.ashx file generating the error seen below.  Any ideas on what the cause could be?  I'm running a fresh install of DNN 7.4.1 on localhost.  I can generate the error by either going to a page on ActiveForums where the user avatars are displayed, and also just by entering the following URL:

http://localhost:52075/profilepic.ash...

AbsoluteURL:/profilepic.ashx

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID:5690b915-4e26-4ca9-8bb4-d8276b996499

AssemblyVersion:

PortalId:-1

UserId:-1

TabId:-1

RawUrl:

Referrer:

UserAgent:

ExceptionHash:B+LW5HmD86O0R8pY9FfuBg==

Message:Unhandled Error:

StackTrace:


 

InnerMessage:Value of 'null' is not valid for 'stream'.

InnerStackTrace:

 at System.Drawing.Bitmap..ctor(Stream stream) at DotNetNuke.Common.Utilities.ImageUtils.CreateImage(Stream stream, Int32 intHeight, Int32 intWidth, String extension) at DotNetNuke.Services.UserProfile.UserProfilePicHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
New Post
9/28/2015 3:18 PM
 
Solution: this error is generated when the profile image file is not located at Portals/_default/Users/001/01/1 (or whatever the folder number is for the user). I was putting the image at Portals/0/Users/001/01/1 instead of the _default folder.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Profilepic.ashx Null Stream ErrorProfilepic.ashx Null Stream Error


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