Jump to content

Recommended Posts

Posted

It's weird too. I can change other attributes in Active Directory and they show up in HAP+. I changed the user's display name and it updated it in HAP+ after clearing my cache. Does the photo have to be on a Network Share that the web server would have to have access to? Right now I just have the photo on the Desktop of one of my Domain Controllers. How does HAP pull the photo attribute?

 

I have tried a couple different ways to import the pictures into Active Directory. One is using Dovestone's AD Photos program. Another is using Code2's Active Directory Photos program. Like I said, I can see that the attribute is set if I look at the attribute editor. I don't know if it is something with how I am getting the pictures into Active Directory? Is there a way that you recommend that works for you?

 

Is there a log file I can look at to see why it is failing? My users are going to be pretty fired up to use HAP regardless if their picture is there or not. It is definitley not a deal breaker, but it would be nice to have their picture show up.

 

Thanks for your help.

Posted

You dont need to leave the picture on a share, it puts it into AD and pulls it from there as far as I know. I have had a little play today and still cant get it to read from the thumbnail attribute. Its not a massive issue, just a nice to have.

 

:)

Posted

I can confirm that the image from the "thumbnailPhoto" attribute is being used. It appears when i click the username at the top right.

 

2 issues though:

 

The image is tiled in the top right display (this was the same when using the jpegphoto attribute in the previous version) (See image below)

It isn't appearing on the -ME- tile for me.. i presume this is a caching thing.. but im not sure how to force it.. i tried refreshing the page etc! - so perhaps it isnt a caching thing?

 

HAP-Avatar.png

 

In reference to the other questions, I use BCX Management Tools to manage my network and this allows me to add the thumbnail through the user-manager.

Posted
How odd, I must have some sort of configuration error here, I can't get it to appear in the me tile now the top right tile. I could get the old jpg attribute working with the old dll files but the thumbnail attribute I can't make work at all.
Posted
I've been looking into this for Office 365 and outlook 2010, they all say 10Kb limit and 96x96 pixels recommended size. I'm trying to get my own picture in Outlook, Office 365 and HAP+ from AD, so far only got it in Office 365.
Posted
I'm struggling to get my picture to display in HAP+, it is 96x96 and 4.00Kb, it is showing up in Office 365, Outlook 2010 (not Outlook 2013, but i've read that there is lots of problems with that at the moment) so I know it's pulling the picture from AD for that, it just doesn't show up in HAP+. I've deleted my browsing history and used the F12 developer options to delete cache, but it still doesn't show my picture. Any ideas?
Posted

Hi Nick,

 

I applied the patch but still now joy :(

 

Just to check, this is what i have done...

 

Attached the picture to the thumbnailPhoto Attribute

Checked that the pic shows up in Outlook 2010 (it does)

Made sure the image is 96x96

Updated HAP to 8.6 and restarted the server (just to make sure)

Cleared my cache in IE

Tested as myself (Admin)

Tested as a student

 

Still no joy. It must be something im doing wrong beucase it works for you??

Posted

Try this dll, it disables the error catch handler, it should tell you what it's having an issue with, hopefully.

 

then browse to /hap/api/mypic and see what it says

Posted (edited)

It's not just you @ShizukaNaHaji !

 

Whilst it works fine for me and 1 of my test users.. it's not displaying for my assistant's account - I can't work it out.. I tried adding the same image to both his and mine.. mine works, his not so.. (both display in Outlook)..

 

Happy to try the test dll too @nickbro.. :)

Edited by mattgrimley
i can see the attachment now!
Posted
Try this dll, it disables the error catch handler, it should tell you what it's having an issue with, hopefully.

 

then browse to /hap/api/mypic and see what it says

 

 

[h=2]Object reference not set to an instance of an object.

[/h]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.NullReferenceException: Object

reference not set to an instance of an object.

 

Source Error:

 

 

[TABLE=width: 100%]

 

 

[TR]

 

[TD]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. [/TD]

[/TR]

[/TABLE]

 

Stack

Trace:

 

 

[TABLE=width: 100%]

 

 

[TR]

 

[TD]

[NullReferenceException: Object reference not set to an instance of an object.] HAP.Web.API.MyPic.ProcessRequest(HttpContext context) +372 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +624 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +269[/TD]

[/TR]

[/TABLE]

 

 

is that what you wanted?

Posted
@nickbro i've just tried the 2nd dll file, and i'm just getting a blank page when browsing to /hap/api/mypic I don't know if anyone else gets that, I also just have a green background at the top right when i click on my name, not a picture.
Posted

[h=1]Server Error in '/HAP' Application.


[/h]

[h=2]Exception of type 'System.Exception' was thrown.

[/h]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.Exception: Exception of type

'System.Exception' was thrown.

 

Source

Error:

 

 

[TABLE=width: 100%]

 

 

[TR]

 

[TD]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. [/TD]

[/TR]

[/TABLE]

 

Stack

Trace:

 

 

[TABLE=width: 100%]

 

 

[TR]

 

[TD]

[Exception: Exception of type 'System.Exception' was thrown.] HAP.Web.API.MyPic.ProcessRequest(HttpContext context) +1279[Exception: Creating Directory Search and Searching for then current userFound 0 results, processing 1st result] HAP.Web.API.MyPic.ProcessRequest(HttpContext context) +1525 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270[/TD]

[/TR]

[/TABLE]

 

 


Version Information: Microsoft .NET Framework Version:4.0.30319;

ASP.NET Version:4.0.30319.272

Posted

It's not finding the user you are logging in as, which is odd, if it was working please revert to the official release, this is just for testing purposes

 

Exception: Creating Directory Search and Searching for then current user

Found 0 results, processing 1st result]

 

Try this dll next, make sure to copy both files, the pdb file contains debug information.

 

This dll will throw an error regardless, but it will show, in the trace, what it's doing and a rough estimate of where it's getting into trouble.

 

This one will show the LDAP query it's running, so you can run the identical query and see what's going wrong

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...