Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1898204
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:44:14+00:00 2026-05-17T06:44:14+00:00

the methods below used to work but now I get this error: Error: Sys.Net.WebServiceFailedException:

  • 0

the methods below used to work but now I get this error:
Error: Sys.Net.WebServiceFailedException: The server method ‘ failed with the following error: System.Net.WebException– Unable to connect to the remote server
how can I fix it?

function CallMe() {

    // call server side method
    PageMethods.GetData(function (result) {
        DcSet("lblUsdRub", result.UsdRub);
        DcSet("lblEurRub", result.EurRub);
        DcSet("lblMicex", result.Micex);
        DcSet("lblUrals", result.Urals);
        DcSet("lblUsdEur", result.UsdEur);
        DcSet("lblUsdTur", result.UsdTur);
        DcSet("lblNasdaq", result.Nasdaq);
        DcSet("lblImkb100", result.Imkb100);
    });
 }
 function DcSet(labelName, value) {

         document.getElementById(labelName).innerText = value.toFixed(3);

 }



(function () {
 var status = true;
 var fetchService = function () {
     if (status) {
         CallMe();
         status = false;

     }
     setTimeout(fetchService, 300000); //Every Five Minutes, Update Data 300000
     status = true;
 }
 addLoadEvent(fetchService);
// window.onload = fetchService;
 } ());

function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    } else {
        window.onload = function () {
            if (oldonload) {
                oldonload();
            }
            func();
        }
    }
}

the aspx.cs file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using System.Web.Script.Services;

public partial class Index : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    [WebMethod]
    [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
    public static OnlineData GetData()
    {
        return ExternalManager.GetOnlineData();
    }
}

the aspx file

     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     <meta name="description" content="">
     <meta name="keywords" content=""> 

    <link rel="stylesheet" type="text/css" href="/c/main.css">
    <script src="/c/main.js" type="text/javascript"></script>

    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">

</head>
<body>
<script src="/c/Currency.js" type="text/javascript" ></script>
    <form id="form1" runat="server">
       <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"  >

     </asp:ScriptManager>
    <div id="Content">
        <div class="nobg">

            <div id="Top">
                <div class="left">
                    <a href="index.aspx"><img src="/i/xxxx.gif" alt="xxxx" /></a>
                </div>

                <div class="right">
  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:44:15+00:00Added an answer on May 17, 2026 at 6:44 am

    Given that you’re getting a .NET exception, it sounds like the AJAX call is managing to get to your WebMethod without any problems – it sounds like ExternalManager.GetOnlineData(); is failing.

    I suggest you try calling that in a simple console application which you can debug easily.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

[Update: I've found the API reference. The method used is below] <?php wp_delete_post( $postid,
Below I call the same methods in author and w5 model objects. But one
I am using the method below to get an array from my plist and
first I used onDestroy() method as below to make something when my app is
Is there any difference between the 2 methods below for calculating c ... specifically
I have a Controller with two Edit methods (see below). When I submit the
I want to style mail body. I have tried the below methods to style
I have below code which overrides equals() and hashcode() methods. public boolean equals(Object obj)
I have a WCF service and methods are exposed as below: public interface IService
The method below called UserCanAccessThisPage is based on the following logic: each user and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.