Stimulsoft.Report.Win Not Found

Stimulsoft Reports.NET discussion
Post Reply
EMA
Posts: 9
Joined: Wed Feb 24, 2010 1:32 pm
Location: Dallas, Texas

Stimulsoft.Report.Win Not Found

Post by EMA »

After publishing a website to a 64-bit server that is IIS in 32-bit mode, we get the following error at the step report.render(false): "Stimulsoft.Report.Win Not Found". The only other unique thing about our setup is that our application is on D:\inetpub instead of C:\inetpub. We are using the latest release Stimulsoft Reports.Net 2010.1. Why is it referencing this DLL if this is a web report? We have tried adding the reference into the project, but it does not seem to help. Any ideas?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Stimulsoft.Report.Win Not Found

Post by Jan »

Hello,

Can you provide full error stack? Also show code which you use.

Thank you.
EMA
Posts: 9
Joined: Wed Feb 24, 2010 1:32 pm
Location: Dallas, Texas

Stimulsoft.Report.Win Not Found

Post by EMA »

After trying to add the Reports.Win dll (which we later removed), these are the error we are now getting in the event long:

In the Application Log:

Faulting application w3wp.exe, version 6.0.3790.3959, stamp 45d6968e, faulting module kernel32.dll, version 5.2.3790.4062, stamp 4626467c, debug? 0, fault address 0x00022366.

In the System Log:

A process serving application pool 'ASP3_5Pool' suffered a fatal communication error with the World Wide Web Publishing Service. The process id was '3244'. The data field contains the error number.

I should also note that one report is working fine on this server however two other reports are both getting this error at the rendor step.

Here is the code we use at the render step:

Dim Report As StiReport = New StiReport()
Stimulsoft.Report.StiOptions.Export.Excel.ShowGridLines = False
Report = StiWebReport3.GetReport

Dim strConnection As String = System.Configuration.ConfigurationManager.ConnectionStrings("SQLServerEMAConnectionString").ConnectionString
TryCast(Report.Dictionary.Databases.Item("EMA"), Dictionary.StiSqlDatabase).ConnectionString = strConnection

Report.Dictionary.Variables("UserInfo").Value = "'" & Session("UserID") & "'"
Report.RegData("dtExcessReturnAnnual", dtExcessReturnAnnual)
Report.RegData("dtJensensAlphaAnnual", dtJensensAlphaAnnual)
Report.Dictionary.Synchronize()
Report.CacheAllData = True

Report.Dictionary.Variables("assetClass").Value = assetClass
Report.Dictionary.Variables("timePeriod").Value = timePeriod
Report.Dictionary.Variables("endQtr").Value = endQtr
Report.Dictionary.Variables("endQtrHeading").Value = endQtrHeading

Dim userID As String
userID = "'" & Session("UserID") & "'"
Report.Dictionary.Variables("UserInfo").Value = userID

Report.Render(False)
EMA
Posts: 9
Joined: Wed Feb 24, 2010 1:32 pm
Location: Dallas, Texas

Stimulsoft.Report.Win Not Found

Post by EMA »

I am also getting this error message in the event log sometimes.....it looks like something may be hard coded for the "c" drive however it is no where in my code. Could something with the report writer be hard coded to the C drive?

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/1/ROOT

Process ID: 4168

Exception: System.IO.FileNotFoundException

Message: Could not load file or assembly 'Stimulsoft.Controls, Version=2010.1.700.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' or one of its dependencies. The system cannot find the file specified.

StackTrace: at Stimulsoft.Report.Win.StiProgressForm.InitializeComponent()
at Stimulsoft.Report.Win.StiProgressForm..ctor()
at Stimulsoft.Report.Win.StiProgressInformation.Start(String title, Int32 progressMaximum)
at Stimulsoft.Report.Win.StiProgressInformation.Start(String title)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
at Stimulsoft.Report.StiReport.Render()
at WebApplication1.AssetClass.RunReportWriter(String strReportName) in C:\Inetpub\wwwroot\mgr-recon_main\JPM-OPAL\WebApplication1\FactorAttribution\AssetClass.aspx.vb:line 2064
at WebApplication1.AssetClass.doProcessMUOL() in C:\Inetpub\wwwroot\mgr-recon_main\JPM-OPAL\WebApplication1\FactorAttribution\AssetClass.aspx.vb:line 1972
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Stimulsoft.Report.Win Not Found

Post by Jan »

Hello,

I need clarify one moment. In code you show following code:

Code: Select all

Report.Render(False)
but in error stack i see other amount of argument:

Code: Select all

at Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
at Stimulsoft.Report.StiReport.Render()
as you see Render method called without arguments. Boolean argument switch progress window during report rendering. If you provide true value for this argument then progress window will be displayed. Report progress window placed in Stimulsoft.Report.Win.dll. This is why this dll is required. Also report engine switch off progress window if it detect that report rendering in asp.net, but in some cases this detection is not work fine.

p.s. Stimulsoft.Report.Win.dll also required Stimulsoft.Controls.dll and Stimulsoft.Controls.Win.dll.

Thank you.
EMA
Posts: 9
Joined: Wed Feb 24, 2010 1:32 pm
Location: Dallas, Texas

Stimulsoft.Report.Win Not Found

Post by EMA »

Hello,

I made sure that Report.Render(False) was set in every place in the code and found one report that it was not set. This fixed the problem for that report. However, we have a third report where we already had Report.Render(false) and we now get the following error:

In the Application Event Log:

Code: Select all

Faulting application w3wp.exe, version 6.0.3790.3959, stamp 45d6968e, faulting module kernel32.dll, version 5.2.3790.4062, stamp 4626467c, debug? 0, fault address 0x00022366.
In the System Event Log:

Code: Select all

A process serving application pool 'ASP3_5Pool' suffered a fatal communication error with the World Wide Web Publishing Service. The process id was '4400'. The data field contains the error number.
Do you have any ideas? Could this error be caused by something specific in the report?

Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Stimulsoft.Report.Win Not Found

Post by Jan »

Hello,

It is very hard to say why this error occurs. According to log the error occured in the system kernel. I think that something wrong with running APS.NET process or its configuration data.

Thank you.
Post Reply