Im working on a code which uses http listener & I’m not able to refrence it even though I have imported system.net.http in Imports tab.
Not able to install package system.net.http.
Im getting the below error. Please let me know on any alternatives for this
Run a local webserver to get code: No compiled code to run
error BC31424: Type ‘System.Net.HttpListener’ in assembly ‘Invoke Code 4945c5bc-f8f2-4e02-bc0a-bdfee77c516c, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ has been forwarded to assembly ‘System.Net.HttpListener, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. Either a reference to ‘System.Net.HttpListener, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ is missing from your project or the type ‘System.Net.HttpListener’ is missing from assembly ‘System.Net.HttpListener, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’.
Try removing the
Package from the dependencies…ideally if you are on 22.10 plus then it should be available already…its creating a conflict I believe
Can you tey removing it and check …
Can you show what all other dependencies you are using
Cheers
These are dependencies . And Im on studio 22.12.0