.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

getScrollPosition undefined in production MicrosoftAjaxWebForms.js??

Posted By:      Posted Date: October 01, 2010    Points: 0   Category :ASP.Net

I have a site which I've been implementing MS Ajax a little at a time for the past year.  I have been trying to clean it up and implement some of the best practices which I know I should have done in the first place.  So last night, I went to the web.config file on my production server and changed the <compilation debug="true" /> to say debug="false".  This supposedly will allow better script & resource caching, but since the web application was built in debug mode, I'll still get the detailed exception stack traces which are so helpful in finding errors.

After changing the compilation debug="false", I am now getting the following error from the pages of my site which have implemented MS Ajax:

'Sys$WebForms$PageRequestManager$_getScrollPosition' is undefined


Changing that compilation debug switch was the only thing that has changed since yesterday when I was not getting these errors.  Everything else seems to work correctly, and I am catching this error and reporting it correctly without displaying the error to the user.  However, my inbox is getting flooded with these errors which seem completely unnecessary.

Anybody seen this before?  Obviously, I can flip that switch back to

View Complete Post

More Related Resource Links

jQuery is undefined


I have been developping something for about 2 months including a popup with jquery.

Of course during dev I never had any issues on my system.  I also tested on 5 other pcs in our network all using IE 6,7,8.  Again no problem with jQuery nor javascript.

Now, loooking at the same site, same release on the same server from a client of ours (outside our network) using IE 6,7 there's nothing I can do to make this work.  I've googled around and I tried changing the path in the jQuery source and even using google's servers.


I'm getting the error "'jQuery' is undefined"

I've moved all the libraries as the first file to load, and even made sure to put them in the right order (not that I ever had to before).

I've tried putting the code that calls those functions completly at the bottom of the page (not that it would make a difference since everything is based on user events rather than page load).

I've also cleared the cache, went on another pc, nothing can make this work.

The only I can figure is either IE site setting (trust, script block or AV). 


Can't anyone tell me what could solve this issue??

Live URL :

CLR Inside Out: Production Diagnostics Improvements in CLR 4


The Common Language Runtime (CLR) 4 includes new APIs that expand diagnostic support toward the production end of the spectrum. We explain how the debugging APIs support dump debugging for application crash and hang scenarios and make it easier to detect when hangs are caused by multi-threading issues.

Jon Langdon

MSDN Magazine May 2010

Debugging: Root Out Elusive Production Bugs with These Effective Techniques


Errors happen. But in production, error logs often provide little or no help in pinpointing the exact line of code in which the problem originates. You can't usually isolate the root cause by modifying code in a production environment because recreating the exact same environment is very difficult due to the large number of potential software and hardware configurations. This article provides some concrete steps you can take to get at the heart of the problems in your production code.

Matt Adamson

MSDN Magazine July 2005

App_Data - development vs production - SQLExpress


Help please, on mdf/ldf files manipulation between dev and prod App_Data folders.

My dev folder: ...\Visual Studio 2010\Projects\WebApplication1\
My prod folder: C:\inetpub\mywebsite\

There are 4 files in [dev]\APP_Data

The VS2010 publishing process copies the 4 files to [prod]\App_Data where my website users interact with them updating data therein.

Next time I publish, the files in [prod]\App_Data get overwritten, losing all current membership and app data changed by my website users.

I tried using SQL Server Management Studio, before publishing, to export current data from [prod]\App_Data\aspnetdb.mdf and myappdb.mdf, and import to [dev]\App_Data\aspnetdb.mdf and myappdb.mdf, but that brought up a bunch of detaching/attaching issues, ending up wiping out all security permissions settings of all the related files, even though I had used SQL Server Configuration Manager to stop the SQLExpress Service beforehand.

IIS Application Pool Identity:

App_Data mdf/ldf files security permission settings:
    SYSTEM: Full Control (dev/prod)
    NETWORK SERVICE: Read/Write (dev/prod)

'Meter number is not registered ' error FedEx ship web service move to production



I want to integrate FedEx ship web service in my website. It works fine for local but for production it gives error. I changed test credentials by production credentials. also changed test url "https://gatewaybeta.fedex.com:443/webservices" by production url "https://gateway.fedex.com:443/webservices" But I am getting error that meter number is not registered. Please advice.

Deploying custom Web Parts on SharePoint 2007 production server

I would like to develop a custom SharePoint 2007 Web Part for a client. Currently I'm using Visual Studio to deploy my solution to a test environment (since it's a SharePoint Project I choose just Build -> Deploy from the menu). What are the appropriate steps to deploy it to the production server?

