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

  • Home
  • SEARCH
  • 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 3219930
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:42:11+00:00 2026-05-17T15:42:11+00:00

I have a very simple ASP.NET web application created under Visual Studio 2008 (SP1),

  • 0

I have a very simple ASP.NET web application created under Visual Studio 2008 (SP1), targeting .NET 3.5.

  • Startup page is a dumbed down ASPX page with 4 text boxes, a button, and two JScript functions:
    • An OnLoad handler for the body. This function just sets the values of the text boxes to certain dates and times for testing.
    • An OnClick handler for the button. This handler invokes the Localization web service and displays the results thereof.
  • Localization is a web service. Its job is to get the user’s region and country information, create a CultureInfo object, and parse the date and time information so that it can verify that the start date is prior to the end date. It’s the only reliable way to do this without reams of JScript code that essentially reinvents the wheel. The result is returned as a JSON string.

Everything seemed to be working just fine, until I started getting these weird error messages from the debugger. The debugger will break on this line :

        try {
            _this._webRequest.completed(Sys.EventArgs.Empty);
        }
        finally { // <-- RIGHT HERE, specifically, on the brace
            if (_this._xmlHttpRequest != null) {
                _this._xmlHttpRequest.onreadystatechange = Function.emptyMethod;
                _this._xmlHttpRequest = null;
            }
        }

The error message is this:

Microsoft JScript compilation error: Expected ‘;’

Now, this is baffling, and research has usually recommended ensuring that Java was installed. I scoffed at first, thinking that I, with my vast and clearly superior intellect, could not possibly have made so foolish a mistake and that everyone knew the difference between Java and JavaScript. So, when no one was looking, I tried it. It made no difference.

I have no idea what is causing this to occur. The stack trace reveals that it’s the only call on the stack. There aren’t even any local variables to work with. And the file that it occurs in is a generated dynamic script resource. The function, however, is the _onReadyStateChange function of the Sys.Net.XMLHttpExecutor object. So I can at least say it’s occurring consistently in the AJAX code.

Has anyone else seen this? If you did, what was its cause and how did you resolve it?

Server Side:

  • Windows 2000
  • IIS 7
  • ASP.NET
  • .NET 3.5

Development

  • Visual Studio 2008 SP1
  • .NET 3.5
  • IE 8
  • IIS 7
  • 1 1 Answer
  • 0 Views
  • 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-17T15:42:11+00:00Added an answer on May 17, 2026 at 3:42 pm

    I’m going to post the answer to this question, at the risk of embarrassing myself.

    In the JScript code, I was evaluating the result of the call as follows:

    function(r)
    {
        var result = eval(r);
        if (!result.Succeeded)
            alert(result.Reason);
    });
    

    The problem, apparently, is that you have to enclose the JSON string in parentheses when you are passing it to eval, like this:

    function(r)
    {
        var result = eval("(" + r + ")");
        if (!result.Succeeded)
            alert(result.Reason);
    });
    

    Don’t ask me why this works, it just does. I’ll puzzle out the why-fors later.

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

Sidebar

Related Questions

Im creating a web application in asp.net visual studio 2008.. in my application, i
I have a simple ASP.NET MVC web application that uses NHibernate with FluentNHibernate's auto
I have a very simple ASP.Net page that acts as a front end for
I have an ASP.net web service that I'm using for a web application which
I have a very simple WPF application in which I am using data binding
I have written a VERY simple MVC application which just displays a single string
I have what seems to be a simple employee time request web application I
i have very simple problem. I need to create model, that represent element of
I have very simple select like this: SELECT * FROM table WHERE column1 IN
I have a very simple problem which requires a very quick and simple solution

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.