|
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?
|
|
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!
|
|
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
|
|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Thanks for confirming that it works. What's the size of the DLL?
|
|
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.
|
|
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!
|
|