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...Administration ...Administration ...Repeating General Exception for profilepic.ashxRepeating General Exception for profilepic.ashx
Previous
 
Next
New Post
5/22/2014 9:34 AM
 

I have 2 sites in a single DNN install. Only on one of them each page visit generate this exception:


AssemblyVersion:7.2.2

PortalID:4

PortalName:MCL Emilia-Romagna

UserID:1

UserName:xxxxxxxxxxx

ActiveTabID:1193

ActiveTabName:Home

RawURL:/profilepic.ashx?userId=1&h=32&w=32

AbsoluteURL:/profilepic.ashx

AbsoluteURLReferrer:http://emilia-romagna.mcl.it/

UserAgent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID:3fac70db-35a2-4834-8544-d89efcf98311

InnerException:UniqueId

FileName:

FileLineNumber:0

FileColumnNumber:0

Method:System.Data.SqlClient.SqlDataReader.GetOrdinal

StackTrace:

Message:

System.IndexOutOfRangeException: UniqueId
   in System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
   in System.Data.SqlClient.SqlDataReader.get_Item(String name)
   in DotNetNuke.Services.FileSystem.FileInfo.Fill(IDataReader dr)
   in DotNetNuke.Common.Utilities.CBO.FillObjectFromReader(Object objObject, IDataReader dr)
 
New Post
5/22/2014 9:15 PM
 
please check Files table in the database, columns uniqueID seems to hold an invalid or duplicate value.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/23/2014 3:48 PM
 
Checked it but no duplicate values (I checked also with SELECT distinct TOP 1000 [UniqueId] FROM .... to see if I had the same row numbers as result).
At a glance they seem valid Unique IDs also...... no odd-formatted value...

But the index out of range error in GetOrdinal() seems more like if the "UniqueId" column doesn't exist at all in the returned recordset or similar thing...

 
New Post
5/23/2014 4:03 PM
 
Those are the rows that should be tied to this error since the profilepic.ashx is pointing to this user with that pic:

FileId

PortalId

FileName

Extension

Size

Width

Height

ContentType

FolderID

Content

CreatedByUserID

CreatedOnDate

LastModifiedByUserID

LastModifiedOnDate

UniqueId

VersionGuid

SHA1Hash

LastModificationTime

Title

StartDate

220

NULL

pete5.jpg

jpg

11062

100

100

image/jpeg

47

NULL

1

2014-04-23 23:17:11.947

1

2014-04-23 23:17:11.947

E183E18F-A00D-4DAF-B5BE-59C3F62FD3A2

687F822B-37D2-4E77-BCD6-A1E08775497C

df1094525d647aecb6a8c5155add856a1cf4abea

2014-04-23 23:17:14.617

NULL

2014-04-23

221

NULL

pete5_l.jpg

jpg

2011

64

64

image/jpeg

47

NULL

1

2014-04-23 23:17:45.880

1

2014-04-23 23:17:45.880

3D71C01F-286E-4C69-816E-A300F33BDB44

6C7109E1-E94A-4F22-AC9A-9F1C956B8DF9

da39a3ee5e6b4b0d3255bfef95601890afd80709

2014-04-23 23:17:48.547

NULL

2014-04-23

222

NULL

pete5_s.jpg

jpg

1654

50

50

image/jpeg

47

NULL

1

2014-04-23 23:17:45.923

1

2014-04-23 23:17:45.923

41E2FADC-C28E-40A0-811F-77A5989F9A96

F722B45B-B2A2-49A7-86E3-08785ABF4AAD

da39a3ee5e6b4b0d3255bfef95601890afd80709

2014-04-23 23:17:48.593

NULL

2014-04-23

223

NULL

pete5_xs.jpg

jpg

1080

32

32

image/jpeg

47

NULL

1

2014-04-23 23:17:45.963

1

2014-04-23 23:17:45.963

3AD05E70-2D1C-4627-84DE-C22418802D3A

76B277FA-0075-49C4-A7A0-92CEE993B34F

da39a3ee5e6b4b0d3255bfef95601890afd80709

2014-04-23 23:17:48.623

NULL

2014-04-23

FileId

PortalId

FileName

Extension

Size

Width

Height

ContentType

FolderID

Content

CreatedByUserID

CreatedOnDate

LastModifiedByUserID

LastModifiedOnDate

UniqueId

VersionGuid

SHA1Hash

LastModificationTime

Title

StartDate

220

NULL

pete5.jpg

jpg

11062

100

100

image/jpeg

47

NULL

1

2014-04-23 23:17:11.947

1

2014-04-23 23:17:11.947

E183E18F-A00D-4DAF-B5BE-59C3F62FD3A2

687F822B-37D2-4E77-BCD6-A1E08775497C

df1094525d647aecb6a8c5155add856a1cf4abea

2014-04-23 23:17:14.617

NULL

2014-04-23



Only things I see is that portalid is null (this is a super user) and that the SHA1 is different for only 1 of those pics.

The exception triggers here:  http://emilia-romagna.mcl.it/profilepic.ashx?userId=1&h=32&w=32 but the image is shown correctly... yet if I refresh this page many times, I found all the exceptions in the event viewer... any hint?

 
New Post
5/23/2014 4:21 PM
 
I also noticed that in all the other files where portalId is NULL or is 0, the SHA1 field is NULL. Those 4 images are the only exception.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Repeating General Exception for profilepic.ashxRepeating General Exception for profilepic.ashx


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