Here is my complete code and snapshot it shows Error code 4
<script type="text/javascript">
var imageUploader1 = null;
function Check_DDCategory()
{
imageUploader1.Send();
}
function fullPageLoad(){
imageUploader1=getImageUploader("ImageUploader1");
}
function selectView_change(){
if (imageUploader1){
var selectView = document.getElementById("selectView");
imageUploader1.setFolderView(parseInt(selectView.options[selectView.selectedIndex].value));
}
}
function ImageUploader_UploadFileCountChange(){
//imageUploader1=getImageUploader("ImageUploader1");
//imageUploader1.AddCookie('<%=FormsAuthentication.FormsCookieName %>=<%= Request.Cookies[FormsAuthentication.FormsCookieName].Value %>; ' + document.cookie);
//getImageUploader("ImageUploader1").AddCookie('<%=FormsAuthentication.FormsCookieName %>=<%= Request.Cookies[FormsAuthentication.FormsCookieName].Value %>');
}
function ImageUploaderID_Error(ErrorCode, HttpResponseCode, ErrorPage, AdditionalInfo) {
alert(ErrorCode);
}
</script>
<body style="background-color:white;">
<script type="text/javascript">
var imageUploader1 = null;
</script>
<div style="display:none;">
<input id="TotalSourceFileSize" name="TotalSourceFileSize" type="text" value="0" />
</div>
<form id="Form3" runat="server">
<div style="clear:both"></div>
<div class="textwhite" style="display:none;">Category:
<asp:DropDownList runat="server" Width="100px" CssClass="text" ID="DDCategory"></asp:DropDownList></div>
<div style="clear:both"></div>
</form>
<table cellspacing="0" cellpadding="0" border="0" style="float:left;" class="Toolbar">
<tbody>
<tr>
<td >
</td>
<td class="Panel">
<table cellspacing="0" border="0">
<tbody>
<tr>
<td>
<a href="#" onclick="imageUploader1.SelectAll();return false;">
<img class="Icon" src="Images/SelectAllSmall.gif" alt="Select All" /> Select All
</a>
</td>
<td>
<a href="#" onclick="imageUploader1.DeselectAll();return false;">
<img class="Icon" src="Images/DeselectAllSmall.gif" alt="Deselect All" /> Deselect All
</a>
</td>
<td>
<a href="#" onclick="Check_DDCategory();">
<img class="Icon" src="Images/SendSmall.gif" alt="Upload" /> Upload </a>
</td>
<td>
<img class="Separator" src="Images/ToolbarSeparator.gif" alt="" />
</td>
<td>
<a href="#" onclick="imageUploader1.Refresh();return false;">
<img class="Icon" src="Images/RefreshSmall.gif" alt="Refresh" /> Refresh </a>
</td>
<td>
<img class="Separator" src="Images/ToolbarSeparator.gif" alt="" />
</td>
<td>
<select id="selectView" onchange="selectView_change();">
<option value="0" selected="selected">Thumbnails</option>
<option value="1">Icons</option>
<option value="2">List</option>
<option value="3">Details</option>
</select>
</td>
</tr>
</tbody>
</table>
</td>
<td class="Right">
</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
//<![CDATA[
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 650,500);
//****Start of Ver 5.0******
iu.activeXControlCodeBase = "../ImageUploader5.cab";
iu.activeXControlVersion = "5,0,40,0";
iu.javaAppletJarFileName = "ImageUploader5.jar";
iu.javaAppletCodeBase = "../";
iu.javaAppletCached = true;
iu.javaAppletVersion = "5.0.40.0";
iu.showNonemptyResponse = "off";
//***End of Ver 5.0*****
//Configure appearance.
iu.addParam("PaneLayout", "ThreePanes");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("ShowButtons", "False");
iu.addParam("AllowRotate", "false");
iu.addParam("BackgroundColor", "#F5F8F0");
iu.addParam("ShowDescriptions", "false");
////Configure License Keys
iu.addParam("LicenseKey", "71050-4620A-00000-092A8-E12C6;72050-4620A-00000-0F10B-988AB");
//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "200");
iu.addParam("UploadThumbnail1Height", "200");
iu.addParam("UploadThumbnail1JpegQuality", "60");
//Start:Configure MedRes Images 03 March 08
iu.addParam("UploadThumbnail2FitMode", "Fit");
iu.addParam("UploadThumbnail2Width", "500");
iu.addParam("UploadThumbnail2Height", "500");
iu.addParam("UploadThumbnail2JpegQuality", "60");
//End:Configure MedRes Images 03 March 08
iu.addParam("FileMask", "*.jpeg;*.jpg;*.jpe");
iu.addParam("AdditionalFormName", "Form1");
iu.addParam("ShowDebugWindow", "true");
//Configure URL files are uploaded to.
iu.addParam("Action","upload.aspx");
iu.addEventListener("BeforeUpload", "ImageUploader_UploadFileCountChange");
//****For Error COde to check**
iu.addEventListener("Error", "ImageUploaderID_Error");
//*****************************
iu.fullPageLoadListenerName = "fullPageLoad";
iu.writeHtml();
//]]>
</script>
</body>
Mohan attached the following image(s):