Minecraft-Console-Client
Minecraft-Console-Client copied to clipboard
[BUG] sample-script-with-http-request.cs
Prerequisites
- [x] I made sure I am running the latest development build
- [x] I tried to look for similar issues before opening a new one
- [x] I have set
debugmessages=truein config to diagnose my issue - [x] I have redacted session tokens and passwords before attaching screenshots
Minecraft Version
1.20.1
Console Client Version
latest
Expected Behavior
mcc make https request
Actual Behavior
error The type or namespace name 'WebRequest' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)
Steps to Reproduce the bug
- download mcc
- download sample-script-with-http-request.cs
- start mcc and connect to server
Attach screenshot here (If applicable)
No response
Anythings that could help diagnosing the bug
[MCC] [Script] Starting compilation for ./sample-script-with-http-request.cs...
[MCC] [Script] Compilation failed with error(s):
[MCC] [Script] Error in ./sample-script-with-http-request.cs, on line (var request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(uri);): [CS0234] The type or namespace name 'WebRequest' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)
[MCC] [Script] Error in ./sample-script-with-http-request.cs, on line (var request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(uri);): [CS0234] The type or namespace name 'HttpWebRequest' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)
[MCC] [Script] Error in ./sample-script-with-http-request.cs, on line (var response = (System.Net.HttpWebResponse)request.GetResponse();): [CS0234] The type or namespace name 'HttpWebResponse' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)
[MCC] [Script] Error in ./sample-script-with-http-request.cs, on line (var request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(uri);): [CS0234] The type or namespace name 'WebRequest' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)
[MCC] [Script] Error in ./sample-script-with-http-request.cs, on line (var request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(uri);): [CS0234] The type or namespace name 'HttpWebRequest' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)
[MCC] [Script] Error in ./sample-script-with-http-request.cs, on line (var response = (System.Net.HttpWebResponse)request.GetResponse();): [CS0234] The type or namespace name 'HttpWebResponse' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)
[MCC] [Script] Script './sample-script-with-http-request.cs' failed to run (InvalidScript).
[MCC] [Script] System.InvalidProgramException: Compilation failed due to error(s).
Device
Desktop
Operating System
Linux
Server Address (If applicable)
localhost:25565