Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




PDF generation Error

web-app

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
pascal.court
Replies (43)
helpful
0
not helpful

Which report exactly please?
Please check your full Gemini url setting.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

The problem is repeatable on all reports.

And the URL is fixed to the server adress http://gessvn1/cadet_tm/

 

Regards


pascal.court
· 1
pascal.court
helpful
0
not helpful

Can you please try it on the road map or change log?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Hello ..

On the roadmap the pdf doesn't work, but excel work fine ...


pascal.court
· 1
pascal.court
helpful
0
not helpful

Can you please test it on our site (http://gemini.countersoft.com)?
If it works then please try and amend your web.config file and replace the following line:
<add key="ChartImageHandler" value="storage=session;" />
with:
 <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />

You will need to give permission on this folder for the worker process (usually NETWORK SERVICE).


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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)


pascal.court
· 1
pascal.court
helpful
0
not helpful

Can we access your site? If so, please email a link to support at countersoft dot com


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Also, are you using the new web.config file?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Hello,

It's not possible to access gemini out of the enterprise.
I use the new web.config file.
For the installation i have used the .zip file, not the executable setup.

regards


pascal.court
· 1
pascal.court
helpful
0
not helpful

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?

 


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

I use the Windows authentication

Now i have this entry on the web.config :

    <location path="~/project/ReportPdf.aspx">
        <system.web>
            <authorization>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>

and no change ...

ID Dated Message Type Message Source Entry User

                <tbody><tr class="normalRow" valign="top">
                    <td class="bordered" align="center" valign="top">156</td>
                    <td class="bordered" align="center" valign="top">13/01/2010 15:18:31</td>
                    <td class="bordered" align="center" valign="top">Error</td>
                    <td class="bordered" align="center" valign="top">Gemini</td>
                    <td class="bordered" align="left" valign="top">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)


pascal.court
· 1
pascal.court
helpful
0
not helpful

For some additional information

Sometimes the charts are not displayed on the page.
I have changed this lines : on web.config

        <!--add key="ChartImageHandler" value="storage=file;timeout=20;dir=d:\http-root\cadet_tm\TempImageFiles\;"/-->
        <add key="ChartImageHandler" value="storage=session;"/>

        <sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=sa" cookieless="false" timeout="60"/>
        <!--sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=sa" cookieless="false" timeout="60"/-->


pascal.court
· 1
pascal.court
helpful
0
not helpful

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.

 

 

 


mtrudeau
· 1
mtrudeau
helpful
0
not helpful

Are you using windows authentication as well?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Yes, we use windows authentication.


mtrudeau
· 1
mtrudeau
helpful
0
not helpful

Can you please try in IIS to allow anonymous access to the Project/ReportPDF.aspx file only?

 


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

I made the test and we still get the same error. 


mtrudeau
· 1
mtrudeau
helpful
0
not helpful

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?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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)


pascal.court
· 1
pascal.court
helpful
0
not helpful

Can you please send an email to support at countersoft dot com?
We will remote in to your machine and see if we can solve this.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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.


pascal.court
· 1
pascal.court
helpful
0
not helpful

Is your chart storgae mode in session (web.config)?
We have seen sometimes that the chart won't show up but 2nd time it does, did you try again?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Hi,

Now after the Gemini 3.6.3

All reports images are diaplayed on tghe website.
The PDF are processed, but the images are not displayed on the PDF

<add key="ChartImageHandler" value="storage=session;"/>
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=sa" cookieless="false" timeout="60"/>


pascal.court
· 1
pascal.court
helpful
0
not helpful

[quote user="pascal.court"]Hi,

Now after the Gemini 3.6.3

All reports images are diaplayed on tghe website.
The PDF are processed, but the images are not displayed on the PDF



[/quote]

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.


Elcimai
· 1
Elcimai
helpful
0
not helpful

We know of an issue with the PDF and charts when using windows authentication.
Unfortunately we don't have a fix yet.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

We don't use windows authentication.

This morning we have the bug on gemini.countersoft.com, but now it works ?!!?


Elcimai
· 1
Elcimai
helpful
0
not helpful

We have seen some instances of it not working on our site due to session issues.
Do you get the issue all the time?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

On our server, yes all the time.

On your server, sometimes the second pdf generation works...


Elcimai
· 1
Elcimai
helpful
0
not helpful

What errors do you get in the system log?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Sorry, but the system log say nothing about pdf generation.


Elcimai
· 1
Elcimai
helpful
0
not helpful

It should say something about the image generation, does it not?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

No, nothing. If you want you can access this at : ....

It's your test base (Scrum), so you can use the manager / manager login.


Elcimai
· 1
Elcimai
helpful
0
not helpful

I see that the issue is not with PDF generation as no images are shown at all on the website.
What is your current setting for the charting (ChartImageHandler)?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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)


Elcimai
· 1
Elcimai
helpful
0
not helpful

Can you try to switch the image storage back to session mode on this one?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

It's done.

Now the images are displayed correctly in the UI and the pdf files !!

?


Elcimai
· 1
Elcimai
helpful
0
not helpful

Go figure.... we have seen that sometimes it won't render until you kick the app again (save the web.config file).


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Sorry... ;-(

I found the problem (I think ...) but with "allow anonymous users" at "No" value, the pdf generation doesn't work !


Elcimai
· 1
Elcimai
helpful
0
not helpful

Yes, that makes sense. Thanks for the update.


Mark Wing
· 9108
Mark Wing
helpful
1
not helpful
ANSWER

We think we have a solution for this issue.
Please amend the follwoing in the web.config file:

<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">
        <system.web>
            <authorization>
                <allow users="" />
            </authorization>
        </system.web>
    </location>
add
<location path="ChartImg.axd">
    <system.web>
      <authorization>
        <allow users="
" />
      </authorization>
    </system.web>
  </location>

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.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

It works fine !!

Thanks you for reply.


Elcimai
· 1
Elcimai
helpful
0
not helpful

Works for me as well. But the PDF is with blanks instead of the actual chart. Any ideas what causes this?


da.wolf
· 1
da.wolf
helpful
0
not helpful

Are you running windows authentication? Currently charts will not show in PDF for windows authentication.


Mark Wing
· 9108
Mark Wing