Premise Change HostAddress on default website?

Motorola Premise
I posted an updated version of Web Services with more detailed logging around the Premise Connection.  Don't forget to make sure the logging level is set for Debug in the .log4net file.
 
Definitely more error messages...
 
Code:
2015-01-25 11:06:56,936 [5] INFO  -      [PremiseWebServiceSVCLogger] Premise Web Services OnStart command received.  Worker thread starting
2015-01-25 11:06:56,946 [5] INFO  -      [PremiseWebServiceSVCLogger] Premise Web Services worker thread started
2015-01-25 11:06:56,958 [7] INFO  -      [PremiseWebServicesDriverLogger] WebServicesDriver Server method started
2015-01-25 11:06:56,972 [7] DEBUG -      [PremiseWebServicesDriverLogger] Found IP Address:  192.168.0.210
2015-01-25 11:06:56,972 [7] DEBUG -      [PremiseWebServicesDriverLogger] Found IP Address:  127.0.0.1
2015-01-25 11:06:56,996 [7] INFO  -      [PremiseWebServicesDriverLogger] WebServicesDriver ServiceHost created using service URL:  net.tcp://Holly:8888/PremiseWebService
2015-01-25 11:06:56,996 [7] INFO  -      [PremiseWebServicesDriverLogger] WebServicesDriver NetTCPBinding created
2015-01-25 11:06:56,996 [7] INFO  -      [PremiseWebServicesDriverLogger] WebServicesDriver ServiceHost endpoint added
2015-01-25 11:06:56,996 [7] INFO  -      [PremiseWebServicesDriverLogger] Starting metadata service on:  http://Holly:8889/PremiseWebService
2015-01-25 11:06:56,996 [7] INFO  -      [PremiseWebServicesDriverLogger] WebServicesDriver ServiceHost opening...
2015-01-25 11:06:56,996 [7] DEBUG -      [PremiseWebServicesDriverLogger] Service opening event received
2015-01-25 11:06:57,016 [7] DEBUG -      [PremiseWebServicesDriverLogger] Service opened event received
2015-01-25 11:06:57,016 [7] INFO  -      [PremiseWebServicesDriverLogger] WebServicesDriver ServiceHost opened, waiting for clients
2015-01-25 11:06:57,016 [7] INFO  -      [PremiseWebServicesDriverLogger] WebServicesDriver starting subscription checker timer
2015-01-25 11:08:46,298 [17] INFO  -      [PremiseWebServiceLibLogger] PremiseBroker::Connect called for holly with Username:  
2015-01-25 11:08:46,299 [17] INFO  -      [PremiseWebServiceLibLogger] PremiseBroker::Connect - Creating new session to holly
2015-01-25 11:08:46,307 [17] DEBUG -      [PremiseWebServiceLibLogger] clsPremiseconnection::Constructor - Subscribing to connection events
2015-01-25 11:08:46,309 [17] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::Constructor - Attempting to connect to Premise Server:  holly
2015-01-25 11:08:46,310 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  1
2015-01-25 11:08:46,311 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Connecting event happened
2015-01-25 11:08:46,321 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  2
2015-01-25 11:08:46,321 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Failed to connect event happened
2015-01-25 11:08:46,323 [17] ERROR -      [PremiseWebServiceLibLogger] clsPremiseconnection::Constructor - Unable to connect to Premise Server:  holly
2015-01-25 11:08:48,335 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:08:50,344 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:08:52,360 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:08:54,372 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:08:56,384 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:08:58,396 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:00,408 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:01,329 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseConnection::ReconnectTimerEventProcessor - Reconnect timer triggered
2015-01-25 11:09:01,329 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::Reconnect - Attempting to reconnect to Premise Server:  holly
2015-01-25 11:09:01,330 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  1
2015-01-25 11:09:01,330 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Connecting event happened
2015-01-25 11:09:01,341 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  2
2015-01-25 11:09:01,341 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Failed to connect event happened
2015-01-25 11:09:01,425 [19] INFO  -      [PremiseWebServiceLibLogger] PremiseBroker::Connect called for holly with Username:  
2015-01-25 11:09:01,425 [19] INFO  -      [PremiseWebServiceLibLogger] Session already exists.  Reutilizing session with holly
2015-01-25 11:09:01,426 [19] DEBUG -      [PremiseWebServiceLibLogger] Function GetPremiseConnection called
2015-01-25 11:09:01,427 [19] ERROR -      [PremiseWebServiceLibLogger] PremiseBroker::Connect - Failed to retrieve sys://Home object:  Object reference not set to an instance of an object.
2015-01-25 11:09:02,421 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:04,433 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:06,446 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:07,678 [19] INFO  -      [PremiseWebServiceLibLogger] PremiseBroker::Connect called for holly with Username:  
2015-01-25 11:09:07,678 [19] INFO  -      [PremiseWebServiceLibLogger] Session already exists.  Reutilizing session with holly
2015-01-25 11:09:07,678 [19] DEBUG -      [PremiseWebServiceLibLogger] Function GetPremiseConnection called
2015-01-25 11:09:07,679 [19] ERROR -      [PremiseWebServiceLibLogger] PremiseBroker::Connect - Failed to retrieve sys://Home object:  Object reference not set to an instance of an object.
2015-01-25 11:09:08,458 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:10,470 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:12,482 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:14,494 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:16,335 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseConnection::ReconnectTimerEventProcessor - Reconnect timer triggered
2015-01-25 11:09:16,335 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::Reconnect - Attempting to reconnect to Premise Server:  holly
2015-01-25 11:09:16,335 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  1
2015-01-25 11:09:16,335 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Connecting event happened
2015-01-25 11:09:16,349 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  2
2015-01-25 11:09:16,349 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Failed to connect event happened
2015-01-25 11:09:16,349 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseConnection::ReconnectTimerEventProcessor - Reconnect timer triggered
2015-01-25 11:09:16,349 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::Reconnect - Attempting to reconnect to Premise Server:  holly
2015-01-25 11:09:16,350 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  1
2015-01-25 11:09:16,350 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Connecting event happened
2015-01-25 11:09:16,360 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  2
2015-01-25 11:09:16,360 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Failed to connect event happened
2015-01-25 11:09:16,506 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:18,518 [20] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:20,534 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:22,544 [20] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:24,556 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:26,568 [20] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:28,583 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:30,595 [20] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:31,360 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseConnection::ReconnectTimerEventProcessor - Reconnect timer triggered
2015-01-25 11:09:31,360 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::Reconnect - Attempting to reconnect to Premise Server:  holly
2015-01-25 11:09:31,360 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  1
2015-01-25 11:09:31,360 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Connecting event happened
2015-01-25 11:09:31,371 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  2
2015-01-25 11:09:31,371 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Failed to connect event happened
2015-01-25 11:09:31,371 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseConnection::ReconnectTimerEventProcessor - Reconnect timer triggered
2015-01-25 11:09:31,371 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::Reconnect - Attempting to reconnect to Premise Server:  holly
2015-01-25 11:09:31,371 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  1
2015-01-25 11:09:31,371 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Connecting event happened
2015-01-25 11:09:31,381 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  2
2015-01-25 11:09:31,381 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Failed to connect event happened
2015-01-25 11:09:31,382 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseConnection::ReconnectTimerEventProcessor - Reconnect timer triggered
2015-01-25 11:09:31,382 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::Reconnect - Attempting to reconnect to Premise Server:  holly
2015-01-25 11:09:31,382 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  1
2015-01-25 11:09:31,382 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Connecting event happened
2015-01-25 11:09:31,391 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  2
2015-01-25 11:09:31,391 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Failed to connect event happened
2015-01-25 11:09:31,391 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseConnection::ReconnectTimerEventProcessor - Reconnect timer triggered
2015-01-25 11:09:31,392 [4] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::Reconnect - Attempting to reconnect to Premise Server:  holly
2015-01-25 11:09:31,392 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  1
2015-01-25 11:09:31,392 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Connecting event happened
2015-01-25 11:09:31,401 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Premise connection state changed=  2
2015-01-25 11:09:31,401 [18] INFO  -      [PremiseWebServiceLibLogger] clsPremiseconnection::onChangeConnectionState - Failed to connect event happened
2015-01-25 11:09:32,605 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:34,620 [20] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:36,632 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:38,644 [20] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:40,657 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:42,669 [20] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
2015-01-25 11:09:44,681 [4] ERROR -      [PremiseWebServiceLibLogger] clsPremiseConnection::HearbeatTimerProcessor - Premise server not responding to heartbeat-Catchall Object reference not set to an instance of an object.
 
