microsoftajax.debug.js not loaded when debug="true"

Hi,

I set ScriptMode="Debug" on the scriptmanager on my page and <compilation debug="true"> in web.config, but still microsoftajax.js is loaded instead of microsoftajax.debug.js

What am I missing here?

Thanks,

Thomas

0
thomasvsundert
8/18/2008 4:12:46 PM
asp.net.ajax-discussion 13973 articles. 1 followers. Follow

11 Replies
484 Views

Similar Articles

[PageSpeed] 31

Check your machine.config for retail=true, that will override anything you do in the script manager.  I think this functionality is designed so that you don't accidentally try to debug a production server (obvious perf issues)


Cheers,
Jim Wang
Microsoft (ASP.NET)
http://weblogs.asp.net/jimwang
0
Jim
8/18/2008 7:28:39 PM

 Thanks for the help, but I don't even have a machine.config file.

 Thomas

0
thomasvsundert
8/21/2008 9:41:23 AM

 Has anyone else got a suggestion?

Thomas

0
thomasvsundert
8/22/2008 9:23:48 AM

Can you paste the entire scriptmanager code that you have?  Unless you have that issue with machine.config, anything in the scriptmanager should always override what is in web.config.  The <compilation debug="true"/> tag is only used if ScriptMode is set to Auto.


Cheers,
Jim Wang
Microsoft (ASP.NET)
http://weblogs.asp.net/jimwang
0
Jim
9/4/2008 9:34:19 PM

Hi,

the code for my scriptmanager is:

<act:ToolkitScriptManager ID="ScriptManager1" runat="server"  CompositeScript-ScriptMode="Debug" CombineScripts="true" ScriptMode="Debug"></act:ToolkitScriptManager>

As you can see I'm using the AjaxControlToolkit scriptmanager.

Thanks,

Thomas

0
thomasvsundert
9/24/2008 9:13:22 AM

Hm, I'm unable to reproduce the issue when using that syntax.  How are you making the determination that the debug script is not being loaded?

Also, could you try using a regular script manager and seeing if you have the same problem?


Cheers,
Jim Wang
Microsoft (ASP.NET)
http://weblogs.asp.net/jimwang
0
Jim
9/24/2008 7:17:05 PM

I can see the debug script is not being loaded by using Firebug to check the scripts loaded on my page. Using the regular ScriptManager doesn't solve the problem.

 Thanks,

Thomas

0
thomasvsundert
9/25/2008 8:41:42 AM

Are you rendering this page locally on your computer or is it part of a deployed website?


Cheers,
Jim Wang
Microsoft (ASP.NET)
http://weblogs.asp.net/jimwang
0
Jim
10/4/2008 2:50:56 AM

 I'm rendering it locally, using the built-in webserver of Visual Studio 2008

Thomas

0
thomasvsundert
10/14/2008 8:13:55 AM

Hm, interesting.  Could you send me your project and associated files?  I am unable to reproduce this issue on my end (Visual Studio 2008 Team Suite SP1).  Which version of Visual Studio do you have?


Cheers,
Jim Wang
Microsoft (ASP.NET)
http://weblogs.asp.net/jimwang
0
Jim
10/18/2008 1:11:23 AM
In case you were still seeing this issue, here's a write-up on machine.config where you can check these settings.

http://msdn.microsoft.com/en-us/library/ms229697(VS.71).aspx
Cheers,
Jim Wang
Microsoft (ASP.NET)
http://weblogs.asp.net/jimwang
0
Jim
2/28/2009 1:29:31 AM
Reply:

Similar Artilces:

Compilation debug = "true" vs. debug ="false"
If I run my site with debug="false" I get errors and can't make it past the login page.  If I run my site with debug="true" the whole site runs as it is supposed to.Is this common? What kind of errors are you getting? For whatever reason, I am no longer getting any errors.  I can't recall exactly what errors I was getting when things weren't working properly.At any rate, it's back to the way it should be.Thank-you for your reply, voodoo9055.  Your help, advice and expertise is always appreciated....

debug="false", website fails... debug="true" website works...
I've got an ASP.Net website (ASP.Net 2.0 running on Windows Server 2003 R2 all SP applied) that does not run when web.config has debug="false".  The error says to set debug="true" to see what the error really is. Problem is, when I set debug="true" the error goes away and the site runs fine. Here's an example of the error output: Unable to cast object of type 'ASP.display_articlelink_ascx' to type 'Display_ArticleLink'. I have a user control called Display_ArticleLink that I load like this:  Dim objArtLink As Display_...

Do we need setup "Debug = True" in web.config for debugging client-side debug?
The question is as the subject. When we debug client-side script, we need uncheck "Disable script debugging" in IE; attach debugger to the process of iexplore.exe; set breakpoints in clientside codes, but is that for sure we need to config web.config to allow debug? But we do need this step if we want to debug ASP.NET applications, right?   Thanks...

configuration debug = "true" and the debug precompiler
Does the asp.net configuration debug="true" and the precompile directive #if DEBUG have anything in common? I don't think so but a colleague has told me there is some connection. Some of our code has #if DEBUGs that include additional stacktrace info when the code is compiled in Debug, a colleague has told me that when this code is built in release that somehow the #if DEBUG can be turned on and off at runtime with the asp.net configuration setting!!! is there any connection? I think not! My understanding would be that with at assembly compile time the code within the #i...

