NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) v
« Previous 1 … 16 17 18 19 20 Next »
Windows Desktop/Sidebar Gadget with Recording Schedule

 
  • 0 Vote(s) - 0 Average
Windows Desktop/Sidebar Gadget with Recording Schedule
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#51
2011-10-18, 02:10 AM
UncleJohnsBand Wrote:Are you doing what this article outlines for calling a .Net web service from JS?

I was not setting the 'Content-Type' in the request header and it sounded like that might be the problem based on the article but unfortunately I still get the same error even when setting that appropriately. Would it be easy to append this XML data onto the end of 'InfoXML.aspx' (which I'm already reading) or would that be a pain?
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#52
2011-10-19, 03:53 AM (This post was last modified: 2011-10-19, 04:03 AM by UncleJohnsBand.)
cncb Wrote:I was not setting the 'Content-Type' in the request header and it sounded like that might be the problem based on the article but unfortunately I still get the same error even when setting that appropriately. Would it be easy to append this XML data onto the end of 'InfoXML.aspx' (which I'm already reading) or would that be a pain?

Learned that accessing web services via Javascript is inconsistent between browsers and because of Javascript security accessing web services outside of the host domain doesn't work.....so I took you lead and updated the services/infoxml.aspx page to handle the service call and write the result out in the reponse. To invoke just use infoxml.aspx?gadget=true and you will get the xml object for the pending and in-progress recordings.....leave off the parm and you get what you always did.

Cheers
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#53
2011-10-20, 01:48 AM (This post was last modified: 2011-10-21, 01:14 AM by UncleJohnsBand.)
UncleJohnsBand Wrote:Learned that accessing web services via Javascript is inconsistent between browsers and because of Javascript security accessing web services outside of the host domain doesn't work.....so I took you lead and updated the services/infoxml.aspx page to handle the service call and write the result out in the reponse. To invoke just use infoxml.aspx?gadget=true and you will get the xml object for the pending and in-progress recordings.....leave off the parm and you get what you always did.

Cheers

Ok...attached is the patch...just follow instructions above using the querystring ?gadget=true to get the pending and in-progress events.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#54
2011-10-20, 10:30 PM
I'm not sure if some of my files might be out-of-sync due to previous patches but I'm getting the following error when trying to use the parameter:

Code:
Invalid URI: The format of the URI could not be determined.
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.UriFormatException: Invalid URI: The format of the URI could not be determined.

Source Error:


Line 44:                 string URI = (String) Session["HostURI"];
Line 45:                 string url = URI + "/public/services/manageservice.asmx";
Line 46:                 mng.Url = url;
Line 47:                 string gadget = mng.getGadgetFeed();
Line 48:


Source File: c:\Users\Public\NPVR\web\public\services\InfoXML.aspx.cs    Line: 46
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#55
2011-10-21, 12:39 AM (This post was last modified: 2011-10-21, 03:40 AM by UncleJohnsBand.)
cncb Wrote:I'm not sure if some of my files might be out-of-sync due to previous patches but I'm getting the following error when trying to use the parameter:

Code:
Invalid URI: The format of the URI could not be determined.
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.UriFormatException: Invalid URI: The format of the URI could not be determined.

Source Error:


Line 44:                 string URI = (String) Session["HostURI"];
Line 45:                 string url = URI + "/public/services/manageservice.asmx";
Line 46:                 mng.Url = url;
Line 47:                 string gadget = mng.getGadgetFeed();
Line 48:


Source File: c:\Users\Public\NPVR\web\public\services\InfoXML.aspx.cs    Line: 46

Ok...I think I know what it is......when trying to access it via NEWA.....go to a secured page first then go to the infoxml.aspx page.....let me know what happens then. I think I may be setting that session variable in the login pages.....so if you went straight to infoxml.aspx without hitting login page first you would get this error. Patch posted.....
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#56
2011-10-21, 02:57 AM
UncleJohnsBand Wrote:Ok...I think I know what it is......when trying to access it via NEWA.....go to a secured page first then go to the infoxml.aspx page.....let me know what happens then. I think I may be setting that session variable in the login pages.....so if you went straight to infoxml.aspx without hitting login page first you would get this error. Patch posted.....

Sorry, I'm still getting an error (different one, see below). However, if I do go to the NEWA home page (where I am logged in) and then try to access infoxml.aspx with the parameter it is successful so I think you are right on the money with your assessment.

Code:
An existing connection was forcibly closed by the remote host
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.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

Source Error:


Line 386:        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/getGadgetFeed", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 387:        public string getGadgetFeed() {
Line 388:            object[] results = this.Invoke("getGadgetFeed", new object[0]);
Line 389:            return ((string)(results[0]));
Line 390:        }


Source File: c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\0a635572\38fd2de4\App_WebReferences.0cy53_9h.0.cs    Line: 388
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#57
2011-10-21, 03:21 AM (This post was last modified: 2011-10-22, 02:09 AM by UncleJohnsBand.)
cncb Wrote:Sorry, I'm still getting an error (different one, see below). However, if I do go to the NEWA home page (where I am logged in) and then try to access infoxml.aspx with the parameter it is successful so I think you are right on the money with your assessment.

Code:
An existing connection was forcibly closed by the remote host
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.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

Source Error:


Line 386:        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/getGadgetFeed", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 387:        public string getGadgetFeed() {
Line 388:            object[] results = this.Invoke("getGadgetFeed", new object[0]);
Line 389:            return ((string)(results[0]));
Line 390:        }


