Get Columns from Assembly error

Stimulsoft Reports.WEB discussion
ecpmiranda
Posts: 52
Joined: Sun Jun 05, 2016 9:35 pm

Get Columns from Assembly error

Post by ecpmiranda »

Since I have updated to release 2016.18.0, I am receiving an error when I am trying to get columns from assembly.
If I downgrade back to release 2016.0.0 the problems is not occurring.
Look at the image attached please.
Attachments
WintechNetEscola.zip
Assembly DLL
(558.67 KiB) Downloaded 157 times
GetColumnsFromAssembly.jpg
GetColumnsFromAssembly.jpg (182.74 KiB) Viewed 3563 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Get Columns from Assembly error

Post by HighAley »

Hello.

We get next error:
Could not load file or assembly 'file:///F:\Downloads\WintechNetEscola\WintechNetEscola.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
Could you specify what error do you get?
We need also to know the version of .Net Framework and to see the Full error stack.

Thank you.
ecpmiranda
Posts: 52
Joined: Sun Jun 05, 2016 9:35 pm

Re: Get Columns from Assembly error

Post by ecpmiranda »

The error is NOT occurring when I add a new DataSource and choose Data from Business Objects.
The error occurs when I try to add a new Business Object.
Remember that the error is NOT occurring when I use the older version 2016.0.0.

Detailed error. (sorry but it´s in Portuguese).
if you look at the detailed error, you will find an explicit path D:\Stimulsoft\Stimulsoft.Reports......
I don´t have this path in my machine.
************** Texto de Exceção **************
System.Reflection.ReflectionTypeLoadException: Não é possível carregar um ou mais dos tipos solicitados. Recupere a propriedade LoaderExceptions para obter mais informações.
em System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
em System.Reflection.Assembly.GetTypes()
em Stimulsoft.Report.Dictionary.Design.StiSelectPropertiesInAssemblyForm.Build() na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report.Design\Dictionary\StiSelectPropertiesInAssemblyForm.cs:linha 217
em Stimulsoft.Report.Dictionary.Design.StiSelectPropertiesInAssemblyForm..ctor(Assembly assembly) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report.Design\Dictionary\StiSelectPropertiesInAssemblyForm.cs:linha 60
em Stimulsoft.Report.Dictionary.Design.StiBusinessObjectEditForm.tbGetColumnsFromAssembly_Click(Object sender, EventArgs e) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report.Design\Dictionary\StiBusinessObjectEditForm.cs:linha 296
em System.Windows.Forms.Control.OnClick(EventArgs e)
em System.Windows.Forms.Button.OnClick(EventArgs e)
em Stimulsoft.Controls.StiToolButton.OnClick(EventArgs e) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Controls\Toolbar\StiToolButton.cs:linha 942
em System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
em Stimulsoft.Controls.StiToolButton.OnMouseUp(MouseEventArgs e) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Controls\Toolbar\StiToolButton.cs:linha 925
em System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
em System.Windows.Forms.Control.WndProc(Message& m)
em System.Windows.Forms.ButtonBase.WndProc(Message& m)
em System.Windows.Forms.Button.WndProc(Message& m)
em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Assemblies Carregados **************
mscorlib
Versão do Assembly: 4.0.0.0
Versão do Win32: 4.6.1080.0 built by: NETFXREL3STAGE
Base de Código: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Designer
Versão do Assembly: 2016.1.18.0
Versão do Win32: 2016.1.18.0
Base de Código: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Web%202016.1%20Trial/Bin/Designer.exe
----------------------------------------
System.Windows.Forms
Versão do Assembly: 4.0.0.0
Versão do Win32: 4.6.1038.0 built by: NETFXREL2
Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Versão do Assembly: 4.0.0.0
Versão do Win32: 4.6.1081.0 built by: NETFXREL3STAGE
Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Versão do Assembly: 4.0.0.0
Versão do Win32: 4.6.1078.0 built by: NETFXREL3STAGE
Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Stimulsoft.Report
Versão do Assembly: 2016.1.18.0
Versão do Win32: 2016.1.18.0
Base de Código: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Web%202016.1%20Trial/Bin/Stimulsoft.Report.DLL
----------------------------------------
Stimulsoft.Base
Versão do Assembly: 2016.1.18.0
Versão do Win32: 2016.1.18.0
Base de Código: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Web%202016.1%20Trial/Bin/Stimulsoft.Base.DLL
----------------------------------------
Stimulsoft.Report.Design
Versão do Assembly: 2016.1.18.0
Versão do Win32: 2016.1.18.0
Base de Código: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Web%202016.1%20Trial/Bin/Stimulsoft.Report.Design.DLL
----------------------------------------
Stimulsoft.Controls.Win
Versão do Assembly: 2016.1.18.0
Versão do Win32: 2016.1.18.0
Base de Código: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Web%202016.1%20Trial/Bin/Stimulsoft.Controls.Win.DLL
----------------------------------------
System.Xml
Versão do Assembly: 4.0.0.0
Versão do Win32: 4.6.1064.2 built by: NETFXREL3STAGE
Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Core
Versão do Assembly: 4.0.0.0
Versão do Win32: 4.6.1038.0 built by: NETFXREL2
Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Accessibility
Versão do Assembly: 4.0.0.0
Versão do Win32: 4.6.1038.0 built by: NETFXREL2
Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Stimulsoft.Report.Check
Versão do Assembly: 2016.1.18.0
Versão do Win32: 2016.1.18.0
Base de Código: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Web%202016.1%20Trial/Bin/Stimulsoft.Report.Check.DLL
----------------------------------------
Stimulsoft.Report.Helper
Versão do Assembly: 2016.1.18.0
Versão do Win32: 2016.1.18.0
Base de Código: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Web%202016.1%20Trial/Bin/Stimulsoft.Report.Helper.DLL
----------------------------------------
Stimulsoft.Report.Design.WebViewer
Versão do Assembly: 2016.1.18.0
Versão do Win32: 2016.1.18.0
Base de Código: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Web%202016.1%20Trial/Bin/Stimulsoft.Report.Design.WebViewer.DLL
----------------------------------------
System.Windows.Forms.resources
Versão do Assembly: 4.0.0.0
Versão do Win32: 4.6.1038.0 built by: NETFXREL2
Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_pt-BR_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Stimulsoft.Controls
Versão do Assembly: 2016.1.18.0
Versão do Win32: 2016.1.18.0
Base de Código: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Web%202016.1%20Trial/Bin/Stimulsoft.Controls.DLL
----------------------------------------
System.Configuration
Versão do Assembly: 4.0.0.0
Versão do Win32: 4.6.1038.0 built by: NETFXREL2
Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Data
Versão do Assembly: 4.0.0.0
Versão do Win32: 4.6.1038.0 built by: NETFXREL2
Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
mscorlib.resources
Versão do Assembly: 4.0.0.0
Versão do Win32: 4.6.1038.0 built by: NETFXREL2
Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_pt-BR_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
WintechNetEscola
Versão do Assembly: 1.0.0.0
Versão do Win32: 2016.1.18.0
Base de Código: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Web%202016.1%20Trial/Bin/Stimulsoft.Report.Design.dll
----------------------------------------
System.Web
Versão do Assembly: 4.0.0.0
Versão do Win32: 4.6.1073.0 built by: NETFXREL3STAGE
Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.Web.DynamicData
Versão do Assembly: 4.0.0.0
Versão do Win32: 4.6.1038.0
Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Web.DynamicData/v4.0_4.0.0.0__31bf3856ad364e35/System.Web.DynamicData.dll
----------------------------------------
WintechNetEscola
Versão do Assembly: 1.0.0.0
Versão do Win32: 2016.1.18.0
Base de Código: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Web%202016.1%20Trial/Bin/Stimulsoft.Report.Design.dll
----------------------------------------
WintechNetEscola
Versão do Assembly: 1.0.0.0
Versão do Win32: 2016.1.18.0
Base de Código: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Web%202016.1%20Trial/Bin/Stimulsoft.Report.Design.dll
----------------------------------------
WintechNetEscola
Versão do Assembly: 1.0.0.0
Versão do Win32: 2016.1.18.0
Base de Código: file:///C:/Program%20Files%20(x86)/Stimulsoft%20Reports.Web%202016.1%20Trial/Bin/Stimulsoft.Report.Design.dll
----------------------------------------
ecpmiranda
Posts: 52
Joined: Sun Jun 05, 2016 9:35 pm

