This is a migrated thread and some comments may be shown as answers.

Report Error

14 Answers 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 26 Sep 2012, 08:28 AM
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

14 Answers, 1 is accepted

Sort by
0
Mergen
Top achievements
Rank 1
answered on 26 Sep 2012, 11:57 AM
My web application has the same error. Does anyone know why?
0
Steve
Telerik team
answered on 26 Sep 2012, 01:21 PM
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 >

0
Daniel
Top achievements
Rank 1
answered on 26 Sep 2012, 03:55 PM
Cool - many thanks for the quick response :)
0
Mergen
Top achievements
Rank 1
answered on 10 Oct 2012, 10:49 AM
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.


0
Daniel
Top achievements
Rank 1
answered on 10 Oct 2012, 10:56 AM
yep :) - all sorted - what problems are you having - please elaborate and I will try to help.
0
Mergen
Top achievements
Rank 1
answered on 11 Oct 2012, 12:18 AM
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.
0
Mergen
Top achievements
Rank 1
answered on 11 Oct 2012, 01:08 AM
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()
0
Daniel
Top achievements
Rank 1
answered on 11 Oct 2012, 08:55 AM
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 :)
0
Mergen
Top achievements
Rank 1
answered on 11 Oct 2012, 09:40 AM
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.

0
Kim Phuong
Top achievements
Rank 1
answered on 09 Jun 2015, 11:30 PM
the report didn't work for a week ago. please help me! thanks a lot. ^-^
0
Stef
Telerik team
answered on 10 Jun 2015, 08:41 AM
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!

 
0
Kim Phuong
Top achievements
Rank 1
answered on 11 Jun 2015, 06:48 AM

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

0
Kim Phuong
Top achievements
Rank 1
answered on 11 Jun 2015, 06:49 AM
this is the screenshot. 
0
Stef
Telerik team
answered on 11 Jun 2015, 01:56 PM
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
Tags
General Discussions
Asked by
Daniel
Top achievements
Rank 1
Answers by
Mergen
Top achievements
Rank 1
Steve
Telerik team
Daniel
Top achievements
Rank 1
Kim Phuong
Top achievements
Rank 1
Stef
Telerik team
Share this question
or