There is some serious problem in my Visual Studio 2010,
When I am running my project, some unknown scripts comeup at the top of my project name in the solution explorer,
I guess it is because of some script, the script is composed of various sub files namely, eval code, anonymous code, etc, and I am unable to detect them on my machine,
Kindly do help me on this asap as my files are getting corrupted,
Are these scripts nested under Script Documents - > Windows Internet Explorer? If so this is by design, this is how VS allows you to debug scripts (like JavaScript).
Please mark the most helpful post(s) as Answer Blog | I need more space:DropBox Referral
Marked as answer by cabby87 on Jul 13, 2010 11:53 PM
This is going sound somewhat weird but if you right click on your project file in the solution explorer and select properties from the context menu then select the Web tab, scroll down to Debuggers and make sure that Silverlight is checked. For some reason
when Silverlight is checked JavaScript debugging is disabled.
Please mark the most helpful post(s) as Answer Blog | I need more space:DropBox Referral
Marked as answer by cabby87 on Jul 16, 2010 03:31 PM
I am still unable to see couple of images of my login.aspx page even after checking the Silverlight box.
Also, how can I delete the "anonymous code" from the Scripted documents it has the following content:
function anonymous(event) {
ValidatorOnChange(event);
}
function anonymous(event) {
event = event || window.event; if (!ValidatedTextBoxOnKeyPress(event)) { event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); return false; }
}
function anonymous(event) {
ValidatorOnChange(event);
}
function anonymous(event) {
event = event || window.event; if (!ValidatedTextBoxOnKeyPress(event)) { event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); return false; }
}
function anonymous(eventName, handler, autoRemove) {
/// <summary>A cross-browser way to add a DOM event handler to an element.</summary>
/// <param name="eventName" type="String">The name of the event. Do not include the 'on' prefix, for example, 'click' instead of 'onclick'.</param>
/// <param name="handler" type="Function">The event handler to add.</param>
/// <param name="autoRemove" type="Boolean">Whether the handler should be removed automatically when the element is disposed of, such as when an UpdatePanel refreshes, or Sys.Application.disposeElement is called.</param>
/// <returns type="Sys.ElementSet" />
return Sys.plugins["addHandler"].plugin.apply(this, arguments);
}
function anonymous(events, handlerOwner, autoRemove) {
/// <summary>Adds a list of event handlers to an element. If a handlerOwner is specified, delegates are created with each of the handlers.</summary>
/// <param name="events" type="Object">A dictionary of event handlers.</param>
/// <param name="handlerOwner">The owner of the event handlers that will be the this pointer for the delegates that will be created from the handlers.</param>
/// <param name="autoRemove" type="Boolean">Whether the handler should be removed automatically when the element is disposed of, such as when an UpdatePanel refreshes, or Sys.Application.disposeElement is called.</param>
/// <returns type="Sys.ElementSet" />
return Sys.plugins["addHandlers"].plugin.apply(this, arguments);
}
function anonymous() {
/// <summary>Clears all the event handlers that were added to the element or array of elements.</summary>
/// <returns type="Sys.ElementSet" />
return Sys.plugins["clearHandlers"].plugin.apply(this, arguments);
}
function anonymous(eventName, handler) {
/// <summary>A cross-browser way to remove a DOM event handler from an element.</summary>
/// <param name="eventName" type="String">The name of the event. Do not include the 'on' prefix, for example, 'click' instead of 'onclick'.</param>
/// <param name="handler" type="Function">The event handler to remove.</param>
/// <returns type="Sys.ElementSet" />
return Sys.plugins["removeHandler"].plugin.apply(this, arguments);
}
function anonymous(commandName, commandArgument, commandTarget) {
/// <summary>Causes a DOM element to raise a bubble event when clicked.</summary>
/// <param name="commandName" type="String">The name of the command to raise.</param>
/// <param name="commandArgument">Optional command argument.</param>
/// <param name="commandTarget">DOM element from which the command should start bubbling up.</param>
/// <returns type="Sys.ElementSet" />
return Sys.plugins["setCommand"].plugin.apply(this, arguments);
}
How do i get rid of this? Also I think this code/error has got into tVisual web developer 2010 express as, even if I open the previous saved version of my project(Which was working fine) the script documents come up.
cabby87
Member
44 Points
83 Posts
Script Virus/error--please help
Jul 13, 2010 07:42 PM|LINK
Hi Guys,
There is some serious problem in my Visual Studio 2010,
When I am running my project, some unknown scripts comeup at the top of my project name in the solution explorer,
I guess it is because of some script, the script is composed of various sub files namely, eval code, anonymous code, etc, and I am unable to detect them on my machine,
Kindly do help me on this asap as my files are getting corrupted,
Thanks and regards,
whighfield
Star
11721 Points
1859 Posts
Re: Script Virus/error--please help
Jul 13, 2010 11:02 PM|LINK
Are these scripts nested under Script Documents - > Windows Internet Explorer? If so this is by design, this is how VS allows you to debug scripts (like JavaScript).
Blog | I need more space:DropBox Referral
cabby87
Member
44 Points
83 Posts
Re: Script Virus/error--please help
Jul 13, 2010 11:53 PM|LINK
Hi,
Thanks for your reply
Yes you are right, but how do i disable them as they are causing errors in my file,
Regards,
whighfield
Star
11721 Points
1859 Posts
Re: Script Virus/error--please help
Jul 14, 2010 12:12 AM|LINK
This is going sound somewhat weird but if you right click on your project file in the solution explorer and select properties from the context menu then select the Web tab, scroll down to Debuggers and make sure that Silverlight is checked. For some reason when Silverlight is checked JavaScript debugging is disabled.
Blog | I need more space:DropBox Referral
cabby87
Member
44 Points
83 Posts
Re: Script Virus/error--please help
Jul 16, 2010 03:36 PM|LINK
Hi,
I am still unable to see couple of images of my login.aspx page even after checking the Silverlight box.
Also, how can I delete the "anonymous code" from the Scripted documents it has the following content:
function anonymous(event) {
ValidatorOnChange(event);
}
function anonymous(event) {
event = event || window.event; if (!ValidatedTextBoxOnKeyPress(event)) { event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); return false; }
}
function anonymous(event) {
ValidatorOnChange(event);
}
function anonymous(event) {
event = event || window.event; if (!ValidatedTextBoxOnKeyPress(event)) { event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); return false; }
}
function anonymous(eventName, handler, autoRemove) {
/// <summary>A cross-browser way to add a DOM event handler to an element.</summary>
/// <param name="eventName" type="String">The name of the event. Do not include the 'on' prefix, for example, 'click' instead of 'onclick'.</param>
/// <param name="handler" type="Function">The event handler to add.</param>
/// <param name="autoRemove" type="Boolean">Whether the handler should be removed automatically when the element is disposed of, such as when an UpdatePanel refreshes, or Sys.Application.disposeElement is called.</param>
/// <returns type="Sys.ElementSet" />
return Sys.plugins["addHandler"].plugin.apply(this, arguments);
}
function anonymous(events, handlerOwner, autoRemove) {
/// <summary>Adds a list of event handlers to an element. If a handlerOwner is specified, delegates are created with each of the handlers.</summary>
/// <param name="events" type="Object">A dictionary of event handlers.</param>
/// <param name="handlerOwner">The owner of the event handlers that will be the this pointer for the delegates that will be created from the handlers.</param>
/// <param name="autoRemove" type="Boolean">Whether the handler should be removed automatically when the element is disposed of, such as when an UpdatePanel refreshes, or Sys.Application.disposeElement is called.</param>
/// <returns type="Sys.ElementSet" />
return Sys.plugins["addHandlers"].plugin.apply(this, arguments);
}
function anonymous() {
/// <summary>Clears all the event handlers that were added to the element or array of elements.</summary>
/// <returns type="Sys.ElementSet" />
return Sys.plugins["clearHandlers"].plugin.apply(this, arguments);
}
function anonymous(eventName, handler) {
/// <summary>A cross-browser way to remove a DOM event handler from an element.</summary>
/// <param name="eventName" type="String">The name of the event. Do not include the 'on' prefix, for example, 'click' instead of 'onclick'.</param>
/// <param name="handler" type="Function">The event handler to remove.</param>
/// <returns type="Sys.ElementSet" />
return Sys.plugins["removeHandler"].plugin.apply(this, arguments);
}
function anonymous(commandName, commandArgument, commandTarget) {
/// <summary>Causes a DOM element to raise a bubble event when clicked.</summary>
/// <param name="commandName" type="String">The name of the command to raise.</param>
/// <param name="commandArgument">Optional command argument.</param>
/// <param name="commandTarget">DOM element from which the command should start bubbling up.</param>
/// <returns type="Sys.ElementSet" />
return Sys.plugins["setCommand"].plugin.apply(this, arguments);
}
How do i get rid of this? Also I think this code/error has got into tVisual web developer 2010 express as, even if I open the previous saved version of my project(Which was working fine) the script documents come up.
Please help me on this,
Regards
girish240419...
Member
273 Points
111 Posts
Re: Script Virus/error--please help
Nov 01, 2012 07:29 AM|LINK
same problem i am having here
http://forums.asp.net/t/1855439.aspx/1?anonymous+code+file+in+IE
and solution also.
Girish Meena