CounterSoft User Forums

Welcome to CounterSoft User Forums Sign in | Join | Help
Home Forums

PDF generation Error

Last post 06-17-2010, 11:06 AM by Elcimai. 41 replies.
Page 1 of 3 (42 items)   1 2 3 Next >
Sort Posts:
  •  01-12-2010, 1:22 PM

    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

  •  01-12-2010, 1:30 PM

    Re: PDF generation Error

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

  •  01-12-2010, 1:40 PM

    Re: PDF generation Error

    The problem is repeatable on all reports.

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

     

    Regards

  •  01-12-2010, 1:57 PM

    Re: PDF generation Error

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

  •  01-12-2010, 3:19 PM

    Re: PDF generation Error

    Hello ..

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

  •  01-12-2010, 3:23 PM

    Re: PDF generation Error

    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).


  •  01-12-2010, 3:41 PM

    Re: PDF generation Error

    I have repaced the line with :

    <add key="ChartImageHandler" value="storage=file;timeout=20;dir=d:\http-root\cadet_tm\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.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)

  •  01-12-2010, 3:53 PM

    Re: PDF generation Error

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

  •  01-12-2010, 3:54 PM

    Re: PDF generation Error

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

  •  01-13-2010, 10:40 AM

    Re: PDF generation Error

    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
  •  01-13-2010, 10:53 AM

    Re: PDF generation Error

    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?

     


  •  01-13-2010, 2:21 PM

    Re: PDF generation Error

    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
    156 13/01/2010 15:18:31 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)

  •  01-13-2010, 2:24 PM

    Re: PDF generation Error

    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"/-->
  •  01-13-2010, 3:51 PM

    Re: PDF generation Error

    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.

     

     

     

  •  01-13-2010, 3:57 PM

    Re: PDF generation Error

    Are you using windows authentication as well?
Page 1 of 3 (42 items)   1 2 3 Next >
View as RSS news feed in XML