Hosting on godaddy.com

Stimulsoft Reports.WEB discussion
kulwinder
Posts: 8
Joined: Mon May 31, 2010 6:24 am
Location: India

Hosting on godaddy.com

Post by kulwinder »

Hi,
Iam facing following error while try to host on godaddy.com host machine.

It is working fine on my local machine.


Server Error in '/tourtrax' Application.
--------------------------------------------------------------------------------

Required permissions cannot be acquired.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +7604211
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57

[FileLoadException: Could not load file or assembly 'Stimulsoft.Base, Version=2010.1.700.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Could not load file or assembly 'Stimulsoft.Base, Version=2010.1.700.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54
System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +8809426
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +128
System.Web.Compilation.BuildManager.CompileCodeDirectories() +265
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +320

[HttpException (0x80004005): Could not load file or assembly 'Stimulsoft.Base, Version=2010.1.700.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729

[HttpException (0x80004005): Could not load file or assembly 'Stimulsoft.Base, Version=2010.1.700.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890735
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3601
:cry:
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Hosting on godaddy.com

Post by Jan »

Hello,

Unfortunately your webserver does not allow use compilation of reports. So following code can't be used on your server:

Code: Select all

StiReport report = new StiReport();
report.Load("report.mrt");
report.RegData(dataSet);
StiWebViewer.Report = report;
In you case you need save report as source code class. You can do this from report designer, at Save As menu item. After then you can use following code:

Code: Select all

MyReports.MyReport report = new MyReports.MyReport();
report.RegData(dataSet);
StiWebViewer.Report = report;
Also you can save report as assembly from report designer. In this case you can use following code:

Code: Select all

StiReport report = StiReport.GetReportFromAssembly("MyReport.dll");
report.RegData(dataSet);
StiWebViewer.Report = report;
Thank you.
kulwinder
Posts: 8
Joined: Mon May 31, 2010 6:24 am
Location: India

Hosting on godaddy.com

Post by kulwinder »


Thank you very much for your response.

I am getting this error when I try to access my website first time. I mean login page on only.

I tried "save report as source code class" but this also did not work.

I am using trial verion.

Thanks,
Kulwinder:cry:
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Hosting on godaddy.com

Post by Andrew »

Hello,

Please us a code you used when trying to access my website first time.
Please send us a full error stack for this issue.

Thank you.
kulwinder
Posts: 8
Joined: Mon May 31, 2010 6:24 am
Location: India

Hosting on godaddy.com

Post by kulwinder »

Thanks Andrew,

I am attaching my test project to find the problem. It is woking fine on my local machine. I am using Stimulsoft Reports Designer.Web 2010.1 Trial version.

I have hosted this same example on below link.

http://keyideas.info/tourtrax/TestReport2.aspx



Thanks,
Kulwinder
Attachments
438.TestStimulSoftReport.zip
(2.36 MiB) Downloaded 348 times
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Hosting on godaddy.com

Post by Vladimir »

Hello,

In the example you sent, everything works correctly. Please recheck whether this example is on the server? If so, please contact your hosting provider to expand assembly permissions.

Thank you.
kulwinder
Posts: 8
Joined: Mon May 31, 2010 6:24 am
Location: India

Hosting on godaddy.com

Post by kulwinder »

Thank you.

Yes this code on the server.

What is mean by expand assemply permission. I am deploying on the shared server so they doesn't not allow me do any thing with particular assemply.

Is Stimulsoft assemby need full trust to run?



Thanks,
Kulwinder
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Hosting on godaddy.com

Post by Vladimir »

Is Stimulsoft assemby need full trust to run?
Yes, otherwise some parts of the report engine can not work.

Thank you.
kulwinder
Posts: 8
Joined: Mon May 31, 2010 6:24 am
Location: India

Hosting on godaddy.com

Post by kulwinder »

How can I host Stimulrwports on sared server with few parts only?

If some functionality is not working that is not a problem for me. I only want to show my clients after I will host on client's dedicate server.


Thanks,
Kulwinder
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Hosting on godaddy.com

Post by Vladimir »

Sorry, this is not possible. Unfortunately, we can not support limited asp.net hosting.

Thank you.
Post Reply