Welcome Guest Search | Active Topics | Sign In | Register

eo_ui is null error Options
Gaurav Solanki
Posted: Monday, March 2, 2009 3:09:44 PM
Rank: Newbie
Groups: Member

Joined: 3/2/2009
Posts: 9
I've been trying to implement Auto Upload demo for ajax uploader. I followed all steps necessary, but when I select a file by clicking Browse, I get "eo_ui is null" javascript error. I copied eo_web.ashx file to the website folder. I am not sure what I am missing here. Please help.

Thanks,
Gaurav
eo_support
Posted: Monday, March 2, 2009 3:17:09 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Do you have the web page online so that we can take a look? Also please let us know:

1. Does the problem occur only locally, or only on the remote server, or both?
2. Does the problem occur with our demo application?

Thanks!
Gaurav Solanki
Posted: Monday, March 2, 2009 3:27:17 PM
Rank: Newbie
Groups: Member

Joined: 3/2/2009
Posts: 9
Demo application runs fine. Error occurs on the local build. We haven't deployed this to live environment. I am posting code snippets with this reply,

Page that has uploader control,

<%@ Register TagPrefix="eo" NameSpace="EO.Web" Assembly="EO.Web" %>

<eo:CallbackPanel runat="server" id="CallbackPanel1" Triggers="{ControlID:AJAXUploader1;Parameter:}">
<eo:AJAXUploader id="AJAXUploader1" runat="server" AutoUpload="True" MaxDataSize="30000" TempFileLocation="~/eo_upload"
Width="400px"></eo:AJAXUploader>
</eo:CallbackPanel>

Web.config,
<httpModules>
<add name="EOWebRuntime" type="EO.Web.Runtime,EO.Web"/>
</httpModules>

I copied eo_web.ashx in the web folder. I was looking at html/script in firebug and I noticed that following lines of javascript block is missing "var _eo_handlerUrl='/CS/eo_web.ashx';" that is rendered in demo application.

var _eo_form='aspnetForm';
var _eo_autoInit=false;
var _eo_imgdir=null;

I hope this is enough information for you to troubleshoot.

Thanks,
Gaurav
eo_support
Posted: Monday, March 2, 2009 4:16:15 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

In that case you can try to explicitly set the path for eo_web.ashx in your web.config. It will be something like this:

Code: HTML/ASPX
<appSettings>
    <add key="eo_HandlerLocation" value="~/some_where"></add>
</appSettings>


The value attribute specifies the folder in which eo_web.ashx is expected to be found. For example, you can set it to "~/" if you place eo_web.ashx on your root directory. Once you add that, you may also want to try using File.Exist to check whether the file is indeed visible to your code. Sometimes the file is not visible to your code due to permission issues even though it's physically there.

Thanks!
Gaurav Solanki
Posted: Monday, March 2, 2009 4:52:00 PM
Rank: Newbie
Groups: Member

Joined: 3/2/2009
Posts: 9
I added <add key="eo_HandlerLocation" value="~/some_where"></add> to appSettings, it didn't help. I added script block to set handler location explicitly in javascript,
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "eoHandler", "var _eo_handlerUrl='/eo_web.ashx';", true);

Now error is gone, but it doesn't start uploading after I select the file and I've set AutoUpload="True".

Thanks,
Gaurav
Gaurav Solanki
Posted: Monday, March 2, 2009 4:55:01 PM
Rank: Newbie
Groups: Member

Joined: 3/2/2009
Posts: 9
File.Exist did return true for eo_web.ashx.
eo_support
Posted: Monday, March 2, 2009 5:03:29 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We can setup a remote session so that you can share your screen with us in order for us to take a look. Would you be OK with that?

Thanks!
Gaurav Solanki
Posted: Monday, March 2, 2009 5:09:39 PM
Rank: Newbie
Groups: Member

Joined: 3/2/2009
Posts: 9
Sure, I can do it right now, if you have some time.
eo_support
Posted: Monday, March 2, 2009 5:15:54 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
We probably won't have enough time today. Would tomorrow morning be OK for you?
Gaurav Solanki
Posted: Monday, March 2, 2009 5:17:17 PM
Rank: Newbie
Groups: Member

Joined: 3/2/2009
Posts: 9
I am going to be in the office for next hour and half and I'd like to solve this today if it is possible.
eo_support
Posted: Monday, March 2, 2009 5:25:21 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Did you see the private message we sent to you?


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.