Hi Wisej,
Err: My.Computer.Name like Err_My_Computer_Name.png?
Err: SqlDataSourceEnumerator.Instance.GetDataSources like Err_SqlDataSourceEnumerator_Instance_GetDataSources.png?
Err: System.Web.HttpUtility like Err_System_Web_HttpUtility.png?
How to fix them?
Thank you so much, Wisej.
Hi Huỳnh,
Like Gerhard mentioned, it’s best to use the System.Net namespace instead of System.Web which is available only in .NET Framework 4.8.
For the “SqlDataSourceEnumerator.Instance.GetDataSources” error, it’s implementation is only available in .NET Framework 4.8, Microsoft still didn’t implement it in its System.Data.SqlClient for .NET Core.
There’s an alternative however, you can use https://github.com/mrsquish/SqlBrowserClient.
You can keep yourself updated about its implementation by looking at https://github.com/dotnet/SqlClient/issues/17 .
This is not a Wisej issue.
Best,
Alaa
To keep it simple, I’d replace HttpUtility.UrlEncode with WebUtility.UrlEncode (from namespace System.Net).
Cheers, Gerhard
Please login first to submit.