Re: Get Columns from Assembly error

Post by ecpmiranda »

I had to downgrade version because of this issue. Did you find something about this?
Next week we will buy team license and I am worried about this because we use business objects all the time during development!
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Get Columns from Assembly error

Post by HighAley »

Hello.

We have checked your assembly of different versions of our product.
We get the same result every time.

When your assembly is loading the system looks for next assemblies:
EntityFramework.dll 6.0.0
EntityFramework.SqlServer.dll 6.0.0
Microsoft.AspNet.Identity.Core.dll 2.0.0
Microsoft.AspNet.Identity.EntityFramework.dll 2.0.0
Microsoft.AspNet.Identity.Owin.dll 2.0.0
Microsoft.Owin.dll 2.1.0
Microsoft.Owin.Security.dll
Microsoft.Owin.Security.Cookies.dll
Microsoft.Owin.Security.OAuth.dll
System.Web.Mvc.dll 5.2.2
If the system could not find any assembly from this list we get the same error as you.

Please, check if you have necessary assemblies and they are available.

Thank you.
ecpmiranda
Posts: 52
Joined: Sun Jun 05, 2016 9:35 pm

Re: Get Columns from Assembly error

Post by ecpmiranda »

All of them are at the same folder (bin folder). I did not send to you because of size of the zip file.
At the present moment I am using the older version of designer, but if I upgrade to newer release, the problem occurs.
I think there is a problem with the newer version.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Get Columns from Assembly error

Post by HighAley »

Hello.

Please, send us a VS project with all assemblies that reproduces the issue to support@stimulsoft.com.
Use any file sharing service if the file is too large.
Could you specify the version of our product, because there is no 2016.0.0 build?

Thank you.
ecpmiranda
Posts: 52
Joined: Sun Jun 05, 2016 9:35 pm

Re: Get Columns from Assembly error

Post by ecpmiranda »

Build 2016.1.0.0 works fine.
Build 2016.1.18.0 I got the problem.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Get Columns from Assembly error

Post by Alex K. »

Hello,

Please send us a VS project with all assemblies that reproduces the issue to support@stimulsoft.com.

Thank you.
ecpmiranda
Posts: 52
Joined: Sun Jun 05, 2016 9:35 pm

Re: Get Columns from Assembly error

Post by ecpmiranda »

Follow attached sample solution.
It uses Northwind database at SqlServer, I did not sent this database.

Run solution and click run button. Wait for report opening at designer, then try to add a new business object and get columns from assembly.
Probably it will work without problem.

Now close solution and just open report directly from designer and then try to add a new BO again, you will reproduce the problem.
Attachments
MdBoSs.zip
(130.42 KiB) Downloaded 176 times
Post Reply