compilation defaultLanguage="vb" debug="true" ERROR
I don't have this error when I visit the site on 127.0.0.1 But I have it when I visit my site on the internet!! The ERROR: Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineOnly' beyond machi...

Ajax Library
Hi everyone,Consider following code: var rows = (targetElement.getElementsByTagName("table")[0]).getElementsByTagName("tr"); try { Array.forEach(rows, AssignHandler, targetElement); // Here, error is thrown } catch (ex) { Sys.Debug.trace(ex.message); // Try/catch and tracing ddded for debugging, same // error is there with or without it } var AssignHandler = function(element, index, array) { var cell = element.childNodes[0]; $addHandler(cell, "click", function() { SomeMethod(cell, someElemen...

ajax "debug" slowly takes longer to load symbols
I added ajax to an existing web project.  It runs fine but hitting F5 (debug) in Visual Studio 2005 sp1 slowly consumes resources:  Kernel Memory and System Cache grow and I start seeing"Loading symbols for C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0___\System.Web.Extensions.dll"in the VS2005 footer.  After several hours of coding and debugging it can take 2 minutes before that "loading symbols" finally finishes.  Restarting VS2005 does not solve the problem, but rebooting does and Kernel and Cache are back down.  I had not...

Visual studio 2005 not entering in to debug mode although i set debug="true"
Hi,i have a peculiar problem with vs.net 2005. when i press F5 and run the application, my webpage is displayed in the browser but visual studio doesn't entering into debug mode and still the pause and end buttons on the tool bar shows disabled which means my application is not running. till yesterday it was working fine. i checked the web.config file and the debug mode is set to "true" ..debug="true".my operating system config.xp  with sp2vs2005 with sp1recently i installed .net framework 3.5 on my computer.Please help me. i am stuck with it.  Click “M...

debug="true" ignored
hi. got me a site, and on this site i get an error. this is all good, if only i could see this error. its a nullreference exeption wich i could probably solve if i could see it. because it is like this: it says i have to type debug="true" either in my page directive (control directive in this case) or in my webconfig file. now, i have it in my webconfigfile, actually i have 2 of em, one in the root of the application, and one in the root of my project, and in both of em i have debug="true" i also tried it in my file aswell. but no luck.. drivin me nuts, any help appreciated -And...

superreview granted: [Bug 257230] Debug output "GpiQueryBitmapBits failed" from nsDrawingSurfaceOS2.cpp : [Attachment 157251] Include debug output into #DEBUG statement
Michael Kaply (IBM) <mkaply@us.ibm.com> has granted Michael Kaply (IBM) <mkaply@us.ibm.com>'s request for superreview: Bug 257230: Debug output "GpiQueryBitmapBits failed" from nsDrawingSurfaceOS2.cpp https://bugzilla.mozilla.org/show_bug.cgi?id=257230 Attachment 157251: Include debug output into #DEBUG statement https://bugzilla.mozilla.org/attachment.cgi?id=157251&action=edit ------- Additional Comments from Michael Kaply (IBM) <mkaply@us.ibm.com> sr=blizzard (platform specific) a=mkaply for 1.8a5 and 1.7 ...

[ID 20010425.010] use re "debug" not debugging
This is a bug report for perl from acme@astray.com, generated with the help of perlbug 1.33 running under perl v5.7.1. ----------------------------------------------------------------- [Please enter your report here] ext/re/re.pm says: When C<use re 'debug'> is in effect, perl emits debugging messages when compiling and using regular expressions. Under old perls this is true. eg 5.6.0: [acme@tigger re]$ perl -e 'use re "debug"; qr/^foo$/' Compiling REx `^foo$' size 5 first at 2 1: BOL(2) 2: EXACT <foo>(4) 4: EOL(...

disabling Perl "threads" and "debugging" to allow DBI install
I have tried to install the DBI module for Perl and experienced the bug mentioned in the DBI Readme file: Note: There is a bug in perl 5.8.2 when configured with threads and debugging enabled (bug #24463) which causes a DBI test to fail. How can I disable "threads" and "debugging" ? Is there another solution to this bug? Thanks. Tom ...

how compilation debug="true" affects performance
It is clear to me that<compilation debug="true">affects the time needed for aspnet_wp to dynamically compile "code-ahead" (.asmx,.aspx).What is less clear is whether debug="true" can adversely affect load/execution times on the client-side.Does debug="true" cause any additional files to be sent to the client ?Does debug="true" cause any additional info to be loaded into the DOM ?Does debug="true" cause any other client-side performance hits ? when debug is set to true, script libraries served up with webresource/scriptresource (such as the ajax libraries) will not be cached by the c...

Firefox 1.5 + debug="true"
On first inspection, it appears that debug="true" has no effect in Firefox 1.5 running on OS X. For example... <box debug="true"> <description>The parent box should turn on debug information</description> </box> I see no difference in appearance, with or without the debug attribute. What behaviour are other Firefox 1.5 users seeing? /dave Dave Roe wrote: > On first inspection, it appears that debug="true" has no effect in > Firefox 1.5 running on OS X. For example... Correct. See https://bugzilla.mozilla.org/...

Web resources about - microsoftajax.debug.js not loaded when debug="true" - asp.net.ajax-discussion

Resources last updated: 12/14/2015 4:06:25 PM