Base solution for your next web application
Open Closed

Update / deploy - login page missing elements #11487


User avatar
1
deltavision created

Version: 11.2.1 Producttype: MVC Framework: .NET Core

Hi,

updated our review system - but on login elements are missing. What could be the issue?

Tried to remove all files from IIS folder, and deployed again - same issue.


14 Answer(s)
  • User Avatar
    0
    deltavision created

    Hi,

    looks like the "vc:" is not "rendering" - why?

    <vc:account-logo logo-height="100" skin="dark" add-on="text"></vc:account-logo> <vc:tenant-change></vc:tenant-change> <vc:account-languages></vc:account-languages>

    it is OK in our development environment

  • User Avatar
    0
    deltavision created

    Hi,

    found this - could it help:

    https://github.com/dotnet/aspnetcore/issues/38541

  • User Avatar
    0
    deltavision created

    Hi,

    seems to be an issue related to VS2022 17.5 update :-(

    https://github.com/dotnet/aspnetcore/issues/46740

    https://github.com/dotnet/razor/issues/8281#issuecomment-1446996618

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @deltavision

    I'm not sure if this is related to VS2022. Could you share the steps you followed to deploy your app ?

  • User Avatar
    0
    deltavision created

    Hi @ismcagdas

    I think it is related to v17.5.1 - MS is working on a patch. new comments on:

    https://github.com/dotnet/razor/issues/8281

    We can solve it by using Component.InvokeAsync() instead of vc: tags

    We deploy (publish) via VS2002 to our production and review servers

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @deltavision for sharing the workaround and the issue link.

  • User Avatar
    0
    ashgadala created

    Same here Just updated VS and seeing this bug

  • User Avatar
    0
    ashgadala created

    Hi,

    found this - could it help:

    https://github.com/dotnet/aspnetcore/issues/38541

    This did not help.

  • User Avatar
    0
    ashgadala created

    After spending few hours or research here is my work around until Microsoft stops experimenting with us.

    Rolling back the sdk or VS did not help at all.

    --

    We Fixed this by adding global.json to force the application to use last working SDK.

    1. open solution\src\xxx.xxx.web.mvc in CLI
    2. Find latest working SDK other than 7.0.200 ( you can find using CMD - dotnet --list-sdks)
    3. run dotnet new global.json --sdk-version 2.1.402

    See this link. https://www.learnrazorpages.com/publishing/publish-to-iis#fixing-the-sdk-version-used-for-publishing

    also, for SDK impacted/working https://github.com/dotnet/razor/issues/8281#issuecomment-1455780747

  • User Avatar
    0
    deltavision created

    Hi,

    tried the global.json approach - but can not get it working. Only thing that works for us is the:

    *Component.InvokeAsync() instead of vc: tags * We hope for at patch VS2022 v17.5.2 as soon as possible :-)

  • User Avatar
    0
    ashgadala created

    I had the same issue and could not get it to work, When i added golbal.json through visual studio. However, when i added i same using CLI with the correct SDK.

    Also, Can you share where you did you made this change in the app Component.InvokeAsync() instead of vc: tags

  • User Avatar
    0
    deltavision created

    Hi,

    eg. for the Account Languages in ...Mvc\Views\Account_Layout.cshtml

    instead of using:

                    &lt;vc:account-languages&gt;&lt;/vc:account-languages&gt;
    

    use:

                    @await Component.InvokeAsync("AccountLanguages")
    

    https://learn.microsoft.com/en-us/aspnet/core/mvc/views/view-components?view=aspnetcore-7.0

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Does this work if you try a not modified 12.1-rc.1 version which we released yesterday ?

  • User Avatar
    0
    deltavision created

    Hi,

    fixed by VS2022 v17.5.2 update/patch :-)

    https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes#17.5.2