Solved

C#

Posted on 2002-05-16
8
203 Views
Last Modified: 2010-04-02
I wrote a Windows Service using C#. Will it run on Windows NT Server if I install the .NET framework? I read on the microsoft website that asp.net will only run on 2000 and later servers does this same restriction hold true for actual applications?
0
Comment
Question by:arcarson
  • 2
  • 2
  • 2
  • +2
8 Comments
 

Expert Comment

by:TheFriend
ID: 7015552
You better use VC++ 6. C#.NET is nothing but a half-compiler, just like Visual Basic compiler or java compiler. With .NET you are gonna be on MS mercy forever.

At least unmanaged c++ is a little bit promising.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7015709
>>With .NET you are gonna be on MS mercy forever.
LOL.  Like there is some chance that a System Service written for Windows would have some use on a platform other than one created by Microsoft.

>>Will it run on Windows NT Server if I install the .NET framework?

I don't know.  Wouldn't it be easy enough to find out?  I know that a regular c# program will work... why not a System Service?

-- Dan
0
 

Author Comment

by:arcarson
ID: 7016235
DanRollins,

Thanks Here's my problem. I have a friend that needed me to write a Windows Service. He said that he was on a 2000 Network. I wrote the service and yes it does work on a Windows 2000 Machine but when he tried to put it on his Live environment it didn't go. But it didn't add any errors to the Event Log either.

He never told me that his live environment was NT 4. I told him to install the .NET redistributable dotnetfx.exe
but it still did not work. Any Ideas.

The service uses ADO.NET, writes to the event log on success and if an exception occurs. So we should have some indication of it running. But's it's not doing anything.

I'm raising the points of this question up to 200.
0
 
LVL 49

Accepted Solution

by:
DanRollins earned 200 total points
ID: 7016832
Is .NET is incompatible with NT4?  I don't know, but I would not be surprised.  MS has no incentive to retrograde test the dotnet platform with old versions of its operating system.

Here's my advice (you don't want to hear it):  Have your friend switch to Win2K or rewrite your service so that it does not use .NET

However, I would do a sanity check:  Did the service get registered correctly?  Has your friend installed it correctly?  Is it listed in the Service Control Panel?  Isn't there some indication that your service is running?... put up a MessageBox for testing purposes.

-- Dan
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 3

Expert Comment

by:cypherljk
ID: 7020433
.Net is not compatible with NT4. Like Rollins said have your friend switch to Win2K or later or you can rewrite the service in c++.

My 2 cents...
0
 
LVL 9

Expert Comment

by:jasonclarke
ID: 7021893
According to this Microsoft article, it *should* be OK (there is no reference here to any exceptions for system services):

http://msdn.microsoft.com/library/default.asp?url=/nhp/Default.asp?contentid=28000519

You should check out the stuff about the data access components... it says something that implies a silent failure there...
0
 
LVL 9

Expert Comment

by:jasonclarke
ID: 7021900
0
 

Author Comment

by:arcarson
ID: 7161930
We could never get this to work on NT 4 so he upgraded and it works fine. Sorry it took so long to award the points. I been kindof slammed on another project.

Thanks for the help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now