Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Service issue error 7

Status
Not open for further replies.

bouwob

Programmer
Apr 12, 2006
171
US
Error 7 Cannot implicitly convert type 'service.PL.Service1' to 'System.ServiceProcess.ServiceBase'

Code:
            ServiceBase[] serviceToRun;
            serviceToRun = new ServiceBase[]
            {
                new PL.Service1()
            };

now PL.Service1 is a webservice.

How do I convert my webservice to a service base object.

I am trying to build a service that runs a web service every 2 hours. I think I have everything else good in my code except for this 1 part.

any ideas?

tia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top