Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

toolkitscriptmanager Error when deployed (sys is not defined)

Posted on 2013-01-22
3
Medium Priority
?
523 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 2000 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

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses
Course of the Month12 days, 12 hours left to enroll

972 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