Solved

toolkitscriptmanager Error when deployed (sys is not defined)

Posted on 2013-01-22
3
495 Views
Last Modified: 2013-02-22
Hi,

I’ve been developing an app on visual studio 2010.  Whilst doing this it has worked fine.

I’ve now deployed the site to IIS site and I’m getting some strange errors that appear to be related to toolkitscriptmanager control.

The error I’m getting is:

toolkitscriptmanager referenceError: sys is not defined

Is there anything obvious that I can check?
0
Comment
Question by:andyw27
  • 2
3 Comments
 
LVL 41

Expert Comment

by:guru_sami
ID: 38807793
Haven't user ToolkitScriptManager but here's my thought:
Make sure any entries for ASP.NET AJax in web.config are corresponding to right assemblies as ToolkitScriptManger will need 3.5 and make sure it's there on your productions server if you are using it via gac.
0
 
LVL 10

Expert Comment

by:Monica P
ID: 38809344
Make sure to check ur webconfig files

<httpHandlers>
  <remove verb="*" path="*.asmx"/>
  <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
  <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
  <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
  <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
</system.web>

Open in new window


Scenario you may get this error : when 2 config file are in same project even in differentname like webconfig,webconfig123.....

Check the date and time settings in server.. and  rebuilt the external project(s), and rebuilt my solution  and check once..

for more do review various solution :http://stackoverflow.com/questions/75322/sys-is-undefined
0
 
LVL 10

Accepted Solution

by:
Monica P earned 500 total points
ID: 38809351
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="false" enableCaching="true" />
</scripting>
</system.web.extensions> 

Open in new window



Refer :  http://weblogs.asp.net/chrisri/archive/2007/02/02/demystifying-sys-is-undefined.aspx
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSL Certificate for IIS7 Site 2 56
TimeZone, day light savings, Sql server, asp.net 6 37
Finding Events logs for IIS website that restarts 2 14
IIS Windows Server FTP 5 31
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question