Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3 to 1.4 C# functionality missing #474

Open
guytpetj opened this issue Jun 28, 2024 · 1 comment
Open

1.3 to 1.4 C# functionality missing #474

guytpetj opened this issue Jun 28, 2024 · 1 comment
Labels

Comments

@guytpetj
Copy link

I'm currently rewriting my swimming pool controller code from version 1.3 to version 1.4.
Unfortunately, I'm running into a problem with 1,4 that some of the critical code is not supported.

WebRequest request = WebRequest.Create(NetServer+"99");
WebResponse webresponse = request.GetResponse();
Stream dataStream = webresponse.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
NetStatus = reader.ReadToEnd();

The code above worked fine in version 1.3. This code is used where NetStatus = Net.WebService(NetServer+"99").GetData(); is giving the incorrect response.

This is mission critical to me, how can I get this code working?

This is the error message given:
The type name 'WebRequest' could not be found in the namespace 'System.Net'. This type has been forwarded to assembly 'System.Net.Requests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.

@genemars
Copy link
Member

genemars commented Jul 3, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants