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

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

SCRIPT5009 "xxxx" is undefined

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :WPF

We are using a 3rd party control that renders a diary view.  This has been running successfully cross browser under WS2003 II6 for three years.

When migrating it to WS2008sp2 IIS7.5 we get a SCRIPT5009 "xxxx" is undefined error on some machines but not all.  It would appear that the script is not being servered, however a good percentage of machines display the control without issue.  This is true in IE8, IE9 and firefox. It would also appear that the machines that can use the control are using an established URL but if we provide a different URL they too fail until we switch it back, cacheing?.

We have switched on CGI and ISAPI, is there something else we need to do to force this script to serve?  How should IIS7 be configured to handle this?


Rob www.engineersnetwork.net

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 :

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.......

How to fix "Validation(): Element 'xxxx' is not supported" Visual Studio 2010

Since about a month ago,I started to get validation warnings at design time on asp.net server controls (any control actually) within the html design view for VS 2010,intellisense on all controls would not work at all,the messages look like this: Validation(): Element 'Label' is not supported. Validation(): Element 'GridView' is not supported ....etc The compilation done successfully but the warnings still exist and intellisense is not working at the source tab I tried to reset the settings of VS 2010 ,disabled all extensions and few other ideas but none of them solved the issue,I got stuck. I did a search over the internet about this issue and found this article on Doug Kennard's blog: http://www.gotknowhow.com/articles/fix-validation-element-not-supported-visual-studio-2010 Splendid,that article is a life savior.

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!

Where is SQL Native Client 10.5.xxxx for Visio 2010

When attempting to use Reverse Engineer tool in Visio 2010 Professional for the Database Model Diagram, selecting SQL Native Client as the data source provider only gives the ODBC SQL Server Native Client as 10.0 (SQL Server 2008). How do I use 10.5.xxxx to connect to a SQL Server 2008 R2 database. Obviously the 10.0.xxxx provider won't understand the newer data types available in 2008 R2.

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

MVC2 Could not load file or assembly 'xxxx.Models' shared hosting

Hello,I have an mvc2 site that runs fine locally but when i deploy it to my shared hosting account i keep getting this error.Could not load file or assembly 'AppMVC2.Models, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.I have run Reflector againts the dll to see what dependencies the dll has, I then took each one of the dependant dlls and set them to copy local in the project and deployed them all to the shared hosting account even ones that should be on the server like System.Web. except for mscorlib.dll, but i still get the error.I have also tried to bin deploy and deploy the code files and get the same error.I have seen people write about fusion log but i don't see any examples on how to get this running on shared hosting.Just wondering does anyone else have any recommendations on how to track down the source of this problem?

Framework 4.0 dll loaded by a 2.0 executable cannot find "xxxx.resources.dll"

 Hello, I have an interesting situation here that I was hoping someone may be able to give some pointers on.  First my application is all provided within a class library assembly so that it can be loaded by multiple hosts.  We are investigating moving to Visual Studio 2010 and the .Net Framework 4.0 for some of the new features.  However, one of our hosts is a 2.0 click once application that we do not have the source to.  I've tried modifying the config file for the executable to add the useLegacyV2RuntimeActivationPolicy with the 4.0 as the supported runtime and setting loadFromRemoteSources as suggested by a Google search and that came close to working.  However, depending on the workflow through our client code is giving a System.IO.FileNotFoundException for various references. The message associated with the exception is Could not load file or assembly 'file:///XXXXXX.resources.dll' or one of its dependencies. The system cannot find the file specified."  Were the XXXXX changes and the .dll may or may not be present depending on whether Assembly.Load or Assembly.LoadFrom was used to perform the load.  Any thoughts would be greatly appreciated. [Addition: I forgot to mention that our app originally targeted Framework 3.5SP1] Michael Fischer

'theForm' is undefined?!?

I'm using some small atlas on the page (just update panel and script manager) and I keep running into this javascript error every time I try to submit. I was sure it was a validation thing, so i pulled all the validation tags off the page, but it's still firing. Any ideas? If it's not clear, my form is not named "theForm" and i have no idea where that comes from. In FF, I was able to see the code, and here's what's happening Error: theForm is not definedSource File: http://localhost:13656/WebResource.axd?d=s3dJX5e_e431rKXwpmcp9w2Line: 19function WebForm_PostBackOptions(eventTarget, eventArgument, validation, validationGroup, actionUrl, trackFocus, clientSubmit) { this.eventTarget = eventTarget; this.eventArgument = eventArgument; this.validation = validation; this.validationGroup = validationGroup; this.actionUrl = actionUrl; this.trackFocus = trackFocus; this.clientSubmit = clientSubmit; } function WebForm_DoPostBackWithOptions(options) { var validationResult = true; if (options.validation) { if (typeof(Page_ClientValidate) == 'function') { validationResult = Page_ClientValidate(options.validationGroup); } } if (validationResult) { if ((typeof(options.actionUrl) != "undefined") && (options.actionUrl != null) && (options.actionUrl.length > 0)) { theForm.action =