I'd like keep it simple and safe (i.e. use the principle of least privilege). Therefore (if possible) avoid using stsadm, achieve this through web interface, or avoid using administrative rights.

Also, can I specify the scope of my Web Part, i.e. choose on which Web Application or Site Collection will it be installed?

jQuery is undefined


 Hi All,

I am using jQuery.ui.dialog.js to show the modal pop up.. But this Jquery.ui.dialog.js is throwing a jaascript error 'jQuery' is undefined. Please help . How can i resolve this.

I am using this 2 .css and .js

1.jquery.ui.dialog.css & 1.jquery.ui.dialog.js

2.jquery-ui-1.8.2.custom.css & query-ui-1.8.2.custom.js

Please advice.......

Is CTP4 good enough to be used in production code



Can we use CTP4 in production code?

When will it be included in .net framework 4.0?

How to copy table data from test to production database

I'm using SQL Server 2008 R2 and I'd like to copy all data rows from one table of a test database to the identical table in a production database. The primary key of the table is referred to by other tables so a DELETE followed by a number of INSERTs won't do it because of referential integrity issues. What is the best method to replace the data rows in the destination database with the values from the source database? Thanks, Guido

limit ASP.NET User Session without blocking production

 If the Web Site is in production and there are hits from one particular place (Say London!) and the after 1000 (or x) requests, user session should not be allowed. So what to do in such situation without affecting current production site?  Please Advice. Thanks!  

Moving Membership tables to production; empty

Hi all: I'm currently moving my application from my testing environment, onto our live environment.  I've moved my database, including all membership tables over, and everyting is empty.  Again, this is what I wanted.  The test environment had far too much "crap" data, including fake user, so I wanted to just start from scratch on the production environment.  I don't know how to re-create the application or the first user though in these membership tables??  I'm sure this isn't an odd thing to do, but I havent' had any luck yet with finding an answer of how to do this.  Any help is greatly appreciated! Thanks, Terri-Lynn 

Microsoft JScript runtime error: 'net' is undefined.

I get an error at the statement new net.ContentLoader("MyPage.aspx") in Default.aspx page. I am using Visual Studio 2008 and .net framework 2.0.   Please help!

SharePoint Designer Worklfows with Test/Stage/Production enviroment

We have an environment (SharePoint 2010 Test / Stage / Prod.) The access via SharePoint Designer 2010 is not allowed in the stage and production enviroment. Is there a way with die SharePoint Designer 2010 to design worklfows in a development enviroment and pass all levels? (Test/Stage/Prod.) We do not want Visual Studio or Nintex workflow

File System Deployment from DEVelopment to PRODuction

Looking for best practices for doing an SSIS File System deployment from a DEV environment to a PROD environment using either Team System or strictly file based.

Application_Error not firing on Production server.

 Hi, I am trying to setup my application on Production server. Whenever any error occurs, we are redirecting to a specific page in Application_Error Event in Global.asaxThe code in Application_Error Page_________________________________________ string _rawUrl = Request.RawUrl;if (_rawUrl.IndexOf(".aspx") == -1 && _rawUrl.IndexOf(".gif") == -1 && _rawUrl.IndexOf(".jpg") == -1){       string[] _arrRawURL = _rawUrl.Split('/');       Server.Transfer("~/UserHomePage/Default.aspx?UserProfile=" + _arrRawURL[_arrRawURL.Length - 1]);}  It is getting fired Locally. As it was not working, I tried the alternative as belowMade Custom Errors to On in Web.config. and in IIS, in Custom Errors section, under 404 Page I gave the ErrorPage file Name and written the above code. But still  it is not working.Kindly help me out!  Thanks in Advance. Chaitanya.

Javascript "Undefined is null or not an object" error in IE :S

I read around and tried everything to figure out the reason of the issue i'm getting, but i give up, the error i'm getting is only on IE and it's the "Undefined is null or not an object" error.This is it:Line: 29Char: 13Error: 'undefined' is null or not an objectCode: 0This is the script:<script type="text/javascript">    function checkV1() {        if (document.getElementById('CB1').checked)            ValidatorEnable(document.getElementById('CheckBoxListValidator1'), true);        else            ValidatorEnable(document.getElementById('CheckBoxListValidator1'), false);    }    function checkV2() {        if (document.getElementById('CB2').checked)            ValidatorEnable(document.getElementById('CheckBoxListValidator2'), true);        else            ValidatorEnable(document.getElementById('CheckBoxListValidator2'), false);    }THIS IS LINE 29---->    fun

Ajax Error Sys undefined

My application is working fine on local system,but not on web server.web server has IIS 7.0 It is giving javascript error 'Sys is not defined' Error: ASP.NET Ajax client-side framework failed to load. Plz help
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend