Login | Sign Up
ErrorKey - Search engine for Error codes and messages     
  JScript Run-time Errors  [ 37 result(s) ]
MICROSOFT 
JS5045  -  MICROSOFT
JScript .NET does not support declarative security attributes A custom attribute that inherits from CodeAccessSecurityAttribute is applied to the definition of a method, class, or assembly. This is not allowed. Dynamic security must be used instead of declarative security attributes to control access to a portion of code. Note Only early-bound code can make calls to the Assert, Deny or PermitOnly security methods within the .NET Framework. This means that type-annotated variables must be used to store permission objects, since type annotation allows the compiler to generate early-bound code. Moreover, code generated at runtime (with the eval method or with a Function object created with the new operator) is late-bound code, which prevents it from making calls to the Assert, Deny or PermitOnly methods. In the following example, dynamic security is used to deny access to a particular file by a method. Copy Code import System; import System.IO; import System.Security; import System.Security.Permissions; class Alpha{ function Bravo() { var fileioperm : FileIOPermission; fileioperm = new FileIOPermission(FileIOPermissionAccess.AllAccess, 'd:\\temp\\myfile.txt'); fileioperm.Deny(); // Any additional code in this method will be // denied access to d:\temp\myfile.txt. } }
Use dynamic security instead of declarative security to declare a secure method or assembly.
JScript Run-time Errors
Comments
 
JS5039  -  MICROSOFT
The expression cannot be evaluated in the debugger While debugging a JScript .NET program, an expression was entered into the Command Window that could not be evaluated.
Make sure that only valid JScript .NET expressions are entered in the Command Window.
JScript Run-time Errors
Comments
 
JS5025  -  MICROSOFT
The URI to be decoded is not a valid encoding The code attempted to decode an improperly formed Uniform Resource Identifier (URI). URIs have a special syntax; most non-alphanumeric characters must be encoded before they can be used in a URI. The encodeURI and encodeURIComponent methods cannot create a URI from a normal JScript string. A complete URI is comprised of a sequence of components and separators. The general form is: :/;?The names in angle brackets represent components, and the ":", "/", ";" and "?" are reserved characters used as separators.
Ensure that the code is trying to decode valid URIs only. For example, a normal JScript string may not be a valid URI because it may contain invalid characters.
JScript Run-time Errors
Comments
 
JS5013  -  MICROSOFT
VBArray expected An object supplied to VBArray was not a Visual Basic safeArray, when one was expected. Visual Basic safeArrays, which cannot be created directly in JScript, must be imported by retrieving the value from an existing ActiveX or other object or from a Visual Basic script on the same Web page.
Ensure that only a Visual Basic safeArray object is passed to the VBArray constructor. Use a System.Array object. This allows for any .NET language (including JScript .NET and Visual Basic .NET) to access and modify the array.
JScript Run-time Errors
Comments
 
JS5017  -  MICROSOFT
Syntax error in regular expression A regular expression search string's syntax violates one or more of the grammatical rules of a JScript regular expression.
Make sure that a regular expression search string adheres to the JScript regular expression syntax.
JScript Run-time Errors
Comments
 
JS5023  -  MICROSOFT
Function does not have a valid prototype object The code uses instanceof to determine if an object was derived from a particular function class, but the code redefined the object's prototype property as either null or an external object type (both not valid JScript objects). An external object can be an object from the host object model (for example, Internet Explorer's document or window object), or an external COM object.
Ensure the function's prototype property refers to a valid JScript object.
JScript Run-time Errors
Comments
 
JS5000  -  MICROSOFT
Cannot assign to 'this' A value is assigned to this, a JScript keyword that refers to either: the object currently executing a method, the global object if there is no current method (or the method does not belong to any other object). A method is a JScript function that is invoked through an object. Inside a method, the this keyword is a reference to the object through which the method was invoked (which happens to be the object created by invoking the class constructor with the new operator). Inside a method, you can use this to refer to the current object, but you cannot assign a new value to this.
Do not assign a value to this. To access a property or method of an instantiated object, use the dot operator (for example, circle.radius). Note You cannot name a user-created variable this; it is a JScript reserved word.
JScript Run-time Errors
Comments
 
JS5037  -  MICROSOFT
The specified name is not the name of a parameter Named parameters call a JScript function or method, and one of the named parameter names does not correspond to a parameter name. This is not allowed since each named parameter name must refer to a parameter name. Note Named parameters cannot be used when calling functions and methods using JScript .NET. However, JScript .NET functions and methods can be called from other languages (such as Visual Basic .NET) that support named parameters. For more information, see Argument Passing by Position and by Name.
Provide a parameter name for each named parameter name.
JScript Run-time Errors
Comments
 
JS5038  -  MICROSOFT
Too few arguments specified Too few arguments specified. The number of parameter names cannot exceed the number of arguments passed in. Named parameters call a JScript function or method, but the number of arguments passed in exceeds the number of arguments specified by the function or method. This is not allowed since at least one of the arguments passed in must be discarded. Note When calling functions and methods using JScript .NET, named parameters cannot be used. However, JScript .NET functions and methods can be called from other languages (such as Visual Basic .NET) that support named parameters. For more information, see Argument Passing by Position and by Name.
Make sure that the number of arguments passed in does not exceed the number of parameter names.
JScript Run-time Errors
Comments
 
JS5035  -  MICROSOFT
Cannot provide null or empty named parameter name Named parameters call a JScript function or method, and one of the named parameter names is empty or null. This is not allowed since all parameters have non-null names. Note Named parameters cannot be used when calling functions and methods using JScript .NET. However, JScript .NET functions and methods can be called from other languages (such as Visual Basic .NET) that support named parameters. For more information, see Argument Passing by Position and by Name.
Provide a parameter name for each named parameter name.
JScript Run-time Errors
Comments
 
 

 
JScript Run-time Errors (37)
 
  Prev   1  2  3  4  Next