Welcome Guest Search | Active Topics | Sign In | Register

"The given key was not present in the dictionary." Options
Ian
Posted: Friday, October 14, 2011 4:48:41 AM
Rank: Newbie
Groups: Member

Joined: 10/14/2011
Posts: 4
Hi,

I just downloaded EO.PDF and tried to view the sample code and it gets this error:

The given key was not present in the dictionary.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: The given key was not present in the dictionary.

Source Error:

Line 19: //the Url into the PdfDocument object
Line 20: PdfDocument doc = new PdfDocument();
Line 21: HtmlToPdf.ConvertUrl(txtUrl.Text, doc);
Line 22:
Line 23: //Setup HttpResponse headers


Source File: c:\Program Files (x86)\Essential Objects\EO.Pdf 2011.2\Samples\Web\HtmlToPdf1.aspx.cs Line: 21

Stack Trace:

[Exception: The given key was not present in the dictionary.]
EO.Pdf.Internal.j6.c(Byte[] A_0, Int32 A_1) +636
EO.Pdf.Internal.kb.a(String A_0, Boolean A_1, String A_2) +274
EO.Pdf.Internal.kb.a() +333

[HtmlToPdfException: Convertion failed. The given key was not present in the dictionary.]
EO.Pdf.HtmlToPdfException.b(Exception A_0) +57
EO.Pdf.Internal.kb.a() +1177
EO.Pdf.HtmlToPdf.a(kb A_0) +24
EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc) +87
HtmlToPdf1.btnConvert_Click(Object sender, EventArgs e) in c:\Program Files (x86)\Essential Objects\EO.Pdf 2011.2\Samples\Web\HtmlToPdf1.aspx.cs:21
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

I had a previous version installed, and I removed it, then installed the current version available for download.

Any idea what that really useful message means?

eo_support
Posted: Friday, October 14, 2011 7:54:11 AM
Rank: Administration
Groups: Administration

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

We have a new build that may fix the problem for you. Please see your private message for the download location. Also, what OS are you running?

Thanks!

Ian
Posted: Friday, October 14, 2011 9:09:00 AM
Rank: Newbie
Groups: Member

Joined: 10/14/2011
Posts: 4
Hi,

I'm running it locally - XP x64 Professional Service Pack 2.

I will try the fix, and let you know.

Thanks
IH
Ian
Posted: Wednesday, October 26, 2011 10:19:48 AM
Rank: Newbie
Groups: Member

Joined: 10/14/2011
Posts: 4
Hi,

The fix works. Thank you. I assume it's a debug build due to the size of the DLL, so just wondering if this is suitable for production deployment or can you provide a new build that will be?

Thanks,
IH
eo_support
Posted: Wednesday, October 26, 2011 10:22:28 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Thanks for confirming that it works. What's the size of the DLL?
Ian
Posted: Wednesday, October 26, 2011 10:31:05 AM
Rank: Newbie
Groups: Member

Joined: 10/14/2011
Posts: 4
The DLL is approximately 15mb. I just realised the current build release is about the same size. For some reason I thought it was only about 3 or 4 mb for the older version I had.
eo_support
Posted: Wednesday, October 26, 2011 10:37:32 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
No. 15Mb is the right size. The debug build is about 60MB. ; ) You might have confused it with our EO.Web product. EO.Web's main DLL is about 4M.

I believe the download page now has a newer build than yours. So you might want to update to that build.

Please feel free to let us know if you have any other questions.

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.