Error in StiWebViewer and dll's

Stimulsoft Reports.NET discussion
Post Reply
atryass
Posts: 33
Joined: Mon Sep 15, 2008 7:42 am
Location: Iran

Error in StiWebViewer and dll's

Post by atryass »

hi i use 2008.1.129.0 version from stimul.
i want to see a report in web and my code is:

Code: Select all

StiReport Report = new StiReport();
Report.RegData(mydataset);
Report.Dictionary.Synchronize();
Report.Compile();
Report.Render();
StiWebViewer StiWebViewer1 = new StiWebViewer();
StiWebViewer1.Report = Report;
that mydataset is fill!
but follow error has appear in my browser after run.

Code: Select all

Could not load file or assembly 'Stimulsoft.Report, Version=2007.3.100.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' or one of its dependencies. The system cannot find the file specified. 
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.IO.FileNotFoundException: Could not load file or assembly 'Stimulsoft.Report, Version=2007.3.100.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' or one of its dependencies. The system cannot find the file specified.

Source Error: 


Line 30:             StiWebViewer StiWebViewer1 = new StiWebViewer();
Line 31:             StiWebViewer1.Report = Report;
Line 32:         }
Line 33:     }
Line 34: }
 

Source File: C:\Documents and Settings\afatehi\My Documents\Visual Studio 2005\Projects\WebApplication1\WebApplication1\Default.aspx.cs    Line: 32 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Stimulsoft.Report, Version=2007.3.100.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' could not be loaded.


=== Pre-bind state information ===
LOG: User = RPK\aFatehi
LOG: DisplayName = Stimulsoft.Report, Version=2007.3.100.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a
 (Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/afatehi/My Documents/Visual Studio 2005/Projects/WebApplication1/WebApplication1/
LOG: Initial PrivatePath = C:\Documents and Settings\afatehi\My Documents\Visual Studio 2005\Projects\WebApplication1\WebApplication1\bin
Calling assembly : Stimulsoft.Report.Web, Version=2007.3.100.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Documents and Settings\afatehi\My Documents\Visual Studio 2005\Projects\WebApplication1\WebApplication1\web.config
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Stimulsoft.Report, Version=2007.3.100.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/6cae6bbb/71f910cd/Stimulsoft.Report.DLL.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/6cae6bbb/71f910cd/Stimulsoft.Report/Stimulsoft.Report.DLL.
LOG: Attempting download of new URL file:///C:/Documents and Settings/afatehi/My Documents/Visual Studio 2005/Projects/WebApplication1/WebApplication1/bin/Stimulsoft.Report.DLL.
LOG: Attempting download of new URL file:///C:/Documents and Settings/afatehi/My Documents/Visual Studio 2005/Projects/WebApplication1/WebApplication1/bin/Stimulsoft.Report/Stimulsoft.Report.DLL.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/6cae6bbb/71f910cd/Stimulsoft.Report.EXE.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/6cae6bbb/71f910cd/Stimulsoft.Report/Stimulsoft.Report.EXE.
LOG: Attempting download of new URL file:///C:/Documents and Settings/afatehi/My Documents/Visual Studio 2005/Projects/WebApplication1/WebApplication1/bin/Stimulsoft.Report.EXE.
LOG: Attempting download of new URL file:///C:/Documents and Settings/afatehi/My Documents/Visual Studio 2005/Projects/WebApplication1/WebApplication1/bin/Stimulsoft.Report/Stimulsoft.Report.EXE.

 

Stack Trace: 


[FileNotFoundException: Could not load file or assembly 'Stimulsoft.Report, Version=2007.3.100.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' or one of its dependencies. The system cannot find the file specified.]
   WebApplication1._Default.Page_Load(Object sender, EventArgs e) in C:\Documents and Settings\afatehi\My Documents\Visual Studio 2005\Projects\WebApplication1\WebApplication1\Default.aspx.cs:32
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 
i added Stimulsoft.Report dll ersion 2008.1.129.0 to my references.
plz help me to correct this.
so tanx
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Error in StiWebViewer and dll's

Post by Vital »

Hello,

You should change report viewer version in aspx page. For also you need change version of SR in web.config file. As i can see from error some of old reference still exist:

Code: Select all

'Stimulsoft.Report, Version=2007.3.100.0'
Thank you.
Post Reply