Login failed for user 'xxxx'

Hi I am using the following web.config to connect to the Database, but when the website tries to query some thing from the database I get an error saying that Login failed for user 'Netuser'. - I am using LINQ to SQL. - The user has dbo access, the authentication on SQL is Windows and SQL authentication. - The username,password and the Database is correct. Could some one let me know what to do? <connectionStrings>   <add name="constring" connectionString="Data Source=DEV;Initial Catalog=CentralDB; User ID=priv;password=test;Trusted_Connection=True;Connect Timeout=6000" providerName="System.Data.SqlClient" />                <add connectionString=LDAP://oc.olive/> </connectionStrings> STACK TRACE:::: [SqlException (0x80131904): Login failed for user 'Netuser'.]   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +428   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117   System.Data.SqlClient.SqlConnection.Open() +122   System.Data.Linq.SqlClient.SqlConnectionManager.UseCo

asp:Menu causes sys undefined with URL rewriting

Hi, I'm developing using the new ASP.NET 4 and I ran into the following issue. When I put a Menu control into the web form, the menu causes the following code to generate just before the closing </form> tag:<script type='text/javascript'>new Sys.WebForms.Menu({ element: 'NavigationMenu', disappearAfter: 500, orientation: 'horizontal', tabIndex: 0, disabled: false });  As long as I don't use URL Routing, the page compiles and loads properly. But when I try to use URL Routing on the website, VS starts to throw "Sys is undefined" exception. However, this does not happen always. Most frequently it happens when I change somenting positioning-related in the CSS file, but sometimes the exceptions seems just arbitrary. I'm not sure which parts of code could help, if any. I would appreciate any help. Thx

'sys' is undefined

I have an asp.net ajax web site that is giving me the error message "sys is undefined" My asp.net ajax is displayed within an iframe. Within the iframe I was getting the error message "Access Denied". I then found this page and this page . So I downloaded the latest version of the MicrosoftAjaxLibrary and stuck the files within a folder called Scripts and changed my ScriptManager to this <asp:ScriptManager ID="ScriptManager1" runat="server" ScriptPath="~/scripts" /> That is when I started getting the SYS error message. Funny thing is before I changed the ScriptManager the site worked outside an iFrame. Now I get this message whether the page is within or outwith an iFrame. I've looked through this thread (http://forums.asp.net/p/1040236/1446560.aspx), not every post to be honest, but I couldn't find an answer. Any suggestions are welcome, thanks.   

The expression contains undefined function call MyUserFunction() error :Telerik Reports

  Hello All, I am getting the error."An error has occured while processing textbox:The expression contains undefined function call FormType()". I have a report..where in i used a user function called "FormType". My datasource  for teh report is sharepoint list. I am passing a parameter to the user function in the code.My user functions retrieves three values(one each time based on the conditions)But when i select the user function..in the edit expression dialog box.. i am not writing any parameter inside the user function as i am not sure what to write there. I have gone through http://www.telerik.com/support/kb/reporting/designing-reports/the-expression-contains-undefined-function-call-myuserfunction-error.aspx and thought i might fall in 2nd cateogry..but unable to find a solution for that Please help me. Here is the code. InitializeComponent();             string strType;             SPSite oSite = new SPSite("spsiteurl");             SPWeb oWeb = oSite.OpenWeb();             string[] parameters = { "10", "100", "1000" };             T

Annoying issue with: Element 'xxxx' is not a known element.


I am getting hundreds of messages like that: "Element 'xxxx' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing. "

Very simple to reproduce, just start a new web project and start adding elements to the web page. All this craps starts poping up, no intellisense.

Ignoring Undefined Query Strings in XLSTListView Webpart


I'm using SharePoint Designer to add a custom view to the default page of a site. I want to filter the data on some query string values - but only if the query string values actually exist. I haven't been able to figure out how to do that, either in the gui or by hacking around with the actual where clause. The where clause is below. Anyone have any ideas?

                                               <FieldRef Name=

getScrollPosition undefined in production MicrosoftAjaxWebForms.js??


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

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