ServiceController constructor throws exception with Nuget library 9.0 in .NET6 #110354
Labels
area-System.ServiceProcess
needs-author-action
An issue or pull request that requires more info or actions from the author.
This issue has been moved from a ticket on Developer Community.
[severity:It's more difficult to complete my work]
My .NET6 application works with the 8.1 ServiceController nuget library. I updated to the 9.0 library and the ServiceController constructor now throws a System.PlatformNotSupportedException.
public const string FriendlyServiceName = "Woodward File Collection Service";
Here is the line that throws the exception:
_serviceController = new ServiceController(FriendlyServiceName);
I reverted to the 8.1 ServiceController library. This works fine for now, but I'd like to know if there's a better solution.
Original Comments
Feedback Bot on 11/18/2024, 04:14 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
The text was updated successfully, but these errors were encountered: