NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) NextPVR Enhanced Web Admin (NEWA) v
« Previous 1 … 24 25 26 27 28 … 47 Next »
Datatype-Error in Schedule.cs

 
  • 0 Vote(s) - 0 Average
Datatype-Error in Schedule.cs
ollis
Offline

Junior Member

Posts: 28
Threads: 4
Joined: Sep 2004
#1
2008-08-27, 06:14 PM
Hi.

There is an error in Schedule.cs, when i open the Manage.aspx:

(errormessage with german parts)

Code:
Serverfehler in der Anwendung /gbpvr.
--------------------------------------------------------------------------------

Datentypen in Kriterienausdruck unverträglich.
Beschreibung: Unbehandelte Ausnahme beim Ausführen der aktuellen Webanforderung. Überprüfen Sie die Stapelüberwachung, um weitere Informationen über diesen Fehler anzuzeigen und festzustellen, wo der Fehler im Code verursacht wurde.

Ausnahmedetails: [B]System.Data.OleDb.OleDbException: Datentypen in Kriterienausdruck unverträglich[/B].

Quellfehler:


[B]Zeile 126:                aCommand.Connection = aConnection;
Zeile 127:
Zeile 128:                DbDataReader aReader = aCommand.ExecuteReader();
Zeile 129:                if (aReader.Read())
Zeile 130:                {[/B]

Quelldatei: [B]c:\Programme\devnz\gbpvr\web\App_Code\classes\Schedule.cs    Zeile: 128[/B]

Stapelüberwachung:


[OleDbException (0x80040e07): Datentypen in Kriterienausdruck unverträglich.]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +177
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +194
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +56
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +105
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +91
   System.Data.OleDb.OleDbCommand.ExecuteDbDataReader(CommandBehavior behavior) +4
   System.Data.Common.DbCommand.ExecuteReader() +9
   GBPVRSchedule.Schedule.getSeasonDayMask(ScheduledRecording scheduledRecording) in c:\Programme\devnz\gbpvr\web\App_Code\classes\Schedule.cs:128
   GBPVRSchedule.Schedule.getSeasonDayString(ScheduledRecording scheduledRecording) in c:\Programme\devnz\gbpvr\web\App_Code\classes\Schedule.cs:149
   gbweb.Manage.Page_Load(Object sender, EventArgs e) in c:\Programme\devnz\gbpvr\web\Manage.aspx.cs:479
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +13
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
   System.Web.UI.Control.OnLoad(EventArgs e) +80
   System.Web.UI.Control.LoadRecursive() +49
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3750




--------------------------------------------------------------------------------
Versionsinformationen: Microsoft .NET Framework-Version:2.0.50727.1433; ASP.NET-Version:2.0.50727.1433
PC,PVR-350,GB-PVR,TV - all that i want
ollis
Offline

Junior Member

Posts: 28
Threads: 4
Joined: Sep 2004
#2
2008-08-29, 08:34 AM
Research for the moment:

the affected code in Schedule.cs:
Code:
public int getSeasonDayMask(ScheduledRecording scheduledRecording)
        {
            int day_mask = -1;

            if ((RecType)scheduledRecording.getRecordingType() == RecType.Season)
            {

                // create the database connection
                DbConnection aConnection = Global.GetOpenGBPVRDbConnection();

                // create the command object and store the sql query
                DbCommand aCommand = aConnection.CreateCommand();

                //Create the command sql query string
                aCommand.CommandText = "select day_mask from REOCCURING_EXTRAS where recording_group='" +
                                       scheduledRecording.getRecordingGroup() + "'";
                aCommand.Connection = aConnection;

                DbDataReader aReader = aCommand.ExecuteReader();
                if (aReader.Read())
                {
                    day_mask = aReader.GetInt16(0);

                }

                // close the reader
                aReader.Close();
                aConnection.Close();
                aConnection.Dispose();
            }
                        return day_mask;
        }

this reflects the displayed days in Air Date column. (right?)

In Table REOCCURING_EXTRAS are 21 rows. Column day_mask has values from 0 to 127.

Why does the Reader says there ist a wrong datatype?

Greetz
Olli
PC,PVR-350,GB-PVR,TV - all that i want
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#3
2008-08-29, 11:29 PM
ollis Wrote:Research for the moment:

the affected code in Schedule.cs:
Code:
public int getSeasonDayMask(ScheduledRecording scheduledRecording)
        {
            int day_mask = -1;

            if ((RecType)scheduledRecording.getRecordingType() == RecType.Season)
            {

                // create the database connection
                DbConnection aConnection = Global.GetOpenGBPVRDbConnection();

                // create the command object and store the sql query
                DbCommand aCommand = aConnection.CreateCommand();

                //Create the command sql query string
                aCommand.CommandText = "select day_mask from REOCCURING_EXTRAS where recording_group='" +
                                       scheduledRecording.getRecordingGroup() + "'";
                aCommand.Connection = aConnection;

                DbDataReader aReader = aCommand.ExecuteReader();
                if (aReader.Read())
                {
                    day_mask = aReader.GetInt16(0);

                }

                // close the reader
                aReader.Close();
                aConnection.Close();
                aConnection.Dispose();
            }
                        return day_mask;
        }
this reflects the displayed days in Air Date column. (right?)

In Table REOCCURING_EXTRAS are 21 rows. Column day_mask has values from 0 to 127.

Why does the Reader says there ist a wrong datatype?

Greetz
Olli

It appears you may be using Access as your database for gbpvr. I would run the changedatbase.exe file in the gbpvr directory and convert over to SQLite.

Let me know what happens.
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
ollis
Offline

Junior Member

Posts: 28
Threads: 4
Joined: Sep 2004
#4
2008-09-03, 07:15 AM
Thanks UncleJohnsBand - this Workaround works.

But i can´t believe this error using MSACCESS.

for now - my PVR runs with SQLITE - i hope with the same stable as with MSACCESS in the past 4 Years.

Greets
Olli
PC,PVR-350,GB-PVR,TV - all that i want
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#5
2008-09-03, 09:41 PM
When sub moved GBPVR to SQLite there was some growing pains but they were quickly put to the side with the speed increase gained using SQLite.

It is much faster than an Access database and does not suffer bloat.
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)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Error with Web Admin? jksmurf 0 2,326 2019-06-20, 10:34 AM
Last Post: jksmurf
  Server Error in '/' Application smajor 19 16,825 2017-10-27, 12:57 PM
Last Post: mvallevand
  Error when trying to stream from NEWA on PC jksmurf 2 2,792 2017-02-27, 05:12 AM
Last Post: jksmurf
  Server Error in '/' Application [streaming failure] oldman 3 3,030 2017-02-04, 12:48 AM
Last Post: UncleJohnsBand
  Server Error when settign a manual recording in NEWA martinu 2 2,330 2017-01-23, 01:30 AM
Last Post: UncleJohnsBand
  Can't schedule recordings remotely enforcersu 5 2,846 2016-11-17, 06:00 PM
Last Post: mvallevand
  Internal Server Error SilverTiger 5 3,189 2016-07-24, 04:03 PM
Last Post: UncleJohnsBand
  "Record selected" returns error web page ... softfoot 5 3,736 2016-03-26, 01:37 PM
Last Post: UncleJohnsBand
  Server Error in "/" Application ? Lone_Stranger 1 2,398 2016-02-19, 02:10 AM
Last Post: UncleJohnsBand
  Server Error in '/' Application mdenecke 1 2,907 2016-01-13, 03:33 AM
Last Post: UncleJohnsBand

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

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

Linear Mode
Threaded Mode