Welcome Guest Search | Active Topics | Sign In | Register

unknown runtime error in eo_web.ashx Options
Geoff
Posted: Friday, July 2, 2010 1:52:16 AM
Rank: Newbie
Groups: Member

Joined: 7/2/2010
Posts: 3
Hi, I am trying out one or your controls (the datepicker) in a new website I am developing. I got it working OK in Visual Studio (2003) in debug mode but am having trouble in the live website. I am not sure if this is a problem with my code or with my installation of EO_Web.

The webpage comes up OK with the 4 datepickers I have defined, however, the error icon in the bottom left if IE 8 shows an error and there are 8 occurrances of the error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Fri, 2 Jul 2010 05:02:36 UTC


Message: Unknown runtime error
Line: 6
Char: 11992
Code: 0
URI: http://www.tdfhub.com/eo_web.ashx?id=9b970985-4fe7-4f7c-952e-592e9c9a18f3

The 4 datepicker controls look OK but nothing happens when I click the button for the drop down calendar.

I have eo_web.dll (the 2.0 version as initially I got an error with the 1.1 version and intruction to use 2.0) in the bin directory (version 8.0.15.2) and below is my web.config file.

<configuration>
<system.web>
<customErrors mode="Off"/>
<compilation defaultLanguage="c#" debug="true">
<assemblies>
<add assembly="EO.Web, Version=8.0.15.2, Culture=neutral, PublicKeyToken=e92353a6bf73fffc"></add>
</assemblies>
</compilation>
<pages>
<controls>
<add assembly="EO.Web, Version=8.0.15.2, Culture=neutral, PublicKeyToken=e92353a6bf73fffc" namespace="EO.Web" tagPrefix="eo" />
</controls>
</pages>
</system.web>
</configuration>

Also, after getting a security error, I placed the eo_web.ashx file in the root directory. Contents of this file are:
<%@ WebHandler Class="EO.Web.Runtime" %>

I am not sure if this control is a free control of if I need a license to use it but was hoping to try it out before purchasing a license. Could this be the problem?

Here is the code from my .aspx webpage:
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td colspan="2">
<label>Start Date: </label><eo:DatePicker style="Z-INDEX: 101; " id="dtpUserEffStart" PickerFormat="dd/MM/yyyy" runat="server"></eo:DatePicker><asp:Label ForeColor="#FF0000" ID="lblUserEffStartError" runat="server"> </asp:Label>
<label>End Date: </label><eo:DatePicker style="Z-INDEX: 101; " id="dtpUserEffEnd" PickerFormat="dd/MM/yyyy" runat="server"></eo:DatePicker><asp:Label ForeColor="#FF0000" ID="lblUserEffEndError" runat="server"> </asp:Label>
<label>Last Access: </label><eo:DatePicker style="Z-INDEX: 101; " id="dtpUserLastAccess" PickerFormat="dd/MM/yyyy" runat="server"></eo:DatePicker><asp:Label ForeColor="#FF0000" ID="lblUserLastAccessError" runat="server"> </asp:Label>
<label>Pwrd Chngd: </label><eo:DatePicker style="Z-INDEX: 101; " id="dtpUserPasswordChange" PickerFormat="dd/MM/yyyy" runat="server"></eo:DatePicker><asp:Label ForeColor="#FF0000" ID="lblUserPasswordChangeError" runat="server"> </asp:Label>
</td>
</tr>

Also at start of page, I have:
<%@ Register TagPrefix="eo" Namespace="EO.Web" Assembly="EO.Web" %>
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>

Hope you can point me in the right direction to resolve this.

Regards,
Geoff Cagney
eo_support
Posted: Friday, July 2, 2010 7:47:40 AM
Rank: Administration
Groups: Administration

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

Your code looks fine to us. Do you have the page online so that we can take a look?

The control does need a license. You can purchase a license directly from our website by selecting Company -> Purchase from our main menu.

Thanks!
Geoff
Posted: Friday, July 2, 2010 11:52:00 PM
Rank: Newbie
Groups: Member

Joined: 7/2/2010
Posts: 3
I have purchased and installed a developers license in case that was the problem but the problem is still the same. I have changed the page to enable you to enter without logging into the website. You can view the page in http://www.tdfhub.com/user.aspx

eo_support
Posted: Saturday, July 3, 2010 2:25:32 PM
Rank: Administration
Groups: Administration

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

Thank you very much for your business. There are many invalid HTML elements in your page. For example, your lblInstruction is inside a <td> and <tr>, but is not inside a <table> element, which is invalid. Your "Images/mm_spaces.gif" is inside a <tr>, but that <tr> is inside a <td>, which is also invalid. Please try to correct those and that should fix the DatePicker issue.

Thanks!
Geoff
Posted: Saturday, July 3, 2010 6:34:18 PM
Rank: Newbie
Groups: Member

Joined: 7/2/2010
Posts: 3
Hi, actually all tags were inside a table tag and the HTML was all OK. Everything was working except for the date picker. Thanks to your response I looked into this area and found that the from tag was inside the table tag and that the EO generated code was placed after the form tag. I then moved the form tag to the outside of the table tag and everything is now working OK. Thanks very much for your help and for the prompt responses.
eo_support
Posted: Saturday, July 3, 2010 6:55:36 PM
Rank: Administration
Groups: Administration

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

You are welcome. You will definitely need to fix those invalid tags as well. It may appear to be working for you now but unless you fix all invalid tags you may run into other problems down the road. It should not matter whether your form tag is inside a table or not for a normal page.

EO generated code will always appear at where you place the control. So if you place the control inside of the table, it will generate inside the table. If you place it outside of the table, it will generate outside of the table. It follows your .aspx contents literally.

If you run into similar problems again, try to remove other contents in your page (including master page) block by block and that should help you identify the triggering part. Invalid HTML code is always the most likely causes for such kind of mysterious script error.

Thanks!


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.