Click here to Skip to main content
15,889,462 members
Home / Discussions / C#
   

C#

 
AnswerRe: listView1.GetItemAt always returns null Pin
N a v a n e e t h21-Jun-09 17:45
N a v a n e e t h21-Jun-09 17:45 
GeneralRe: listView1.GetItemAt always returns null Pin
Mohammad Dayyan21-Jun-09 18:49
Mohammad Dayyan21-Jun-09 18:49 
AnswerRe: listView1.GetItemAt always returns null Pin
dan!sh 21-Jun-09 17:45
professional dan!sh 21-Jun-09 17:45 
GeneralRe: listView1.GetItemAt always returns null Pin
Mohammad Dayyan21-Jun-09 18:52
Mohammad Dayyan21-Jun-09 18:52 
AnswerRe: listView1.GetItemAt always returns null Pin
Giorgi Dalakishvili21-Jun-09 20:23
mentorGiorgi Dalakishvili21-Jun-09 20:23 
QuestionError 1053: The service did not respond to the start or control request in a timely fashion Pin
obrix_activex21-Jun-09 15:00
obrix_activex21-Jun-09 15:00 
AnswerRe: Error 1053: The service did not respond to the start or control request in a timely fashion Pin
N a v a n e e t h21-Jun-09 16:45
N a v a n e e t h21-Jun-09 16:45 
GeneralRe: Error 1053: The service did not respond to the start or control request in a timely fashion Pin
obrix_activex21-Jun-09 20:51
obrix_activex21-Jun-09 20:51 
Thanks for your reply Navaneeth Smile | :)

Yes, the OnStart calls a function..here's the sample code..

public void Start()
{
int intervalEnqueue;

try
{
intervalEnqueue = 600;
timer1 = new Timer(new TimerCallback(LLPlusProcess), null, intervalEnqueue, intervalEnqueue);
}

.....and here are some content of the function.....

public void LLPlusProcess(object state)

GetSMSResult getIncomingSMSResult = new GetSMSResult();
getIncomingSMSResult = null;
service = new Service();

service.Credentials = System.Net.CredentialCache.DefaultCredentials;
// get Incoming SMS with Waiting status
getIncomingSMSResult = service.GetSMS(System.Configuration.ConfigurationManager.AppSettings["clientAppKey"], System.Configuration.ConfigurationManager.AppSettings["enqueueStatus"], "Waiting", Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["enqueueRecord"])); <---- calls a web service function here

string getIncomingSMSResultResponse = getIncomingSMSResult.ResponseMessage;
System.Diagnostics.Debug.Write(getIncomingSMSResultResponse + "\r\n");

GetSMSResultMessage[] getIncomingSMSResultMessage = null;
getIncomingSMSResultMessage = getIncomingSMSResult.Message;
....etc...

If getIncomingSMSResultMessage is NULL then it will go here..else it will save the data in the database..

catch (Exception ex)
{
System.Diagnostics.Debug.Write("ENQUEUE [EX] : " + ex.ToString());
}

System.Threading.Thread.Sleep(100);
enqued = false;

}
else
{
System.Diagnostics.Debug.Write("\r\n ---- ENQUEUE PROCESS ON GOING ----\r\n ");
}

It will loop for how many times (as per my log files) but still it will end to error i mentioned..
But if i double click the exe file from debug folder..it run successfully..is it normal for a web service exe to be manually run? Some says it shouldnt be running that way..because exe file will look for the services for it to run...

Please help..Regards!
GeneralRe: Error 1053: The service did not respond to the start or control request in a timely fashion Pin
PIEBALDconsult22-Jun-09 7:11
mvePIEBALDconsult22-Jun-09 7:11 
GeneralRe: Error 1053: The service did not respond to the start or control request in a timely fashion Pin
obrix_activex22-Jun-09 20:05
obrix_activex22-Jun-09 20:05 
AnswerRe: Error 1053: The service did not respond to the start or control request in a timely fashion Pin
Narendra Reddy Vajrala17-Aug-09 6:30
Narendra Reddy Vajrala17-Aug-09 6:30 
QuestionC# Chess Timer not working Pin
JulioRevka21-Jun-09 14:43
JulioRevka21-Jun-09 14:43 
AnswerRe: C# Chess Timer not working Pin
Christian Graus21-Jun-09 15:01
protectorChristian Graus21-Jun-09 15:01 
AnswerRe: C# Chess Timer not working Pin
Eddy Vluggen21-Jun-09 15:04
professionalEddy Vluggen21-Jun-09 15:04 
GeneralRe: C# Chess Timer not working Pin
Christian Graus21-Jun-09 15:55
protectorChristian Graus21-Jun-09 15:55 
GeneralRe: C# Chess Timer not working Pin
Luc Pattyn21-Jun-09 16:45
sitebuilderLuc Pattyn21-Jun-09 16:45 
GeneralRe: C# Chess Timer not working [modified] Pin
JulioRevka21-Jun-09 19:41
JulioRevka21-Jun-09 19:41 
AnswerRe: C# Chess Timer not working Pin
Luc Pattyn21-Jun-09 15:06
sitebuilderLuc Pattyn21-Jun-09 15:06 
QuestionGetting the IP address(es) of a network interface when all you have is the "friendly interface name" Pin
Vengeful Emus21-Jun-09 12:43
Vengeful Emus21-Jun-09 12:43 
QuestionHow catch/get windows file's thumbnail? Pin
jamesband00721-Jun-09 10:10
jamesband00721-Jun-09 10:10 
AnswerRe: How catch/get windows file's thumbnail? Pin
Christian Graus21-Jun-09 10:50
protectorChristian Graus21-Jun-09 10:50 
GeneralRe: How catch/get windows file's thumbnail? Pin
Jan Kučera2-Aug-09 21:16
Jan Kučera2-Aug-09 21:16 
QuestionProject of component at design time Pin
Hans Ruck21-Jun-09 9:20
Hans Ruck21-Jun-09 9:20 
AnswerRe: Project of component at design time Pin
Christian Graus21-Jun-09 10:02
protectorChristian Graus21-Jun-09 10:02 
QuestionChanging whats displyed on a page in a Webbrowser Control. [modified] Pin
Beijer21-Jun-09 6:52
Beijer21-Jun-09 6:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.