eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. ๐—น๐—ถ๐—ป๐—ธ๐—ฒ๐—ฑ๐—ถ๐—ป.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ, ๐˜†๐—ผ๐˜‚๐˜๐˜‚๐—ฏ๐—ฒ.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ and ๐˜๐˜„๐—ถ๐˜๐˜๐—ฒ๐—ฟ @๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ and or simply ๐—ฆ๐˜๐—ฎ๐—ฟ/๐˜„๐—ฎ๐˜๐—ฐ๐—ต this repository and get notified from ๐—š๐—ถ๐˜๐—›๐˜‚๐—ฏ
http://expand.expandframework.com
Microsoft Public License
220 stars 114 forks source link

InvalidCastException in Xpand.Persistent.Base.dll #938

Closed GillesBrice closed 2 years ago

GillesBrice commented 2 years ago

Hello,

I install the 22.1.3 and when I run my application I got this exception :

Exception levรฉeย : 'System.InvalidCastException' dans Xpand.Persistent.Base.dll
Une exception non gรฉrรฉe du type 'System.InvalidCastException' s'est produite dans Xpand.Persistent.Base.dll
Impossible d'effectuer un cast d'un objet de type 'DevExpress.ExpressApp.DC.IEntityStore[]' en type 'System.Collections.Generic.List`1[DevExpress.ExpressApp.DC.IEntityStore]'.

Do you have a solution please ?

apobekiaris commented 2 years ago

from the info you posted impossible to even guess, provide a sample solution or repro details

GillesBrice commented 2 years ago

I create a sample from my solution, it's in attachment. When I run my application, I got the exception.

Test.zip .

apobekiaris commented 2 years ago

I can repro it will update this post once i know why

apobekiaris commented 2 years ago

i fixed the problem however your sample won't start cause the Security.RoleType is not assinged, I cannot spent time debugging your app. If you can modify your sample assinging a roletype which I guess you stript it out I can rerun it. Else wait for the build and test the fix

apobekiaris commented 2 years ago

eXpand.lab release 22.1.301.1 includes commit that relate to this task:

Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS.

To minimize version conflicts we recommend that you switch to PackageReference format and use only the eXpandAgnostic, eXpandWin, eXpandWeb packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all (see the Modules installation-registrations youtube video).

Thanks a lot for your contribution.

GillesBrice commented 2 years ago

I works great now. Thank you very much for your time and reactivy.

apobekiaris commented 2 years ago

eXpand.lab release 22.1.302.1 includes commit that relate to this task:

Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS.

To minimize version conflicts we recommend that you switch to PackageReference format and use only the eXpandAgnostic, eXpandWin, eXpandWeb packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all (see the Modules installation-registrations youtube video).

Thanks a lot for your contribution.

apobekiaris commented 1 year ago

eXpand.lab release 22.2.400.0 includes commit that relate to this task:

Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS.

To minimize version conflicts we recommend that you switch to PackageReference format and use only the eXpandAgnostic, eXpandWin, eXpandWeb packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all (see the Modules installation-registrations youtube video).

Thanks a lot for your contribution.