Until I tried installing Visual Studio 6.0 and Crystal Reports 8.5 last week, my ArcGIS was working perfectly. After the installation, however, every time I try to execute any search in the search window in ArcGIS 10.2.1 (both ArcMap and ArcCatalog), I get a script error with the message Object reference not set to instance of an object on Line 93.
Below is the function from the file which is causing the error described.
function DoSearch()
{
var st = document.getElementById("st_ID").value;
if ((st == null) || (st.replace(/\s/g,"") == "") || (st.lenght == 0))
{
if(GetContextCode(currentContextOnPage) != 6)
$('#st_ID').unbind('keypress');
else
{
var autoCompStr = getAutoCompleteStrings();
$("#st_ID").autocompleteArray(autoCompStr.split('+'),
{
delay:10,
minChars:1,
matchSubset:1,
autoFill:false,
maxItemsToShow:15,
width:0
});
}
document.getElementById("st_ID").focus();
return;
}
var context = GetContextCode(currentContextOnPage);
window.external.DoSearch(st, context); // <-- Error line
}
The following are things I tried that did not yield any positive result:
- Uninstalled Visual Studio 6.0 and Crystal Reports
- Uninstalled and then reinstalled ArcGIS
- Replacing the
MdDlgContent.xsl
andMdDlgHelp.xsl
files with the contents ofver10.zip
file as described in ESRI KB38099 here. - Updated my Java RE to the latest available this morning (Java 7 update 60 v7.0.600)
- Installed all Windows Updates for Internet Explorer
- Reset all Internet Explorer settings
- Allow execution of all scripts
Surprisingly tool windows are not affected and I am able to run tools when I double click on them from the toolbox. The screen shot below shows the Buffer tool opened and displaying properly.