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

Report works locally but not on hosting server

2 Answers 230 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Felice
Top achievements
Rank 1
Felice asked on 21 Oct 2013, 03:55 PM
I am going mad with this:
I have made a report in a class library and then referenced the DLL in my website project.
Added the viewer and the code in the page behind:
protected void Page_Load(object sender, EventArgs e)
   {
       ReportViewer1.Report = new MyClassRep1.IndustryRep();
   }
Locally on my machine is working fine. No problems of any type. Beautiful.
Then I change the string in the web.config from the local database :

<add name="stad_conn" connectionString="Data Source=WIN-72PL3253COR\SQLEXPRESS;Initial Catalog=DataIntelli1;Integrated Security=True;"/>
to the production database:
<add name="stad_conn" connectionString="Data Source=foooo.db.1and1.com;
Initial Catalog=fooo;
uid=fooo;
pwd=myPassword" providerName="System.Data.SqlClient"  />

And when I finally try to run the report on the production server I get the following message (also in the attached pic):

"""An error has occurred while processing Report 'IndustryRep': Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."""

What is very strange is that I have other additional 4 reports on the same website out of the same class library that works without problems.
What could be wrong on this particular report?
Some help will be appreciated.
Thanks,
Felice

2 Answers, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 24 Oct 2013, 06:28 PM
Hello Felice,

Without the stack trace and the web site config file it is hard to determine the cause of the issue. If you are using an older Telerik Reporting version, check the application's trust level.

In order to provide you more accurate suggestions, please open a support ticket and send us details about the full stack trace of the exception, the used in the application Telerik Reporting version, the configuration file of the web site and the report definition in question.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Felice
Top achievements
Rank 1
answered on 07 Nov 2013, 08:33 AM
Problem solved. Actually the problem has something to do with the server settings of the hosting provider!
I am marking your reply as answer  to close the question.
Thanks for supporting,
Felice
Tags
General Discussions
Asked by
Felice
Top achievements
Rank 1
Answers by
Stef
Telerik team
Felice
Top achievements
Rank 1
Share this question
or