- Home /
Question by
galvakojis · Apr 23, 2015 at 01:34 PM ·
windows store appwindows phone 8
Windows Store errors
using System.Net;
using System.IO;
public static bool HasConnection()
{
try
{
IPHostEntry i = Dns.GetHostEntry("www.google.com");
return true;
}
catch
{
return false;
}
}
It compiles with Android, but crashes with WindowsPhone store, can't figure out why, any help? I have such errors with WP.
Assets\HSController.cs(111,4): error CS0246: The type or namespace name 'IPHostEntry' could not be found (are you missing a using directive or an assembly reference?)
Assets\HSController.cs(111,20): error CS0103: The name 'Dns' does not exist in the current context
Comment
Your answer
Follow this Question
Related Questions
Scripted animation not working on windows 8 1 Answer
Error while building (Windows store 8.1) 0 Answers
Build app unity for windows phone 8 or windows store app fail 1 Answer
Can't run game on Windows Metro becouse of error with dll's 1 Answer
What is AssetBundle compatibility for MetroPlayer and/or WP8? 1 Answer