mattgrimley Posted May 16, 2012 Posted May 16, 2012 Hey Nick, I might be jumping the gun (again), but i updated all my code from "source-code" and the icons display a bit funny..
nickbro Posted May 16, 2012 Author Posted May 16, 2012 Odd it should work. The icon needs to be ~/images/icons/metro/xx/yyy.png, which in the UI should get translated to /api/iconcache/64/64/images/icons/metro/xx/yyy.png which actually is ~/app_data/iconcache/yyy-64x64.png
mattgrimley Posted May 16, 2012 Posted May 16, 2012 hmmm The icon loads full size if i enter the URL: https: //site.school.lea.sch.uk/beta/images/icons/metro/office/excel.png Should I be able to call the resized icon by entering the following, because i get a 404 - File or directory not found: https: //site.school.lea.sch.uk/beta/api/iconcache/64/64/images/icons/metro/office/excel.png The iconcache folder is empty (with the exception of the placeholder.txt file). Have I messed up a permission at some point on my test server? I dont have a physical api folder, but i presume i shouldnt.. right? Cheers, Matt (P.S. My HAP installs havent resized icons for as long as i can remember - i've always resized custom icons to 64x64 before uploading them..)
nickbro Posted May 16, 2012 Author Posted May 16, 2012 Make the icon ~/images/icons/metro/office/excel.png instead of https: //site.school.lea.sch.uk/images/icons/metro/office/excel.png. It may not be iconcache, that was off the top of my head, it's actually api/tiles/icons/64/64/images/icons/metro/office/excel.png
mattgrimley Posted May 16, 2012 Posted May 16, 2012 Sorry, i wasnt clear - The reference in the config is exactly as you recommend: ~/images/icons/metro/office/excel.png. I still get the same errors when i try to load directly the api/tiles/icons/64/64/images/icons/metro/office/excel.png URL.. Server Error 404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. There must be something doohicky with my IIS... should i have an API folder in IIS?
mattgrimley Posted May 21, 2012 Posted May 21, 2012 Hey Nick, Thought i'd do a refresh with the SourceCode version as you've been playing with the API stuff more (I was hoping it might kick my back into life, but alas i've broken it more).. I presume i need updated DLL's? As I'm getting an "Object reference not set to an instance of an object" error on logging on.. 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: 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: [NullReferenceException: Object reference not set to an instance of an object.] HAP.Web.Controls.Announcement.Page_Load(Object sender, EventArgs e) +50 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24 System.Web.UI.Control.LoadRecursive() +70 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Control.LoadRecursive() +189 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063 i'll er...
nickbro Posted May 21, 2012 Author Posted May 21, 2012 You need to update all of the file from source control, as some of the aspx and ascx files have changed, specifically in the ~/controls/ folder.
mattgrimley Posted May 21, 2012 Posted May 21, 2012 (edited) Still not working, sorry to be a pain @nickbro - i did copy all of the files (except the .cs and .csproj files) from the zip but still not working.. i even rebooted the server in case of any odd server-side caching etc. I also removed any files not in the zip (excluding the config and dll files), so i may have removed something inadvertently omitted.. Any other ideas? Cheers, Matt P.S. This is not on my "production server", so my main site remains fully functional! Edited May 21, 2012 by mattgrimley
nickbro Posted May 21, 2012 Author Posted May 21, 2012 Most of the HAP+ dlls have been updated. The one that your looking for here is HAP.Web.dll. BUt you will also need HAP.BookingSystem, HAP.MyFiles, and HAP.HelpDesk, as well as the new HAP.Web.Configuration
mattgrimley Posted May 21, 2012 Posted May 21, 2012 Ahh okay mate. My bad. The dll's need to be compiled and my version of c# won't open the files (Visual C# 2010 Express) - I seem to remember it previously opened but wouldnt compile them as a limitation of the express editions anyway. I'll wait till proper releases in the future unless i get my mits on a fuller version of VS Matt
mattgrimley Posted May 21, 2012 Posted May 21, 2012 thanks for that - i'm a step closer, but getting a "Parameter is not valid" error now: Parameter is not valid. 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.ArgumentException: Parameter is not valid. Source Error: Line 27: $(document).ready(function () { Line 28: hap.livetiles.Init([ Line 29: <%#gettiles((HAP.Web.Configuration.LinkGroup)Container.DataItem)%> Line 30: ]); Line 31: }); Source File: c:\inetpub\wwwroot\beta\Default.aspx Line: 29 Stack Trace: [ArgumentException: Parameter is not valid.] System.Drawing.Bitmap..ctor(String filename) +749487 HAP.Web.LiveTiles.IconCache.GetColour(String icon) +1268 [Exception: ~/#calendar] HAP.Web.LiveTiles.IconCache.GetColour(String icon) +2607 HAP.Web.Default.gettiles(Object o) +1136 ASP.default_aspx.__DataBind__control8(Object sender, EventArgs e) in c:\inetpub\wwwroot\beta\Default.aspx:29 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +304 System.Web.UI.Control.DataBindChildren() +11426631 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321 System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +185 System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +627 System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +167 HAP.Web.Default.Page_Load(Object sender, EventArgs e) +755 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064 Any thoughts on that? Thanks again Nick! Matt
nickbro Posted May 21, 2012 Author Posted May 21, 2012 Open the ~/app_data/hapConfig.xml Find any references to #calendar, replace it with ~/images/icons/metro/applications/calendar.png For the ME icon, the icon url is: ~/images/icons/metro/folders-os/UserNo-Frame.png BookingSystem & Calendar are: ~/images/icons/metro/applications/calendar.png
mattgrimley Posted May 21, 2012 Posted May 21, 2012 Damn!! It works lovely!! I Even have correctly reformatted icon sizes AND coloured tiles! Whatever you fixed, you fixed it good n proper! I'll spend a couple of days testing it, then i might try it live for bit! Thanks again for your patience! I'm intrigued by the tile colour selection. How does it choose the colour? And how best to manipulate that choice? (i.e. i tried editing the colors.xml (typo in that filename btw (except for the Americans)) but it doesn't seem to get re-written. It's looking really, really pretty Can't wait to get some users on it! Massive well done Nick. This whole Tile/Colour thing is really really nice!
nickbro Posted May 21, 2012 Author Posted May 21, 2012 It's the top 1 pixel of the source file, it then makes that colour transparent. Sorry about the loss of the u, CSS is without the u
mattgrimley Posted May 21, 2012 Posted May 21, 2012 nope, of course you are right.. hadn't connected the file-name to the programatic function of it. spelling it "ou" would in-fact be wrong!! Having a fun time playing with the icons now - It doesnt seem to like any transparency in the files, so long as i remove that (easiest way is to save as 24bit rather than 32bit - thus removing the alpha channel) it works really well! Thanks again, expect a couple more reports during this week.. though i suppose not too many of the sub-sections have changed too much and the main tiles etc are working really quite robustly.. Cheers anyway, Matt
nickbro Posted May 22, 2012 Author Posted May 22, 2012 the transparency was really odd to get working correctly, as it didn't seem to like it at all. If you are using any of my other icons, the transparency should work, though they'll appear blue.
mattgrimley Posted May 22, 2012 Posted May 22, 2012 Yeah, to be clear, it works fine with transparency enabled - but as you say, the tiles appear blue. What is wierd is that if my icon contains transparency, it seems to ignore the colour of the top left pixel when selecting a custom tile background colour. If i open the same icon and save it out as 24 bit (thus removing the alpha channel), that top left pixel is then successfully used to define the background colour. Ultimately the icon handling works perfectly - with a little guidance for those wishing to customise their own icons / background colours.
mattgrimley Posted May 23, 2012 Posted May 23, 2012 Just updating with a screenie of my test site I've been busy formatting icons and things are coming along very nicely indeed! Things seem to be running very stably for me @nickbro For once i thought i'd post without asking for help! Matt
mattgrimley Posted June 18, 2012 Posted June 18, 2012 Hey @nickbro Things are running very smoothly for us and im running this version on the main site at the moment. The only issue i appear to have is related to the setup.aspx page - I dont know if you have even looked at it yet, so it may be working as expected.. but just incase it is a bug, here goes : When i load the setup page, i don't see the expected tabs and instead everything lists on one flat page.. Much of it appears "gimped" with extra forms and pictures not in the right place etc. No errors are generated in the debug log. I tried the setup.aspx (and indeed the whole download from the codeplex site) but i just get errors which i presume relate to dll's. Am i just jumping the gun there or should that be loading? (Hapconfig.xml reports my version as 8.0.519.2200) Cheers, Matt
nickbro Posted June 18, 2012 Author Posted June 18, 2012 The setup file was changed for the alpha trunk, you will need to get it from source control
mattgrimley Posted June 18, 2012 Posted June 18, 2012 The setup file was changed for the alpha trunk, you will need to get it from source control Thanks, but already tried that and it errors (can't remember what the error was now, but i presume it requires newer dll's). As it's not something that i need, i'll just wait till you either do your next full release or have another bunch of things you want testing
peterdwyer Posted August 30, 2012 Posted August 30, 2012 I am having trouble with getting custom icons to display properly. They did have white backgrounds and, since I've moved to V8, the tiles show the icon on a white background which is fine, except that the writing below the icon is also white (white on white). So I re-coloured the borders of the custom icons, but they still show as white on white. From the dialogue above, I'd expect the tile background to be the colour of the border Example attached shows (a) a sample tile for "clickview" highlighted in red box - note that it's showing white on white (b) the actual png file for "clickview" Thanks
nickbro Posted August 30, 2012 Author Posted August 30, 2012 Delete the files in the ~/App_Data/Cache/ folder so HAP can rebuild the cache 1
edie209 Posted September 1, 2012 Posted September 1, 2012 I have got V8 up and running with just basics at the moment however I thought I would try and add a few extras last night but completely failed. I tried adding the server uptime and when I log on the tile is there but I get a message in red about unable to log on on the left hand side of the that disappears. I have also tried the calendar live tile and that fails too. Is there something else that need to be configured? And one last question should you be able to go straight into outlook web access without logging on?
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