+ Post New Thread
Page 2 of 6 FirstFirst 123456 LastLast
Results 16 to 30 of 81
Home Access Plus+ Thread, [HAP+][v8] - Live Tiles in Projects:; If anyone wants to write a live tile, HAP+ will quite happily support this if you know javascript, edit ~/scripts/hap.web.js.js. ...
  1. #16
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,477
    Thank Post
    37
    Thanked 485 Times in 417 Posts
    Rep Power
    109
    If anyone wants to write a live tile, HAP+ will quite happily support this if you know javascript, edit ~/scripts/hap.web.js.js. You should find my live tiles, you can make a jQuery AJAX request for a JSON from a webservice and parse it to your own liking.

  2. #17
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    Thanks for the zip Nick

    Getting a Compiler Error Message: CS1061: 'ASP.default_aspx' does not contain a definition for 'editmydetails_Click' and no extension method 'editmydetails_Click' accepting a first argument of type 'ASP.default_aspx' could be found (are you missing a using directive or an assembly reference?)

    Am i missing a file or have a just messed something up in the install?

    (This is just my play server, so nothing "production" is broke!)

  3. #18
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,477
    Thank Post
    37
    Thanked 485 Times in 417 Posts
    Rep Power
    109
    Make sure the HAP.Web.dll has been updated, as well as the default.aspx page, I've deleted code references so using the old homepage and the new dll wont work

  4. #19
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    okay, a step closer The default.aspx file within the zip on the previous page is an old one. The site is loading now, but i am getting 3 error messages. IE and Chrome just report "Internal Server Error". However, Firefox reports:

    1> Exchange Server doesn't support the requested version.
    2> Method not found: 'Void HAP.Data.BookingSystem.Booking..ctor(System.Xml.Xm lNode, Boolean)'.

    The mail server is Exchange 2010.. I have added what i thought you asked to the SMTP bit in the hapconfig.xml file.. it now reads like this:
    <SMTP server="server.domain.local" port="25" enabled="True" ssl="False" from="Freman Portal" fromaddress="support@domain.lea.sch.uk" user="" password="" exchange="mail.school.lea.sch.uk"/>

    Does that look correct?

    The page loads and The Me tab, the My Files tab and the Help Desk tab are all excitingly animated! The Access my emails, Calendar and "Booking System" buttons are all quiet though.


  5. #20
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,477
    Thank Post
    37
    Thanked 485 Times in 417 Posts
    Rep Power
    109
    might be worth replacing that file with this one on codeplex source control: Home Access Plus&#43

  6. #21
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    Tried that and it does the same

    Firebug shows me three errors:

    (1)https://portal.school.lea.sch.uk/beta/api/livetiles/exchange/unread
    500 Internal Server Error

    <Exchange Server doesn't support the requested version.>
    (2)https://portal.school.lea.sch.uk/beta/api/livetiles/exchange/appointments
    500 Internal Server Error

    <Exchange Server doesn't support the requested version.>
    (3)https://portal.school.lea.sch.uk/beta/api/BookingSystem/Search?%222012-04-30T11:05:24.385Z%22
    500 Internal Server Error

    <Method not found: 'Void HAP.Data.BookingSystem.Booking..ctor(System.Xml.Xm lNode, Boolean)'.>

    Do I need to post more of the error details?

    I presume the SMTP "exchangeserver" bit is right, because if i change the domain name, i get a different error about not finding the domain name.
    <SMTP server="servername.school.local" port="25" enabled="True" ssl="False" from="Portal" fromaddress="support@school.lea.sch.uk" user="" password="" exchange="mail.school.org.uk" />

    My exchange server is "MS Exchange Server 2010 SP1", version number is 14.2 (Build number 218.15).

    For reference, to check your exchange server version, you can run the following from powershell on the server:
    Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
    Get-ExchangeServer |ft identity,*DisplayVersion

    and check against the table at:
    Exchange Server and Update Rollups Builds Numbers - TechNet Articles - United States (English) - TechNet Wiki

  7. #22
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,477
    Thank Post
    37
    Thanked 485 Times in 417 Posts
    Rep Power
    109
    Very odd, unless the DLL microsoft provide is version specific, i.e. Exchange 2010 SP2 Update Rollup 2

  8. #23
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    meh.. i was trying to avoid the service pack as the last time i installed a roll-up it borked my server!
    This is as good a reason as any to "man-up" i suppose!

    I'll let you know if it works after my update.

    Though i presume the 3rd error is unrelated? (it's from the bookingsystem)

    Matt

  9. #24

    Join Date
    Apr 2012
    Posts
    41
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    5
    Quote Originally Posted by mattgrimley View Post
    (1)portal.school.lea.sch.uk/beta/api/livetiles/exchange/unread
    500 Internal Server Error

    <Exchange Server doesn't support the requested version.>
    (2)portal.school.lea.sch.uk/beta/api/livetiles/exchange/appointments
    500 Internal Server Error

    <Exchange Server doesn't support the requested version.>

    My exchange server is "MS Exchange Server 2010 SP1", version number is 14.2 (Build number 218.15).
    EWS Dotnet component uses the latest version by default, but can be initialised to use an older version. [msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.exchangeservic e.exchangeservice(v=exchg.80).aspx]

    So to fix this without updating exchange to SP2, if you have visual studio installed, it should be possible to fix this by editing exchangeconnector.cs in the HAP.Web.LiveText.

    Changing the line that reads:

    ExchangeService service = new ExchangeService();

    To:

    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP1);

    in your case.

    Valid exchange server versions in this enumeration are currently: Exchange2007, Exchange2007_SP1,Exchange2010,Exchange2010_SP1,Exc hange2010_SP2

    I'm thinking a dropdown list in the setup that allows someone to specify the current exchange server version

    Paul

  10. 2 Thanks to minimoo:

    mattgrimley (30th April 2012), nickbro (30th April 2012)

  11. #25

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    115
    Guess it depends what you're doing, but all my EWS code deliberately uses ExchangeVersion.Exchange2007_SP1 and that happily works (lots of mailbox enumeration, reading and writing) with newer Exchange versions e.g. Exchange 2010 SP2.

  12. #26
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,477
    Thank Post
    37
    Thanked 485 Times in 417 Posts
    Rep Power
    109
    Thanks all, will drop it down to 2007SP1

  13. #27
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,477
    Thank Post
    37
    Thanked 485 Times in 417 Posts
    Rep Power
    109
    BTW, welcome Paul, the other developer on HAP+ Home Access Plus&#43 - People

  14. #28
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    thanks for the info @minimoo - i didnt get to test it as i'd already started the exchange upgrade. I can confirm that you are on the right track though.. It certainly does work now the exchange server is upgraded.

    I do still get one error however @nickbro

    POST https://portal.school.lea.uk/beta/ap...:27:51.726Z%22
    500 Internal Server Error


    The "post" JSON Query looks correct.. it displays my username in quotes.

    The response is:
    <Fault xmlns="http://schemas.microsoft.com/ws/2005/05/envelope/none"><Code><Value>Receiver</Value><Subcode><Value xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</Value></Subcode></Code><Reason><Text xml:lang="en-GB">Method not found: 'Void HAP.Data.BookingSystem.Booking..ctor(System.Xml.Xm lNode, Boolean)'.</Text></Reason><Detail><ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><HelpLink i:nil="true"/><InnerException i:nil="true"/><Message>Method not found: 'Void HAP.Data.BookingSystem.Booking..ctor(System.Xml.Xm lNode, Boolean)'.</Message><StackTrace> at HAP.Web.API.BookingSystem.Search(String Query)
    at SyncInvokeSearch(Object , Object[] , Object[] )
    at System.ServiceModel.Dispatcher.SyncMethodInvoker.I nvoke(Object instance, Object[] inputs, Object[]&amp; outputs)
    at System.ServiceModel.Dispatcher.DispatchOperationRu ntime.InvokeBegin(MessageRpc&amp; rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage5(MessageRpc&amp; rpc)
    at System.ServiceModel.Dispatcher.MessageRpc.Process( Boolean isOperationContextSet)</StackTrace><Type>System.MissingMethodException</Type></ExceptionDetail></Detail></Fault>

    My hap.data.dll is not a new one.. should it be? i have v2.2.0.0..

    Other than that, it's starting to look really snazzy!

  15. #29
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,477
    Thank Post
    37
    Thanked 485 Times in 417 Posts
    Rep Power
    109
    I may of updated the data dll, so that could be the problem.

    Attached is my HAP.Data.dll

  16. Thanks to nickbro from:

    mattgrimley (30th April 2012)

  17. #30
    mattgrimley's Avatar
    Join Date
    Jun 2011
    Location
    Bedfordshire
    Posts
    316
    Thank Post
    35
    Thanked 21 Times in 19 Posts
    Blog Entries
    1
    Rep Power
    10
    Quote Originally Posted by nickbro View Post
    I may of updated the data dll, so that could be the problem.
    Attached is my HAP.Data.dll
    It's Alive!

    That hap.data.dll did the trick.
    I'll spend tomorrow repopulating the groups (i reverted back to yours whilst troubleshooting), but it is looking really snazzy!
    This is only installed on my offline system at the moment, but - wow, the removal of scrollbars makes it VERY tablet and iframe friendly! I'll have a more thorough test tomorrow and feedback any more issues!

    AND the server up-time plugins work perfectly!

    Thanks again - I do love being at the bleeding edge,
    Matt

SHARE:
+ Post New Thread
Page 2 of 6 FirstFirst 123456 LastLast

Similar Threads

  1. HAP+ v8 Feature Requets
    By nickbro in forum Home Access Plus+
    Replies: 121
    Last Post: 17th September 2012, 03:15 PM
  2. [HAP+][v8] My Files
    By nickbro in forum Home Access Plus+
    Replies: 66
    Last Post: 26th February 2012, 05:01 PM
  3. [HAP+][v8] - File Server Resource Management Quota Testers
    By nickbro in forum Home Access Plus+
    Replies: 3
    Last Post: 18th February 2012, 10:07 PM
  4. [HAP+][v8] - Help Documents
    By nickbro in forum Home Access Plus+
    Replies: 11
    Last Post: 6th January 2012, 12:52 AM
  5. poptech being streamed live
    By russdev in forum General Chat
    Replies: 0
    Last Post: 28th September 2005, 07:50 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •