Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation
Go Back  Xtreme Visual Basic Talk > > > Missing reference to System.Net.NetworkInformation


Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2010, 05:01 PM
joel_fl joel_fl is offline
Newcomer
 
Join Date: Jun 2005
Posts: 7
Default Missing reference to System.Net.NetworkInformation


I must be missing something very obvious...Using Visual Studio 2005 to write a vb app for Windows CE. I'm trying to use the NetworkInformation namespace of System. I can see it in my object browser, but when I try to use it in my form, it doesn't come up in the autocomplete and the compiler complains that "NetworkInformation is not a member of Net". Any ideas?
Reply With Quote
  #2  
Old 07-01-2010, 09:28 AM
joel_fl joel_fl is offline
Newcomer
 
Join Date: Jun 2005
Posts: 7
Default

I didn't find anything definitive by I'm guessing that the System.dll doesn't have the Net.NetworkInformation available in the Windows CE environment. I did find a solution for what I was trying to do which was find out network adpater info on the machine my app is running on. I found the answer here:

http://vbcity.com/forums/p/80192/329881.aspx

If you need to get the mac address, you can use the Address property of the _IP_ADAPTER_INFO structure like this:

Code:
For x = 0 To 5
   macAddress = macAddress & Right$("00" & Hex$(ipinfo.Address(x)), 2)
Next x
where ipinfo is the _IP_ADPATER_INFO object.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation
 
Missing reference to System.Net.NetworkInformation
Missing reference to System.Net.NetworkInformation
 
-->