mattgrimley Posted December 13, 2012 Posted December 13, 2012 Okay, for the user that wasnt working.. it now loads the default white man image (not the custom one) without any errors.. For my account, i now get an error: -------------------- Server Error in '/beta' Application. Exception of type 'System.Exception' was thrown. 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: 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. Stack Trace: (Exception: Exception of type 'System.Exception' was thrown.) HAP.Web.API.MyPic.ProcessRequest(HttpContext context) +1475 (Exception: Creating Directory Search and Searching for then current user Using filter: (&(objectClass=user) (cn=mrg)) Found 1 results, processing 1st result Found 1 thumnbnailPhotos Data found, making picture ) HAP.Web.API.MyPic.ProcessRequest(HttpContext context) +1732 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270
ShizukaNaHaji Posted December 13, 2012 Author Posted December 13, 2012 I get a full page grey background with a sihoutte of the default logo.
ShizukaNaHaji Posted December 13, 2012 Author Posted December 13, 2012 @mattgrimley how do you attach your pictures to AD? I wonder if it somthing to do with the way we attach? Its odd that you can get it working for some accounts but not others? I cant get it to work at all.
mattgrimley Posted December 13, 2012 Posted December 13, 2012 My network management software lets me do it (really just for Outlook purposes although i had naive hopes that Windows might use it at some point)! It converts the file to to the correct dimensions and size.. If i compare the thumbnailphoto field for both users, they are identical.. so i suspect we are missing something else.. but why it would work for me i haven't the foggiest! (yet)
dezt Posted December 13, 2012 Posted December 13, 2012 I'm just getting the grey standard image with the latest dll. @ShizukaNaHaji I just used this Cjwdev | AD Photo Edit for my photo, it works in outlook and office 365.
nickbro Posted December 13, 2012 Posted December 13, 2012 You may need to go to the login page and log back in. You should be getting an error like @mattgrimley His is saying that it's found the picture, which is good, it means that it should render it once I've taken the exception that is stopping it
dezt Posted December 13, 2012 Posted December 13, 2012 I've logged out, shut down IE9 and opened it up again, logged in and my picture is showing up as the grey image. I put the dll in the bin folder, is that where the pdb file goes as well? or have i put that in the wrong folder?
joyer99 Posted December 13, 2012 Posted December 13, 2012 Nick, Just tested it with the new dll and pdb files and got this error Server Error in '/HAPTEST' Application. -------------------------------------------------------------------------------- Exception of type 'System.Exception' was thrown. 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: 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. Stack Trace: [Exception: Exception of type 'System.Exception' was thrown.] HAP.Web.API.MyPic.ProcessRequest(HttpContext context) +1364 [Exception: Creating Directory Search and Searching for then current user Using filter: (&(objectClass=user) (sAMAccountName=testteacher)) Found 1 results, processing 1st result Found 1 thumnbnailPhotos Data found, making picture ] HAP.Web.API.MyPic.ProcessRequest(HttpContext context) +1621 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 Thanks!
nickbro Posted December 13, 2012 Posted December 13, 2012 Hopefully one more, try this dll. If it isn't working or loading the default icon, try looking in the event viewer 1
joyer99 Posted December 13, 2012 Posted December 13, 2012 Hey... That WORKED!! It worked for the User Menu up in the right hand corner. The Me tile under resources stayed the generic photo. Is this supposed to change as well? It doesn't matter for me because my users won't see that tile, but was just curious. Thanks for all of your help!
nickbro Posted December 13, 2012 Posted December 13, 2012 I haven't change the code for the tile yet, just the user menu
dezt Posted December 13, 2012 Posted December 13, 2012 @nickbro I'll give that dll a try in the morning and let you know what happens, is there 2 files in the zip? Do I put boh of hem in the bin folder if there is?
mattgrimley Posted December 14, 2012 Posted December 14, 2012 @nickbro confirmed working for all of my test accounts on the top right drop down (not as expected for the me tile) Thanks Nick!
nickbro Posted December 14, 2012 Posted December 14, 2012 This one should enable the live tile on the homepage to work
dezt Posted December 14, 2012 Posted December 14, 2012 @nickbro just tested, top right tile works, is there any way to make the picture fill the green square as my 96x96 dimensions leave a border around my picture, or should I be making the picture bigger?
nickbro Posted December 14, 2012 Posted December 14, 2012 HAP+ will resize the picture to 92x92 or which ever is less, as to keep the aspect ratio
mattgrimley Posted December 14, 2012 Posted December 14, 2012 sorry mate, white pawn bloke on both now..
dezt Posted December 14, 2012 Posted December 14, 2012 Am i right in thinking this is only working for the drop down menu at the moment, the live tile still shows the white image. Is there anywhere else that the image would be displayed on HAP+ that I need to check?
nickbro Posted December 14, 2012 Posted December 14, 2012 Just cache, it should be working. Check the JSON response for the livetiles request
nickbro Posted December 14, 2012 Posted December 14, 2012 Ok, bit of a doh moment, left some debug code in there, try this dll 3
dezt Posted December 14, 2012 Posted December 14, 2012 @nickbro It seems to be working for me, my pic shows up on the drop down menu at the top right, on the live tile and on the me page. Thanks for this.
ShizukaNaHaji Posted December 14, 2012 Author Posted December 14, 2012 @nickbro All sorted! Thats fantastic it works fine now!! THANK YOU!!!!
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