I see the problem, but I don't know how to fix it.  It is not connecting to Premise.  Do you have security enabled on your server where you need a username and password on Builder? 
 
A bit further.  Much more in the log.  The Metro app starts up and spins for a bit, then minimizes.  Every time.
 
Here is the log (attached this time, as it's a bit larger)
 
 

Attachments

  • PremiseWebServices.log_15-01-25.log.txt
    1.7 KB · Views: 2
Hmmm.  The log you attached may not be complete.  LOG4NET does roll-over logging so there are probably a couple you need to attach.  Would you mind grabbing the newest log files and posting them.  They should end with .1,.2, .3 etc...
 
Now it's definitely talking.   Looks like it's getting objects correctly and even communicating with callbacks to the PremiseMetro app.   When you say PremiseMetro is "minimizing" do you mean crashing or literally minimizing onto the task bar?  It's a metro app, so it should never really "minimize". 
 
I am using Classic Shell on my desktop and basically alway work from the old style desktop.  But when Premise Metro starts, it goes full screen like nay other Metro app.  Then it spins for a moment and then minimizes to the taskbar.
 
I just started it from the standard Metro screen and it did the same thing.  I will next try it on my laptop.  I'll uninstall Classic Shell and see if that is causing any of this.
 
I have uninstalled Classic Shell and PremiseMetro on my laptop.  Rebooted to the normal Windows 8.1 start screen.  Reinstalled PremiseMetro.  The app starts and I get in to the settings without issue.  I then enter all of the info and refresh with the back button.
 
This time it started and very briefly flashed a few objects on the screen and then the app minimized again and sent me back to the start screen.  I went to the desktop and saw the app minimized on the taskbar.  When I click on it, it comes up and shows your splash screen goes black for a second and minimizes again.
 
So I shut down the service, deleted all of the logs.  Restarted the service and tried again.  Left it running minimized for a bit.  Still the same results.  Here is the latest log.
 
http://thebitwrangler.com/sites/default/files/PremiseWebServices.log_15-01-25-3.zip
 
Nothing obvious in the Web services log.  I wonder if there's something in your home hierarchy that I didn't anticipate in the coding of PremiseMetro.  I thought I took care in making the code pretty defensive.  I've got to dig into that a bit now...
 
In the meantime, I am going to throw up another box and do a clean install and see what happens.  If all goes well, I may do exports from the old system and start importing a bit at a time to see if any one thing causes the issue.
 
Sam,
Found the problem!  Looks like the WeatherUnderground module has a class called DayWeather that is very similar to the DayWeather in my XMLWeather module.  However, in my version DayWeather defines DayIconCode and NightIconCode as integers and your version has it as a string.  PremiseMetro has a DayWeather UI class that uses the integer value from my version of DayWeather as an index into a table to pull the weather icon for rendering, but because your version is a string, the index is invalid and an exception is thrown.  So much for defensive programming.    In the interim, I'll put a version of PremiseMetro together that ignores the value if it's not an integer.  I need to think about an elegant way to make any version of DayWeather compatible with PremiseMetro.
 
Maybe as a community we could define a standard class for DayWeather and agree never to change the base properties.  One could always inherit or extend the class, but the base properties should remain the same.  That would allow all of the various UIs out there to work, and let us use our favorite weather sources to populate our community standard DayWeather class.
 
Great news!
 
Of course, I could make it easy and switch to XML Weather :)
 
And getting a community this large to agree....
 
Ahhh. Weatherunderground would explain my problem with the Metro, as well
 
Back
Top