Serenity: Upgrade 3.4.4 -> 3.5.2

Created on 19 Feb 2018  Â·  19Comments  Â·  Source: serenity-is/Serenity

Hello everybody!
I have errors after the update. ((

in ImportsClientTypes..CodeGenerationHelpers.ttinclude missing FullName

foreach (var intf in type.Interfaces)
            externalType.Interfaces.Add(intf.FullName);

If I delete these lines, T4 has no errors, but the program does not work error:
An error occured while trying to load dynamic script: ""!. Please check the error message displayed in the dialog below for more info.
_Error HTTP 404.0 — A dynamic script with key is not found!
http://localhost:80/IUS/DynJS.axd/.js?undefined_

Help me please

Most helpful comment

Some change in Mono.Cecil, replace externalType.Interfaces.Add(intf.FullName) with externalType.Interfaces.Add(intf.InterfaceType.FullName)

All 19 comments

Some change in Mono.Cecil, replace externalType.Interfaces.Add(intf.FullName) with externalType.Interfaces.Add(intf.InterfaceType.FullName)

I get this error...
image

@volkanceylan T4 formed without errors! Thank you.
http://localhost:80/DynJS.axd/.js? still error

@xareas similar error

Don't know, you'll need to debug or revert back to prior version

Can help?
In this case, everything seems to work, but the message crashes when the page is updated. if the message is closed then it can be used.
image
image

"Rollback jQuery to 3.2.1 (along with it turned Serenity.Web to 3.4.4) the error was gone" fatal Error

in _Layout.cshtml comment _new IUS.Common.LanguageSelection($('#LanguageSelect'), '@(System.Globalization.CultureInfo.CurrentUICulture.Name)');_ the error was gone

Then you'll lose language selection dropdown, issue is possibly in Q.getLookupAsync

@volkanceylan Thank you! I understood this, but I turned it off and removed it from the template for a long time. I do not need this functionality!

Please just test with 3.5.3 when released, i can't reproduce this but found the possible location. Then you can remove again :)

 function loadScriptAsync(url) {
            return Promise.resolve().then(function () {
                Q.blockUI(null);
                return Promise.resolve($.ajax(loadOptions(name, false))
                    .always(function () {
                    Q.blockUndo();
                }));
            }, null);
        }

In CoreLib
Here comes the error

return Promise.resolve($.ajax(loadOptions(name, false))
.always(function () {
Q.blockUndo();
}));

I have 1 language only and that Russian

image

in 3.5.3 does not work at all
image

_The type "LocalText" is defined in the assembly, which is not referenced. You must add a link to the assembly "Serenity.Core, Version=3.5.3.0, Culture=neutral, PublicKeyToken=null"_

I think you need to reinstall packages

Also, the error you see is about your code, and /// references

This is my error in the code, 2 minutes and check the update

All works well! no mistakes! Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stixoffire picture stixoffire  Â·  3Comments

JohnRanger picture JohnRanger  Â·  3Comments

newyearsoft picture newyearsoft  Â·  3Comments

ga5tan picture ga5tan  Â·  3Comments

gfo2007 picture gfo2007  Â·  3Comments