I have the following code in client side.
I’m trying to use .Net connector
scheduler.init('scheduler_here', new Date(2014,03,26), "timeline");
scheduler.load("dataConnector.ashx");
var dp = new dataProcessor("dataConnector.ashx");
dp.init(scheduler);
here is the code of the connector on the server side
SSQLAdapter adapter = new MSSQLAdapter(ConfigurationManager.ConnectionStrings["PSALUDConnectionString"].ConnectionString);
dhtmlxSchedulerConnector connector = null;
connector = new dhtmlxSchedulerConnector(
"SELECT ID_PACIENTE,ID_CONSULTORIO FROM PSL_CITAS"
, "ID_CITA"
, dhtmlxDatabaseAdapterType.SqlServer2005
, adapter.ConnectionString
, "FECHA_INICIO"
, "FECHA_FINAL"
, "ID_ESPECIALISTA as especialista,ID_CLINICA as clinica, ID_MEDICO as medico,ID_SERVICIO as servicio,ID_TIPO_CITA as tipo ,OBSERVACIONES as observ, ID_USUARIO as usuario"
);
my dhtmlxSchedulerConnector object does connect successfully to DB. but when I set a break point i found out the the dhtmlxSchedulerConnector is instantiated several times, so that I get the following exception in server side
System.StackOverflowException' occurred in mscorlib.dll
and then in client side I get the following error:
dataConnector.ashx?timeshift=360 net::ERR_CONNECTION_RESET dhtmlxscheduler.js:213
and sometimes I get another different error:
Failed to load resource: net::ERR_CONNECTION_REFUSED dataConnector.ashx?timeshift=36
Any Idea of how to solve this issue?
Thanks in advance!