Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
clayboy  
#1 Posted : Monday, January 19, 2009 7:24:03 PM(UTC)
clayboy

Rank: Newbie

Groups: Member
Joined: 12/18/2008(UTC)
Posts: 8

Hello

I am using the ImageUploader component in Firefox 3.0.5 in an asp.net application

The application uses SSL for security.

When uploading a file using the imageuploader i get a popup message box displaying the text, "Page to load is unaccessible".
Could it be a security permission causing the error perhaps?

The java console output is:



Java Plug-in 1.6.0_11
Using JRE version 1.6.0_11 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\xy33585

c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>



Aurigma ImageUploader version: 5.5.6.0
Current document URL: https://secure.cvp.mypor...uirements.aspx?fromId=pd
Reading cookies
Cookies: fcspersistslider1=4; ObSSOCookie=sPXL68vIeQxo6e4gA5ePKbF0RKZ7rMLt%2B0CPXnSqF3T59dwe0EOoHZg9rhhh1VeNOaafuPwJr6k%2BGBg3HWH7oH17s4HDkVQv0dNCwZ2GUD8F5LiF%2F3poHseatncWa53bT88L4Oiit7KQO1mzUJbMNSB2AQuDn5Xy92pIyXXLl747VId25dS0XBUpHIIozX49hyFxp%2FWs8mqTF3FStuOLwWRjG2yjF7xJiuq0MXm5dSYpm7Qd0cMDFpXkwXnO554fW5%2FJKmtuS%2FStbSCqLotmepXeODrwCfFvEz%2Bdd9RF1Z4W; ctl00_viewMenu=0|-1; ctl00_transactMenu=0|1; fcspersistslider1=3; ASPSESSIONIDSSTQCQSR=BODHKFDAPPLOKCBOHFPKNEJH; SL_alert_Visible=false
Reading referer
Referer: https://secure.cvp.mypor...uirements.aspx?fromId=pd
Uploading to https://secure.cvp.mypor...uirements.aspx?fromId=pd
Setting HTTPS params: Host=secure.cvp.myportfolio.oldmutual.co.za.dev; Port=443
Cookies:[ASP.NET_SessionId=4zc5bf55ocysvo452kfjwj55;]
Starting upload
###Error occured###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[3]
[ErrorPage]

[EndOfErrorPage]
Uploading to https://secure.cvp.mypor...uirements.aspx?fromId=pd
Setting HTTPS params: Host=secure.cvp.myportfolio.oldmutual.co.za.dev; Port=443
Cookies:[ASP.NET_SessionId=4zc5bf55ocysvo452kfjwj55;]
Starting upload


The aspx markup is:


<script type="text/javascript">

function ImageUploader1_ViewChange()
{
document.getElementById("selectView").selectedIndex = getImageUploader("ImageUploader1").getFolderView();
}

function ImageUploader1_AfterUpload()
{
location.reload(true);
}


function ImageUploader1_HideUploader()
{
document.getElementById('divUpload').style.display = 'none';
}

//CA 07012009 imageupload does not work with firefox
// Fix: created global variable to hold awdkey value for use in 'ImageUploader1_BeforeUpload()' method
var oAWDKey;
function ImageUploader1_ShowUploader(awdkey)
{
document.getElementById('hideUpload').style.display = 'none';
document.getElementById('divUpload').style.display = 'block';
oAWDKey = awdkey;
getImageUploader("ImageUploader1").Action=getImageUploader("ImageUploader1").getAction() + '&req=' + awdkey;
}

<%
String sessionId = null;
HttpCookie aCookie;
for(int i=0; i<Request.Cookies.Count; i++)
{
aCookie = Request.Cookies[i];
if(!aCookie.HasKeys)
{
if(aCookie.Name == "ASP.NET_SessionId")
{
sessionId = Server.HtmlEncode(aCookie.Value);
}
}
}
sessionId = sessionId.ToString();
%>

function ImageUploader1_BeforeUpload()
{
//use global variable containing awdkey and add it to posted form
getImageUploader("ImageUploader1").AddField('req', oAWDKey);
getImageUploader("ImageUploader1").AddCookie('ASP.NET_SessionId=<%= sessionId %>;');
}

// Enable / disable send button
function ImageUploader1_UploadFileCountChange()
{
var ctl = document.getElementById("<%=this.btnAttach.ClientID %>");

if (getImageUploader("ImageUploader1").getUploadFileCount() > 0)
ovalEnable(ctl);
else
ovalDisable(ctl);
}

function UploadFile()
{
getImageUploader('ImageUploader1').Send();
//var ctl = document.getElementById("<%=this.btnSubmit.ClientID %>");
//ovalEnable(ctl);
return false;
}

function ImageUploader1_Progress(Status, Progress, ValueMax, Value, StatusText)
{
if (Status=="COMPLETE"){
window.location = 'attachRequirements.aspx?' + '<%=Request.QueryString%>'
}
}





function hideGuide()
{
var now = new Date();
var expiryDate = new Date();
expiryDate.setFullYear(now.getFullYear() + 5);

// Make sure the div is there before trying to hide it
if (document.getElementById("divUserGuide"))
{
document.getElementById("divUserGuide").style.display = "none";
document.getElementById("spnViewGuide").style.display = "inline";

setCookie("ScanAndLinkGuide_Visible", "false", expiryDate);
}
}


