Crash during install of 2016.1 WPF Trial

Stimulsoft Reports.WPF discussion
PatrickV
Posts: 13
Joined: Wed Dec 30, 2015 12:59 am

Crash during install of 2016.1 WPF Trial

Post by PatrickV »

Hi There,

I just wanted to be sure that the issue that I just posted was nog fixed in the latest release and updated to the last Trial.
(BTW: we are very near the end of our evaluation and will order in the next few days. You've really created a super-product!!!)

On the first machine, the installation went flawless and everything works as expected.
On my main dev-machine I cannot start the Designer (neither the V1 or the V2).
If I start the Designer I get the error-info below:

I full uninstalled all previous versions, restarted, etc. All the obvious things are done as far as I can see...
I also did a binary compare between the Stimulsoft folders on my two machines and no differences found there either.

Do you have any advice to get this working again on my main Dev machine?

TIA & Kind Regards,

----------------------------
[Customer Explanation]

Designer crashes on startup in 2016.1 WPF Trial.

----------------------------
[General Info]

Application: Stimulsoft Reports
Framework: v4.0.30319
Version: Version: 2016.1.0 from 17 February 2016
MachineName: PVL-HEXAAN
OSVersion: Microsoft Windows NT 6.1.7601 Service Pack 1
UserName: User

----------------------------
[Exception Info]
Message: Cannot locate resource 'images/toolbox/catinfographics.png'.

Source: PresentationFramework

StackTrace:
at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
at System.IO.Packaging.PackWebResponse.get_ContentType()
at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
at System.Windows.Media.Imaging.BitmapImage..ctor(Uri uriSource)
at Stimulsoft.Report.WpfDesign.StiWpfToolboxToolbarService.BuildingComponentsToolbox()
at Stimulsoft.Report.WpfDesign.StiWpfToolboxToolbarService.BuildingToolbox()
at Stimulsoft.Report.WpfDesign.StiWpfToolboxToolbarService.Init(StiWpfDesignerControl designer)
at Stimulsoft.Report.WpfDesign.StiWpfDesignerControl.InitToolbars()
at Stimulsoft.Report.WpfDesign.StiWpfDesignerControl..ctor(StiReport report, Boolean isRibbonGuiMode)
at Stimulsoft.Report.WpfDesign.StiWpfDesigner..ctor(StiReport report)
at Designer.Wpf.App.OnStartup(StartupEventArgs e)

----------------------------
[Assemblies]
mscorlib, Version = 4.0.0.0
PresentationFramework, Version = 4.0.0.0
Stimulsoft.Report, Version = 2016.1.0.0
Stimulsoft.Report.Wpf, Version = 2016.1.0.0
Stimulsoft.Report.WpfDesign, Version = 2016.1.0.0
System, Version = 4.0.0.0
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Re: Crash during install of 2016.1 WPF Trial

Post by Jan »

Hello, Patrick!

This is knowing issue. Please get the patch here:

http://admin.stimulsoft.com/GetFile.asp ... _Trial.zip

Please download and unpack this file. After then run Installer.exe from standard delivery and press uninstall button.
After then copy updated files from patch to program files installation. After then run Installer.exe and press install button.

Let me know about results!

Thank you.
PatrickV
Posts: 13
Joined: Wed Dec 30, 2015 12:59 am

Re: Crash during install of 2016.1 WPF Trial

Post by PatrickV »

Hi Jan,

Thx for the swift response, but unfortunately the issue is not resolved...

I;ve done the following:
- Uninstalled and reinstalled the original install to make sure that I started correctly.
- Ran c:\Program Files (x86)\Stimulsoft Reports.Wpf 2016.1 Trial\Bin\Installer.EXE and pressed "Uninstall from GAC"
- Copied the contents of the ZIP you provided to c:\Program Files (x86)\Stimulsoft Reports.Wpf 2016.1 Trial\Bin\
- Ran the new c:\Program Files (x86)\Stimulsoft Reports.Wpf 2016.1 Trial\Bin\Installer.EXE and pressed "Install to GAC"

The dates of all the binaries are changed to the 25th of March, but the error persists...

Did I do something wrong?

Thx for your time once again!

Patrick
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Crash during install of 2016.1 WPF Trial

Post by HighAley »

Hello, Patrick.

The .Net Framework creates copy of used assemblies in different folders.
Please, try to uninstall our product, then search for any file or folder that contains 'Stimulsoft'. Remove all of them.
And only then install our product.

The Installer.EXE utility is for upgrading to next prerelease build. You should use it next way.
1. Uninstall Stimulsoft assemblies with Installer.exe from GAC.
2. Copy assemblies of the prerelease build.
3. Install the new assemblies with Installer.exe to GAC.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Crash during install of 2016.1 WPF Trial

Post by HighAley »

Hello, Patrick.

We have also found an issue with missed icon.
We have made an improvement and will upload a fixed build on our site soon.

Thank you.
PatrickV
Posts: 13
Joined: Wed Dec 30, 2015 12:59 am

Re: Crash during install of 2016.1 WPF Trial

Post by PatrickV »

Hi HighAley,

Thx for the quick response.
I will install the next build as soon as it is available and let you know if this works OK.

Regards,

Patrick
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Crash during install of 2016.1 WPF Trial

Post by HighAley »

Hello, Patrick.

Let us know if you need our help.

Thank you.
PatrickV
Posts: 13
Joined: Wed Dec 30, 2015 12:59 am

Re: Crash during install of 2016.1 WPF Trial

Post by PatrickV »

Hi There,

I'm not really sure in which thread I have to post this, but it is probably most related to this one...

In another thread Jan explained me how to bind CSV files to a report and that works like a charm on my laptop...
If I copy the EXACT sourcecode and DLL's to my dev-machine it does not work...
If I copy the binaries of this testprogram that where created on my laptop to my dev-machine (including the DLL's Stimulsoft.Base & Stimulssoft.Report) is does not work...
It does not matter if I have Stimulsoft installed or uninstalled on my dev-machine or not...
I'm 100% sure it has nothing to do with file-locations, etc.
Both machines have .NET 4.0 en 4.5 installed and other programs just run fine. So I do not expect a .NET DLL problem (but one can never be sure...).
I do not know where to look anymore...

Do you guys have any idea what might cause this problem?

TIA for your help!

Regard,

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

Re: Crash during install of 2016.1 WPF Trial

Post by Jan »

Hello, Patrick!

> If I copy the EXACT sourcecode and DLL's to my dev-machine it does not work...
Can you say which error message do you receive on your dev-machine? Error stack available?

> Both machines have .NET 4.0 en 4.5 installed and other programs just run fine. So I do not expect a .NET DLL problem (but one can never be sure...).
You can run Reports.Wpg without installation. All you need it's a Reports.Wpf assemblies.

> Do you guys have any idea what might cause this problem?
I need additional information. Any error message. Maybe not all assemblies copied. Minimal package is:

Stimulsoft.Base.dll
Stimulsoft.Report.dll
Stimulsoft.Report.Wpf.dll

this package for showing and rendering report in WPF.
Also, assembly versions can be a mismatch. In that case, you receive assemblies crash.

Thank you.
PatrickV
Posts: 13
Joined: Wed Dec 30, 2015 12:59 am

Re: Crash during install of 2016.1 WPF Trial

Post by PatrickV »

Hi Jan,

Sorry, I should have explained myself better...

I'm running this code:

Code: Select all

        static void Main(string[] args)
        {
            // This is the folder where the CSV's reside.
            string folder = @"c:\AxyCodeGen\ASR\Export\";
            using (StiReport report = new StiReport())
            {
                // This is the report template that was created using the Designer. Data in there was bases on NotaData160101000005.csv and from within the Designer I can create a 
                // beautifull report...
                report.Load(Path.Combine(folder, "NotaTemplate.mrt"));
                report.Render();
                report.ExportDocument(StiExportFormat.Pdf, Path.Combine(folder, "OK.Pdf"));
            }
            using (StiReport report = new StiReport())
            {
                // load the report again...
                report.Load(Path.Combine(folder, "NotaTemplate.mrt"));

                // How do I bind My NotaDataNew.CSV file (of course the same structure as the one that the report was created with)?

                StiCsvDatabase dataBase = report.Dictionary.Databases["Nota"] as StiCsvDatabase;
                //dataBase.PathData = "D:\\Stimulsoft\\Stimulsoft.Reports\\Reports";
                dataBase.PathData = folder;

                //var dataTable = report.Dictionary.DataSources["Sample"] as StiDataStoreSource;
                StiDataStoreSource dataTable = report.Dictionary.DataSources["NotaData160101000005"] as StiDataStoreSource;
                //Change name of the csv file
                dataTable.NameInSource = "Nota.NotaDataNew";//CSV1 - its a name of the CSV Connection in the report dictionary, Sample - its a name of the CSV file in the folder
                //dataTable.NameInSource = "CSV1.Sample";//CSV1 - its a name of the CSV Connection in the report dictionary, Sample - its a name of the CSV file in the folder

                report.Render();
                report.ExportDocument(StiExportFormat.Pdf, Path.Combine(folder, "NewData2.Pdf"));
            }
        }
The only two DLL's that I've referenced are Stimulsoft.Base and Stimulsoft.Report.

On both my laptop and my dev-machine OK.PDF and NewData2.PDF are created.
BUT:
= On my Laptop both have DIFFERENT data in them...
= On my Dev-Machine both have NO data in them...

And I just cannot explain why it works on one machine and not on the other...

Thx again for your time!

Patrick
Post Reply