cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with windows service

Former Member
0 Kudos

Hi,

I've created a windows service using VB.Net. This services is uses SAP .Net connector. When I start the service the system throws up the System.NullReferenceException. The following is the entire text in the event log. Can anyone please help me in correcting this error?

Regards,

Aravinda Sarma M.

System.NullReferenceException: Object reference not set to an instance of an object.

at Service.OnStart(String[] args)

at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state).

Accepted Solutions (0)

Answers (1)

Answers (1)

reiner_hille-doering
Active Contributor
0 Kudos

I would recommend to debug the application and find out in which line/statement of OnStart method the exception happens and check which object has value Nothing.

Former Member
0 Kudos

Thanks, Actually the problem was with the XML file from which the data was being read.

Regards,

Aravinda Sarma M.