Source File: c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\0a635572\38fd2de4\App_WebReferences.0cy53_9h.0.cs    Line: 388

Found problem....use this patch file.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#58
2011-10-21, 08:28 PM
UncleJohnsBand Wrote:Found problem....use this patch file.

Success! Thanks for all your work on this.
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#59
2011-10-21, 09:36 PM
cncb Wrote:Success!

I spoke a little too soon. For some reason javascript doesn't like the XML returned by this (no document element). The XML text looks valid to me. The only difference I see between this and the regular infoxml is that this is UTF-16-encoded compared to UTF-8. I'm not sure if this is causing the problem but could you possibly switch it to UTF-8? Thanks.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#60
2011-10-22, 02:07 AM (This post was last modified: 2011-10-22, 10:08 PM by UncleJohnsBand.)
cncb Wrote:I spoke a little too soon. For some reason javascript doesn't like the XML returned by this (no document element). The XML text looks valid to me. The only difference I see between this and the regular infoxml is that this is UTF-16-encoded compared to UTF-8. I'm not sure if this is causing the problem but could you possibly switch it to UTF-8? Thanks.

Ok..attached patch now outputs the xml document in utf-8 encoding.

For web services you pass the doucment as a string and .Net holds strings as utf-16 so I had to take the response from the webservice (which is a string) load it to an xmldocument and than save that to the http response set to utf-8 encoding....seems to be working fine. Big Grin

Let me know if it works.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (15): « Previous 1 … 4 5 6 7 8 … 15 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  HDHRGuide for Windows mvallevand 63 11,149 2025-06-20, 04:05 PM
Last Post: mvallevand
  Comskipped videos played back on NextPVR desktop application halt on commercial break mlopez1007 2 1,078 2023-07-03, 07:47 PM
Last Post: mvallevand
  NextTool for Windows question MrReis 12 2,690 2023-03-31, 10:23 PM
Last Post: mvallevand
  Multiple Instances of Desktop Gadget BrettB 6 2,102 2021-05-16, 04:23 PM
Last Post: mvallevand
  Automatic movie recording based on existing libraries daneo 10 5,286 2020-04-14, 08:02 PM
Last Post: daneo
  NextPVR Recording Service Monitor ChaosMageX 2 2,346 2019-09-23, 02:19 PM
Last Post: ChaosMageX
  Desktop Gadget not working after Win10 Creators Update Bobbybear 1 3,613 2017-06-26, 09:01 PM
Last Post: Bobins
  ParallelProcessing.bat Recording Growth Monitor BrettB 0 2,156 2017-05-24, 01:51 AM
Last Post: BrettB
  Desktop gadget stopped working roy 4 3,548 2017-02-18, 08:16 PM
Last Post: roy
  Created a program to purge recording directory evans036 3 3,598 2016-11-30, 11:44 AM
Last Post: Graham

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode