How to fix them in wisej TargetFrameworks net48;net6.0

0
0

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.

  • You must to post comments
0
0

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

  • You must to post comments
0
0

To keep it simple, I’d replace HttpUtility.UrlEncode with WebUtility.UrlEncode (from namespace System.Net).

Cheers, Gerhard

 

  • Huỳnh Tấn Phát
    Thank you so much. And Err: My.Computer.Name like Err_My_Computer_Name.png? Err: SqlDataSourceEnumerator.Instance.GetDataSources like ?
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.