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 426287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:27:51+00:00 2026-05-12T19:27:51+00:00

I have an asp.net form that contains some html, 2 controls a calendar from

  • 0

I have an asp.net form that contains some html, 2 controls a calendar from the AjaxControlToolkit and a custom SandTrap.WebControls textbox which works fine on several other servers we have this form running on. However on one server It breaks and when I debug the javascript It seems I have a corrupt MicrosoftAjax.js being downloaded – it says unexpected token illegal

Here is what is coming through inside MicrosoftAjax.js line 2932

Sys.UI.Key.prototype = {
    backspace: 8,
    tab: 9,
    enter: 13,
    esc: 27,
    ...
    126�=NCys.UI.�ey.ra�isterEnum("Sn2.UI.Key");

First thing I did is compare the website directory with the other servers – same. Checked that the MicrosoftAjax.js is not corrupt. Everything is identical. So what could this be?

Edit: the culprit is ajaxToolkit:ToolkitScriptManager for sure. When I removed it, the page loads fine.
I did a compare on the MicrosoftAjax.js and nothing different is coming up. I even replaced the file with another one from my pc still no luck.

Edit: Seems that if I set debug to false in the web.config the error goes away. Any other ideas as to what could be causing this? I looked at the .debug js file and it looks fine.

Would reinstalling the ajaxtoolkit somehow help? Or do I need to reinstall the .net framework?

  • 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-12T19:27:51+00:00Added an answer on May 12, 2026 at 7:27 pm

    Open Notepad, place the code in there, then save it back (making sure it’s not saving Unicode). Someone might have opened it and saved it with Wordpad or some word processor. So, visually, things might “look” right, but they won’t be.

    You could also run a COMP against a known good file and your bad file. Or just copy a known good file over the bad file

    Humans are the least trustworthy elements in the computing process.

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

Sidebar

Related Questions

I have a ASP.Net web form that contains both text box fields and hidden
I have the following problem in ASP.NET: there is a form that contains a
I have a simple form that uses jQuery validation to notify the user of
Today I have a Masterpage that contains my menu... Each aspx use that masterpage...
I'm almost 100% sure I have ready every post on the internet that contains
I've integrated Asp.net MVC with Sharepoint site. It works great. But I'm using default
First, some basic details: I'm using Visual Studio 2008 Team Edition I'm using C#
I am currently working on an update view for a model I have in
When I started using xVal for client-side validation, I was only implementing action methods
I'd like to try this out, downloaded it , read the readme, referenced the

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.