This error is exceptionally annoying. I’ve done various searches, and have been able to fix this issue. I am one of several developers on the application and the only one with the issue. I’ve fixed it before temporarily by adding an extension to the My Extensions panel in the project’s properties (which generates a different error) and then removing that new extension. That made the error go away. Flaky, eh?
Anyway:
If Not My.Computer.Network.IsAvailable Then
ISConnectedToNetwork = False
...
End If
Gives the error:
‘Computer’ is not a member of ‘My’.
Clarification Edit: This is in .NET 2.0.
I was able to fix this little bug in another messed up and probably temporary way.
Working off of Pete’s insight, I set the project’s Application Type from Class Library to Windows Forms Application.
I did a build at this point which failed due to some error about not having “Main” implemented. Okay, so I set it back to Class Library.
Built again. Success.
SIGH