Server Error in '/' Application.

The remote name could not be resolved: 'api.sqoot.com'

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote name could not be resolved: 'api.sqoot.com'

Source Error:


Line 43:         'call the api
Line 44:         Using client As New WebClient()
Line 45:             Dim json As String = client.DownloadString(apiurl)
Line 46:             'this convert into table json return from api
Line 47:             Dim dtJson As DataTable = ConvertJSONToDataTable(json)

Source File: E:\web\salonsc1\directory\Controls\DIDeals.ascx.vb    Line: 45

Stack Trace:


[WebException: The remote name could not be resolved: 'api.sqoot.com']
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +298
   System.Net.WebClient.DownloadString(Uri address) +106
   System.Net.WebClient.DownloadString(String address) +32
   Directory_Controls_DIDeals.Page_Load(Object sender, EventArgs e) in E:\web\salonsc1\directory\Controls\DIDeals.ascx.vb:45
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4676.0