PDF generation Error
When i try to generate a PDF from the report, i have this error :
Error Gemini Could not render the url. Could not get image from url.The URL is not accessible. Status code 0x191.The requested resource requires user authentication. at ExpertPdf.HtmlToPdf.ImgConverter.GetMetafileFromUrl(String url, nc& htmlParseInfo) at ExpertPdf.HtmlToPdf.PdfConverter.GetPdfBytes(String url, String htmlString, String internalLinksDocUrl, Boolean fromUrl) at ExpertPdf.HtmlToPdf.PdfConverter.GetPdfBytesFromUrl(String url) at CounterSoft.Gemini.Web.Controls.PDFControl.lnkPDF_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Do you have any idea ?????
Regards
pascal.court
· 1 |
|
Tuesday, January 12, 2010, 1:22:18 PM |
0
|
Which report exactly please? |
||||
|
0
|
The problem is repeatable on all reports. And the URL is fixed to the server adress http://gessvn1/cadet_tm/
Regards |
||||
|
0
|
Can you please try it on the road map or change log? |
||||
|
0
|
Hello .. On the roadmap the pdf doesn't work, but excel work fine ... |
||||
|
0
|
Can you please test it on our site (http://gemini.countersoft.com)? |
||||
|
0
|
I have repaced the line with : <add key="ChartImageHandler" value="storage=file;timeout=20;dir=d:\http-root\cadettm\TempImageFiles\;" /> But the problem is not resolved.
ID Dated Message Type Message Source Entry User 105 12/01/2010 16:35:56 Error Gemini Could not render the url. Could not get image from url.The URL is not accessible. Status code 0x191.The requested resource requires user authentication. at ExpertPdf.HtmlToPdf.ImgConverter.GetMetafileFromUrl(String url, nc& htmlParseInfo) at ExpertPdf.HtmlToPdf.PdfConverter.GetPdfBytes(String url, String htmlString, String internalLinksDocUrl, Boolean fromUrl) at ExpertPdf.HtmlToPdf.PdfConverter.GetPdfBytesFromUrl(String url) at CounterSoft.Gemini.Web.Controls.PDFControl.lnkPDFClick(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) |
||||
|
0
|
Can we access your site? If so, please email a link to support at countersoft dot com |
||||
|
0
|
Also, are you using the new web.config file? |
||||
|
0
|
Hello, |
||||
|
0
|
Are you using windows authntication? Please check that you have this entry in the web.config file: <location path="project/ReportPdf.aspx"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> If it's there, try and add ~/project/..... to the entry. Also, can you test it with the issue age report?
|
||||
|
0
|
I use the Windows authentication
not render the url. Could not get image from url.The URL is not
accessible. Status code 0x191.The requested resource requires user
authentication. at
ExpertPdf.HtmlToPdf.ImgConverter.GetMetafileFromUrl(String url, nc&
htmlParseInfo) at ExpertPdf.HtmlToPdf.PdfConverter.GetPdfBytes(String
url, String htmlString, String internalLinksDocUrl, Boolean fromUrl) at
ExpertPdf.HtmlToPdf.PdfConverter.GetPdfBytesFromUrl(String url) at
CounterSoft.Gemini.Web.Controls.PDFControl.lnkPDF_Click(Object sender,
EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs
e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String
eventArgument) at
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) |
||||
|
0
|
For some additional information |
||||
|
0
|
Hi,
I have the same problem. I tried the first solution to modify the appsetting ChartImageHanbler to: <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" /> With this solution I still get the error on PDF and now the charts are not displayed on the page. (I can see image files added to the c:\TempImageFiles directory so the security on the folder is ok)
I tried the second solution to change the location path project/ReportPdf.aspx to ~/project/ReportPdf.aspx and I still get the error Could not render the url. Could not get image from url.The URL is not accessible. Status code 0x191.The requested resource requires user authentication.
|
||||
|
0
|
Are you using windows authentication as well? |
||||
|
0
|
Yes, we use windows authentication. |
||||
|
0
|
Can you please try in IIS to allow anonymous access to the Project/ReportPDF.aspx file only?
|
||||
|
0
|
I made the test and we still get the same error. |
||||
|
0
|
We have managed to replicate the issue and solved it by giving anonymous access to the project and project\report folder. Can you please test this? |
||||
|
0
|
In IIS on the "Directory security" option for the "projec" and "project/reportfoler, i have select "Enable anonymous access" and deselect "Integrated Windows authentication". The result is always the same : ID Dated Message Type Message Source Entry User 173 14/01/2010 15:44:29 Error Gemini Could not render the url. Could not get image from url.The URL is not accessible. Status code 0x191.The requested resource requires user authentication. at ExpertPdf.HtmlToPdf.ImgConverter.GetMetafileFromUrl(String url, nc& htmlParseInfo) at ExpertPdf.HtmlToPdf.PdfConverter.GetPdfBytes(String url, String htmlString, String internalLinksDocUrl, Boolean fromUrl) at ExpertPdf.HtmlToPdf.PdfConverter.GetPdfBytesFromUrl(String url) at CounterSoft.Gemini.Web.Controls.PDFControl.lnkPDF_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) |
||||
|
0
|
Can you please send an email to support at countersoft dot com? |
||||
|
0
|
I have installed the las version of Gemini 3.6.1. Now, the pdf can be downloaded but the images are not displayed on the pdf. |
||||
|
0
|
Is your chart storgae mode in session (web.config)? |
||||
|
0
|
Hi, |
||||
|
0
|
[quote user="pascal.court"]Hi, Same issue for me with version 3.6.3 (2590). We change the storage between session and file mode, but the problem is always here. |
||||
|
0
|
We know of an issue with the PDF and charts when using windows authentication. |
||||
|
0
|
We don't use windows authentication. This morning we have the bug on gemini.countersoft.com, but now it works ?!!? |
||||
|
0
|
We have seen some instances of it not working on our site due to session issues. |
||||
|
0
|
On our server, yes all the time. On your server, sometimes the second pdf generation works... |
||||
|
0
|
What errors do you get in the system log? |
||||
|
0
|
Sorry, but the system log say nothing about pdf generation. |
||||
|
0
|
It should say something about the image generation, does it not? |
||||
|
0
|
No, nothing. If you want you can access this at : .... It's your test base (Scrum), so you can use the manager / manager login. |
||||
|
0
|
I see that the issue is not with PDF generation as no images are shown at all on the website. |
||||
|
0
|
The same as for the production environnement, where the image display correctly : The images are created in this directory, but not displayed in Gemini ??? The application pool identity have full right in this directory. If I go to the project without login, I see the images !! (but not in the pdf) |
||||
|
0
|
Can you try to switch the image storage back to session mode on this one? |
||||
|
0
|
It's done. Now the images are displayed correctly in the UI and the pdf files !! ? |
||||
|
0
|
Go figure.... we have seen that sometimes it won't render until you kick the app again (save the web.config file). |
||||
|
0
|
Sorry... ;-( I found the problem (I think ...) but with "allow anonymous users" at "No" value, the pdf generation doesn't work ! |
||||
|
0
|
Yes, that makes sense. Thanks for the update. |
||||
|
1
|
ANSWER
We think we have a solution for this issue. <add key="ChartImageHandler" value="storage=session;" />to <add key="ChartImageHandler" value="storage=file;timeout=20;url=~/TempImageFiles;privateImages=false;deleteAfterServicing=true;" />After the below section: <location path="HttpCombiner.ashx">add <location path="ChartImg.axd">Create a folder in the root of your Gemini site called TempImageFiles and make sure that the application pool worker process has full access to it. If you are using windows authentication please make sure that you are allowing anonymous access to the Projects/ReportPdf.aspx file. |
||||
|
0
|
It works fine !! Thanks you for reply. |
||||
|
0
|
Works for me as well. But the PDF is with blanks instead of the actual chart. Any ideas what causes this? |
||||
|
0
|
Are you running windows authentication? Currently charts will not show in PDF for windows authentication. |
||||
|