473,320 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

SCM Start Service

December 18, 2005

I am creating the most basic windows server using .Net 2.0.... I can't get
it to start in SCM: Error 193, 0xc1 ... In the event log it states it is not
a valid win32 app. I can't get any service to start that I write in 2.0,
although I can't figure out why. Does anyone have any ideas? Thanks!

--

Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://71.39.42.23/


Dec 18 '05 #1
4 2029
December 18, 2005

Got it... You have to switch the Class Type to Windows Service in the
Project's Properties.... there is no longer a template in the New Project
Dialog. I had thought since there wasn't a template anymore, then the Class
Library automatically could be used.

This wasn't documented anywhere for the error code though...

--

Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://71.39.42.23/

"Joseph Bittman MVP MCSD" <Ry*********@msn.com> wrote in message
news:u3**************@tk2msftngp13.phx.gbl...
December 18, 2005

I am creating the most basic windows server using .Net 2.0.... I can't get
it to start in SCM: Error 193, 0xc1 ... In the event log it states it is
not a valid win32 app. I can't get any service to start that I write in
2.0, although I can't figure out why. Does anyone have any ideas? Thanks!

--

Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://71.39.42.23/

Dec 19 '05 #2
Hi,

When I created a new project I had to expand visual basic and
look in windows to find the windows service project template.

Ken
------------
"Joseph Bittman MVP MCSD" <Ry*********@msn.com> wrote in message
news:eI**************@TK2MSFTNGP11.phx.gbl...
December 18, 2005

Got it... You have to switch the Class Type to Windows Service in the
Project's Properties.... there is no longer a template in the New Project
Dialog. I had thought since there wasn't a template anymore, then the
Class
Library automatically could be used.

This wasn't documented anywhere for the error code though...

--

Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://71.39.42.23/

"Joseph Bittman MVP MCSD" <Ry*********@msn.com> wrote in message
news:u3**************@tk2msftngp13.phx.gbl...
December 18, 2005

I am creating the most basic windows server using .Net 2.0.... I can't
get it to start in SCM: Error 193, 0xc1 ... In the event log it states it
is not a valid win32 app. I can't get any service to start that I write
in 2.0, although I can't figure out why. Does anyone have any ideas?
Thanks!

--

Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://71.39.42.23/


Dec 19 '05 #3
December 18, 2005

Very strange... I don't see it there, although I do see it ONLY under
C++.Net... lol Do you think that is a bug or just a limit of the Std
version?

--

Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://71.39.42.23/

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:u3*************@TK2MSFTNGP12.phx.gbl...
Hi,

When I created a new project I had to expand visual basic and
look in windows to find the windows service project template.

Ken
------------
"Joseph Bittman MVP MCSD" <Ry*********@msn.com> wrote in message
news:eI**************@TK2MSFTNGP11.phx.gbl...
December 18, 2005

Got it... You have to switch the Class Type to Windows Service in the
Project's Properties.... there is no longer a template in the New Project
Dialog. I had thought since there wasn't a template anymore, then the
Class
Library automatically could be used.

This wasn't documented anywhere for the error code though...

--

Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://71.39.42.23/

"Joseph Bittman MVP MCSD" <Ry*********@msn.com> wrote in message
news:u3**************@tk2msftngp13.phx.gbl...
December 18, 2005

I am creating the most basic windows server using .Net 2.0.... I can't
get it to start in SCM: Error 193, 0xc1 ... In the event log it states
it is not a valid win32 app. I can't get any service to start that I
write in 2.0, although I can't figure out why. Does anyone have any
ideas? Thanks!

--

Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://71.39.42.23/



Dec 19 '05 #4
Hi,

Yes it is a limit. You need vs 2005 pro or greater to get the
template.

http://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx

Ken
--------------------------------
"Joseph Bittman MVP MCSD" <Ry*********@msn.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
December 18, 2005

Very strange... I don't see it there, although I do see it ONLY under
C++.Net... lol Do you think that is a bug or just a limit of the Std
version?

--

Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://71.39.42.23/

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:u3*************@TK2MSFTNGP12.phx.gbl...
Hi,

When I created a new project I had to expand visual basic and
look in windows to find the windows service project template.

Ken
------------
"Joseph Bittman MVP MCSD" <Ry*********@msn.com> wrote in message
news:eI**************@TK2MSFTNGP11.phx.gbl...
December 18, 2005

Got it... You have to switch the Class Type to Windows Service in the
Project's Properties.... there is no longer a template in the New
Project Dialog. I had thought since there wasn't a template anymore,
then the Class
Library automatically could be used.

This wasn't documented anywhere for the error code though...

--

Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://71.39.42.23/

"Joseph Bittman MVP MCSD" <Ry*********@msn.com> wrote in message
news:u3**************@tk2msftngp13.phx.gbl...
December 18, 2005

I am creating the most basic windows server using .Net 2.0.... I can't
get it to start in SCM: Error 193, 0xc1 ... In the event log it states
it is not a valid win32 app. I can't get any service to start that I
write in 2.0, although I can't figure out why. Does anyone have any
ideas? Thanks!

--

Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://71.39.42.23/




Dec 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark | last post by:
I created an extremely simple windows service that only writes to the EventLogs on Stop and Pause. I installed it using the InstallUtil.exe program, the output of which is below. It appears to be...
1
by: Suman | last post by:
We are facing a problem with a Service we developed. It does not start after a re-boot. We can Start/Stop the service from the interfacing Application and the Services Control Panel all day long....
12
by: JSheble | last post by:
I've written a Windows Service using C#, but I cannot seem to figure out how to cancel or prevent the service from starting under certain conditions. For example, in the OnStart I read in some...
5
by: SiD` | last post by:
when starting a windows service writte in vb.net, a messagebox appears: cannot start service from the command line or a debugger. A windows service must first be installed using installutil.exe ...
6
by: Arnie | last post by:
We're using the ServiceController class provided by the .NET Framework, programming in C#. We are using the Start() method to start a service from another service. This works fine most of the...
6
by: Joe | last post by:
C# .NET 2.0 I've got a Windows Service that works exactly as I expect it to. However, it does rely on a few Configuration settings. If the customer doesn't configure it correctly, the service...
3
by: tshad | last post by:
I created a service in VS 2003 and the code works fine as an application, but not as a service. It installs fine, but when I try to start it, it tells me it was unable to start. Am I missing...
2
by: Scewbedew | last post by:
Being a newbie on C# managed services, I've probably done something horribly wrong here... The intent is to create a windows service that runs under the SYSTEM account. I have created a service...
7
by: shai | last post by:
I am working at .net 1.1, writing in c#. I have windows service with a COM object. Every unexpected time The COM object throw an error that make my service get stuck (do not respond). I can catch...
4
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.