function showGuide()
{
var now = new Date();
var expiryDate = new Date();
expiryDate.setFullYear(now.getFullYear() + 5);

// Make sure the div is there before trying to hide it
if (document.getElementById("divUserGuide"))
{
document.getElementById("divUserGuide").style.display = "block";
document.getElementById("spnViewGuide").style.display = "none";

setCookie("ScanAndLinkGuide_Visible", "true", expiryDate);
}
}


function document_OnLoad()
{
var viewGuide = getCookie("ScanAndLinkGuide_Visible");

if (viewGuide == null)
showGuide();
else
{
if (viewGuide == "false")
hideGuide();
else
showGuide();
}
}


</script>

<script type="text/javascript">
//<![CDATA[
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1",650, 400);

//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "/shared/sharedcontrols/client/ImageUploader5.cab";
iu.activeXControlVersion = "5,1,10,0";

//For Java applet only path to directory with JAR files should be specified (without file name).

iu.javaAppletJarFileName = "ImageUploader5.jar";
iu.javaAppletCodeBase = "/shared/sharedcontrols/client/";
iu.javaAppletCached = true;
iu.javaAppletVersion = "5.1.10.0";

iu.showNonemptyResponse = "off";

if (iu.getControlType() == "Java")
{
iu.addEventListener("BeforeUpload", "ImageUploader1_BeforeUpload");
}


//Configure appearance.
iu.addParam("PaneLayout", "TwoPanes");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("BackgroundColor", "#ccccff");
iu.addParam("ShowButtons", "False");
iu.addParam("AllowAutoRotate", "True");
iu.addParam("CacheGuiGraphics", "True");
iu.addParam("AllowMultipleSelection", "false");

//Configure License Keys
iu.addParam("LicenseKey", "");

//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "120");
iu.addParam("UploadThumbnail1Height", "120");
iu.addParam("UploadThumbnail1JpegQuality", "60");

//Configure URL files are uploaded to.
iu.addParam('Action', 'attachRequirements.aspx?fromId=<%=Request.QueryString["fromId"]%>')

iu.addParam("FileMask", "<%=mySeries.Web.ScanAndLinkHelper.getAllowableFileTypes() %>");
iu.addParam("MaxFileSize", "2097152 ");
iu.addParam("MessageMaxFileSizeExceededText", "The file [Name] cannot be selected. This file size exceeds the limit ([Limit] KB).");



//Configure URL where to redirect after upload.
//This simply reloads the page to reflect uploaded files
//iu.addParam('RedirectUrl', 'attachRequirements.aspx?fromId=<%=Request.QueryString["fromId"]%>')

iu.addEventListener("Progress", "ImageUploader1_Progress");

//iu.addEventListener("AfterUpload", "ImageUploader1_AfterUpload");

iu.addEventListener("UploadFileCountChange", "ImageUploader1_UploadFileCountChange");

iu.addEventListener("ViewChange", "ImageUploader1_ViewChange");

// No message after upload complete
iu.addParam("MessageUploadCompleteText", "");


iu.instructionsEnabled=true;
iu.instructionsCommon="Image Uploader ActiveX control is necessary to upload "+
"your files quickly and easily. "+
"Installation will take up to few minutes, please be patient. To install Image Uploader, ";

iu.instructionsNotWinXPSP2="please reload page and select \"Yes\" button " +
"when you will see control installation dialog."

iu.instructionsWinXPSP2="please click on Information Bar. After page reloading select \"Yes\" when "+
"you will see control installation dialog.";






//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
iu.writeHtml();



//]]>
</script>
Dmitry  
#2 Posted : Tuesday, January 20, 2009 7:33:31 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

Image Uploader cannot access upload script specified in the Action property. It can be problems with firewall, proxy and so on.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
clayboy  
#3 Posted : Tuesday, January 20, 2009 8:35:20 PM(UTC)
clayboy

Rank: Newbie

Groups: Member
Joined: 12/18/2008(UTC)
Posts: 8

Hello

The script executing in the Action property is the same page that is being executed.
This same page works correctly in Internet Explorer 5.5 + so i dont think its related to firewall or proxy settings. The development server which I am testing against does not have a firewall.

Is it perhaps a limitation in ImageUploader when rendered in firefox?

I have been using Fiddler to see what activity is ocurring when I upload an image but is shows no activity at all, which could mean that its not even trying to communicate with the server.
Is it perhaps failing on client side?

Cheers
Clayboy

Dmitry  
#4 Posted : Wednesday, January 21, 2009 11:21:28 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello Clayboy,

Sorry, I have not understood whether you use proxy server to access the Internet from your computer. Could you check it?

As far I understand you use Image Uploader ActiveX in IE and Image Uploader Java in FireFox. If you use a proxy you need to configure its settings in both IE and Java.

To do it in Java you need to open Java Control Panel -> Network Settings -> Use proxy Server -> Advanced button. You will see the proxy settings in the opened dialog. Please, take into account that you need to specify proxy settings for both HTTP and HTTPS (secure) there.

Edited by user Wednesday, January 21, 2009 11:23:44 PM(UTC)  | Reason: Not specified

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
clayboy  
#5 Posted : Thursday, January 22, 2009 1:05:53 AM(UTC)
clayboy

Rank: Newbie

Groups: Member
Joined: 12/18/2008(UTC)
Posts: 8

Hi Dmity

No i do not use a proxy to access the internet neither do I use a proxy to access our dev box on which the dev site is running.

In the Firefox i explicity say "No proxy" in network settings.

Yes i do use Image Uploader ActiveX for IE and ImageUploader java for firefox.

Is there possibly a way to get a more descriptive error message than "Page to upload is unaccessible" to come to a solution for this problem?
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.