Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Remove limit on Service Name in System.ServiceProcess

$
0
0

I wrote a utility to check specific services and see if they are stopped. The utility restarts the services, if needed. I noticed that for services with long names, the code threw an exception. Long story short, I decompiled the System.ServiceProcess DLL and saw that in both the 2.0 and 4.0 versions of the DLL, the ValidateServiceName method has a length check using an integer value of 80.

Will these libraries ever get updated to support longer names? I believe the current Windows limit is 256 characters.


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>