Click here to Skip to main content
15,914,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi folks,
Greetings.
I am new for .NET technology. I am facing this trouble from long time (almost from a month back) when I am using some AJAX stuffs.

ERROR :
Locating source for 'C:\Users\Stephen\Documents\Repos\Superexpert\AjaxControlToolkit\Server\AjaxControlToolkit\ExtenderBase\ScriptControlBase.cs'. Checksum: MD5 {96 b3 2 f1 ca 17 5a 39 6e 7 1f c6 68 2f e2 bf}
The file 'C:\Users\Stephen\Documents\Repos\Superexpert\AjaxControlToolkit\Server\AjaxControlToolkit\ExtenderBase\ScriptControlBase.cs' does not exist.
Looking in script documents for 'C:\Users\Stephen\Documents\Repos\Superexpert\AjaxControlToolkit\Server\AjaxControlToolkit\ExtenderBase\ScriptControlBase.cs'...
Looking in the projects for 'C:\Users\Stephen\Documents\Repos\Superexpert\AjaxControlToolkit\Server\AjaxControlToolkit\ExtenderBase\ScriptControlBase.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
Looking in directory 'd:\'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: C:\Users\Stephen\Documents\Repos\Superexpert\AjaxControlToolkit\Server\AjaxControlToolkit\ExtenderBase\ScriptControlBase.cs.
The debugger could not locate the source file 'C:\Users\Stephen\Documents\Repos\Superexpert\AjaxControlToolkit\Server\AjaxControlToolkit\ExtenderBase\ScriptControlBase.cs'.

Could you please tell me how could this error be solved and what this error is about?

Thank you very much in advance for your valuable replies.

Regards,
Nachi
Posted
Updated 2-Dec-11 20:02pm
v2
Comments
Karthik Harve 3-Dec-11 2:09am    
In which AJAX control are you facing this problem..??
Nachiket G 3-Dec-11 2:36am    
Well about this I am running a logic to raise a popup window with dimmed background.
I have written a C#.NET function for this as follows :
public static void ShowModalPopup(string strModalPopupDivElementName, string strMaskedDivElementName)
{
HttpContext context = HttpContext.Current;
Page page = (Page)context.Handler;

//document.getElementById ('" + strMaskedDivElementName + @"').style.display='';


string strJScript;

if (false == String.IsNullOrEmpty(strMaskedDivElementName) && false == String.IsNullOrEmpty(strModalPopupDivElementName))
{
strJScript = @"
document.getElementById ('" + strModalPopupDivElementName + @"').style.visibility='visible';
document.getElementById ('" + strModalPopupDivElementName + @"').style.display='';

document.getElementById ('" + strMaskedDivElementName + @"').style.display='';
document.getElementById ('" + strMaskedDivElementName + @"').style.visibility='visible';
document.getElementById ('" + strMaskedDivElementName + @"').style.top='0px';
document.getElementById ('" + strMaskedDivElementName + @"').style.left='0px';
document.getElementById ('" + strMaskedDivElementName + @"').style.width= document.documentElement.clientWidth + 'px';
document.getElementById ('" + strMaskedDivElementName + @"').style.height= document.documentElement.clientHeight+ 'px';";

strJScript = String.Format(strJScript);
ScriptManager.RegisterStartupScript(page,
typeof(Page),
"Redirect",
strJScript,
true);
}

}

This gets executed without error, but once The page starts running I get the error message which I have posted in my question.

I am also wondering what kind of AJAX control I am using in this portion.

In above code I am adding few run time javascript code using C#.NET and its just pops up two div s and shows then as a popup..
Nachiket G 3-Dec-11 3:03am    
Sometimes it shows following error as well.

"Microsoft JScript runtime error: Unable to get value of the property 'style': object is null or undefined"

Richard MacCutchan 3-Dec-11 5:32am    
That message is quite clear, an element that you are referring to does not exist in the HTML document tree, or does not contain a sub-element named style.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900