Serenity.Web.CommonInitialization giving error at startup

Created on 4 Apr 2018  路  20Comments  路  Source: serenity-is/Serenity

hi, i got this error, the project is new, i have installed the update 3.6.0
captura

System.Reflection.ReflectionTypeLoadException
HResult=0x80131602
Mensaje = Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Origen = mscorlib
Seguimiento de la pila:
en System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
en System.Reflection.RuntimeModule.GetTypes()
en System.Reflection.Assembly.GetTypes()
en Serenity.Localization.NestedLocalTextRegistration.Initialize(IEnumerable`1 assemblies, ILocalTextRegistry registry)
en Serenity.Web.CommonInitialization.InitializeLocalTexts()
en Serenity.Web.CommonInitialization.Run()
en Serene1.SiteInitialization.ApplicationStart() en C:\Proyects\SSA\Serene1\Serene1\Serene1.Web\App_Start\SiteInitialization.cs: l铆nea 37
en Serene1.Global.Application_Start(Object sender, EventArgs e) en C:\Proyects\SSA\Serene1\Serene1\Serene1.Web\Global.asax.cs: l铆nea 26

All 20 comments

yes, thx
it is not related

it is after executing this command that the problem passes.

Update-Package Serenity.Web

did you tried do do a reinstall with nuget command to force it to update any missed dependency ?

I used this and nothing
Update-Package -reinstall

without sense

captura

Typically a T4 transform and rebuild problem... Also check tooling version.

captura

captura

From the exception image seems that it search for startsharp dependencies. This is an extra module... do you have added somethings of it?

Try clearing your bin folder, remove any extra dependencies you might have

@Estrusco I noticed that, but do not add anything

@kiwixe if nothing works, try a blank project that copy the added fies and rebuild to see if it solves your problems.

this Project is blank is new completely
captura

captura1

captura2

all right, I just do this command
Update-Package Serenity.Web
and I get this
captura

then update all the other stuff too. update requires officialy to update 2 things
plus there was problem and u needed to update tooling as well.
in 3.6 there is need to fix up some json file too.
best go into exception, look loadingexception and it will tell u which DLL u missing.
that I fixed out tooling (Cecil)

@ga5tan I said this earlier: "Typically a T4 transform and rebuild problem... Also check tooling version."

You have to have more attention to comments.

3323 Im new/noob, sorry

@brunobola yeah u did, sorry about that. I was trying to explain to kiwixe in more depth...

Was this page helpful?
0 / 5 - 0 ratings