Report Error

15 posts, 0 answers
  1. Daniel
    Daniel avatar
    9 posts
    Member since:
    Oct 2011

    Posted 26 Sep 2012 Link to this post

    Can anyone shed some light on this error please - reporting works fine in the development environment - but on server no :(

    The type initializer for 'Telerik.Reporting.Processing.ReportDocumentResolverFactory' threw an exception.
    Object reference not set to an instance of an object.

    at Telerik.Reporting.Processing.ReportDocumentResolver.Bind[T](ReportSource source, Func`2 func)
    at Telerik.Reporting.Processing.ReportDocumentResolver.Resolve(ReportSource source)
    at Telerik.ReportViewer.WebForms.ParametersPage.get_ReportDocument()
    at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
    at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
    at System.Web.UI.Control.EnsureChildControls()
    at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 

    if you need for info then feel free to ask :)
    Thanks

    Daniel
  2. Mergen
    Mergen avatar
    9 posts
    Member since:
    Feb 2012

    Posted 26 Sep 2012 Link to this post

    My web application has the same error. Does anyone know why?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 26 Sep 2012 Link to this post

    Hi guys,

    This is a problem when running your web site/app under Medium Trust. It has already been fixed in the Q2 2012 SP1, so please upgrade to resolve it.

    Sorry for the temporary inconvenience.

    All the best,
    Steve
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

  5. Daniel
    Daniel avatar
    9 posts
    Member since:
    Oct 2011

    Posted 26 Sep 2012 Link to this post

    Cool - many thanks for the quick response :)
  6. Mergen
    Mergen avatar
    9 posts
    Member since:
    Feb 2012

    Posted 10 Oct 2012 Link to this post

    Hi Daniel,

    Have you found any solutions to that issue? I have upgraded the reporting control to the latest version, but it still does not work and it gives me another error message.


  7. Daniel
    Daniel avatar
    9 posts
    Member since:
    Oct 2011

    Posted 10 Oct 2012 Link to this post

    yep :) - all sorted - what problems are you having - please elaborate and I will try to help.
  8. Mergen
    Mergen avatar
    9 posts
    Member since:
    Feb 2012

    Posted 10 Oct 2012 Link to this post

    Hi Daniel,

    After I upgraded to the latest version, I got the below error message:

    Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
    at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)
    at System.Security.CodeAccessPermission.Demand()
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
    at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
    at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
    at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
    at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
    at Telerik.Reporting.Processing.UriReportDocumentResolver.Resolve(UriReportSource rs)
    at Telerik.Reporting.Processing.ReportDocumentResolver`1.Telerik.Reporting.Processing.IReportDocumentResolver.Resolve(ReportSource rs)
    at Telerik.Reporting.Processing.ReportDocumentResolver.<>c__DisplayClass1.b__0(IReportDocumentResolver r)
    at Telerik.Reporting.Processing.ReportDocumentResolver.Bind[T](ReportSource source, Func`2 func)
    at Telerik.Reporting.Processing.ReportDocumentResolver.Resolve(ReportSource source)
    at Telerik.ReportViewer.WebForms.ParametersPage.ResolveReportDocument(ReportSource reportSource)
    at Telerik.ReportViewer.WebForms.ParametersPage.get_ReportDocument()
    at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
    at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
    at System.Web.UI.Control.EnsureChildControls()
    at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest()
    at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
    at System.Web.UI.Page.ProcessRequest(HttpContext context)
    at Telerik.ReportViewer.WebForms.ReportParametersOperation.PerformOperationOverride()

    I put all the .trdx files to a seperate report foder which is called "report", and that folder is inside my application directory. My reporting webpage is inside another folder. Currently I set a physical path to the reportsource. I guess maybe that's why I get the IOPermission error. How can I set a relative path to the reportsource? 
  9. Mergen
    Mergen avatar
    9 posts
    Member since:
    Feb 2012

    Posted 10 Oct 2012 Link to this post

    I have changed the path to a relative path,but this time it gave me another error which is:

    Request failed.

    at Telerik.Reporting.Drawing.SizeUConverter..cctor()
  10. Daniel
    Daniel avatar
    9 posts
    Member since:
    Oct 2011

    Posted 11 Oct 2012 Link to this post

    Hi 
    Can you post the full error please - or your code zipped and I will take a look - getting the reports working can be a little tricky at times, but its usually something quite simple :)

    Regards

    Daniel :)
  11. Mergen
    Mergen avatar
    9 posts
    Member since:
    Feb 2012

    Posted 11 Oct 2012 Link to this post

    Hi Daniel,

    Thanks for your help.

    It only shows me

    "Request failed.

    at Telerik.Reporting.Drawing.SizeUConverter..cctor()" on the webpage.  Not sure if it is the full error message or not.

  12. Kim Phuong
    Kim Phuong avatar
    3 posts
    Member since:
    Jun 2015

    Posted 09 Jun 2015 in reply to Daniel Link to this post

    the report didn't work for a week ago. please help me! thanks a lot. ^-^
  13. Stef
    Admin
    Stef avatar
    3047 posts

    Posted 10 Jun 2015 Link to this post

    Hello Kim,

    If the issue is related to the originally reported one, please check the settings listed in Medium Trust Support.


    If you need further help, elaborate on the received error, the full exception's stack trace, used Telerik Reporting version and viewer, and tested environments. Any screenshots and code will be helpful as well.

    Regards,
    Stef
    the Telerik team
     

    HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

     
  14. Kim Phuong
    Kim Phuong avatar
    3 posts
    Member since:
    Jun 2015

    Posted 11 Jun 2015 in reply to Stef Link to this post

    this is screenshot. please help me! thanks a lot.

  15. Kim Phuong
    Kim Phuong avatar
    3 posts
    Member since:
    Jun 2015

    Posted 11 Jun 2015 in reply to Stef Link to this post

    this is the screenshot. 
  16. Stef
    Admin
    Stef avatar
    3047 posts

    Posted 11 Jun 2015 Link to this post

    Hello,

    Based on the screenshot, it looks like a Medium Trust issue. Please apply the settings suggested in the Medium Trust Support help article. Verify you are using Telerik Reporting version greater than v.6.1.12.621 internal build (Q2 2012).

    Regards,
    Stef
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017