I have the following code:
using System.Configuration;
namespace test
{
public partial class MyService : ServiceBase
{
public static ReadConnectionStrings()
{
ConnectionStringSettingsCollection connections =
ConfigurationManager.ConnectionStrings;
However, it doesn’t recognise ConfigurationManager. I took this code directly from here
So I’m clearly missing something, but can’t identify what.
Make sure the cable supports the same USB-C features as the connected device. Make sure the device or dongle is connected directly to your PC (or phone). Make sure the device or dongle is connected to the USB-C port on your PC (or phone) that supports the correct Alternate Mode.
Do you have a reference to System.Configuration
? It's not added to .NET projects by default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With