nickbro Posted December 11, 2012 Posted December 11, 2012 ok, that's odd. It works fine for me, after clearing my cache.
joyer99 Posted December 12, 2012 Posted December 12, 2012 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.
ShizukaNaHaji Posted December 12, 2012 Author Posted December 12, 2012 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.
nickbro Posted December 12, 2012 Posted December 12, 2012 I'll have to look into why this isn't working as it should be, it does for me anyhow
mattgrimley Posted December 13, 2012 Posted December 13, 2012 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? 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.
ShizukaNaHaji Posted December 13, 2012 Author Posted December 13, 2012 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.
mattgrimley Posted December 13, 2012 Posted December 13, 2012 (edited) hmm, i think there may be a size limitation on the thumbnail image.. 100Kb maximum file size and possibly even a width x height limit.. The thumbnailPhoto Active Directory Attribute Explained « Cjwdev (Though some places are saying it's actually a 10Kb maximum file size..) Edited December 13, 2012 by mattgrimley
dezt Posted December 13, 2012 Posted December 13, 2012 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.
ShizukaNaHaji Posted December 13, 2012 Author Posted December 13, 2012 We set image size to 96x96 still no joy. Is there cache i have to clear somewhere other than IE cache
nickbro Posted December 13, 2012 Posted December 13, 2012 A) Edit ~/style/basestyle.css, add to line 152: background-repeat: no-repeat;[/code B) Now fixed Will release another patch update later today 1
dezt Posted December 13, 2012 Posted December 13, 2012 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?
ShizukaNaHaji Posted December 13, 2012 Author Posted December 13, 2012 Nick is going to release a patch later to deal with the issue. I'd hang tight for the patch.
ShizukaNaHaji Posted December 13, 2012 Author Posted December 13, 2012 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??
nickbro Posted December 13, 2012 Posted December 13, 2012 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
mattgrimley Posted December 13, 2012 Posted December 13, 2012 (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 December 13, 2012 by mattgrimley i can see the attachment now!
ShizukaNaHaji Posted December 13, 2012 Author Posted December 13, 2012 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?
dezt Posted December 13, 2012 Posted December 13, 2012 @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.
ShizukaNaHaji Posted December 13, 2012 Author Posted December 13, 2012 Same for me, white background.
nickbro Posted December 13, 2012 Posted December 13, 2012 Ok, give this one a try, hopefully it'll give a list of what it's doing
ShizukaNaHaji Posted December 13, 2012 Author Posted December 13, 2012 [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
mattgrimley Posted December 13, 2012 Posted December 13, 2012 identical error here (but not for my account, which works)...
nickbro Posted December 13, 2012 Posted December 13, 2012 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now