Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Building clean solution has reference errors #3852


User avatar
0
carelearning created

Hello,

We saw the update to ABP Zero to go to 3.0. We cloned a new version and tried to build we get many reference errors. There is a screenshot attached of the references in the Application project. When we try to upgrade via nuget to ABP 3.0.0 we also get these errors. We are using the .Net 4.6 template (not Core). We started by trying to use git to merge changes with the commit of 93fb08209b96264527ac357163a8f78605913efa and also got these errors. We tried on two different development PC's and still get these errors. We are running VS 2017 version 15.3. Do you have any suggestions on how to resolve this?


6 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @careLearning,

    Those warnings are related to latest visual studio. We also had similar warnings but project was building successfully. We are waiting for Visual Studio team to fix it.

    Can you build your project ?

  • User Avatar
    0
    carelearning created

    We tried to upgrade our existing project and it will build. When we run, we cannot log in anymore. It gets to the [Post] Action of AccountController and then into GetLoginResultAsync's first line:

    var loginResult = await _logInManager.LoginAsync(usernameOrEmailAddress, password, tenancyName);
    

    When stepping through the code, this loops infinitely through our host DB context, ABpZeroTemplateHostDbContext.cs's constructor:

    public AbpZeroTemplateHostDbContext(string nameOrConnectionString)
                : base(nameOrConnectionString)
            {
            }
    

    Then we get the generic error message. We have tried to troubleshoot this to the best of our ability for days and have not figured out what could be going on. Screenshots are attached. We thought this might be connected to the reference errors, but maybe it is two separate issues. Is there any way to debug further? screenshots.zip

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @careLearning,

    Is there any error message in Logs.txt under your web project ? Probably it contains more detailed exception message.

  • User Avatar
    0
    carelearning created

    The log file is attached. The error is:

    naries.DictionaryBasedLocalizationSource - Can not find 'SetupOther' in localization source 'AbpZeroTemplate'!
    ERROR 2017-09-13 08:21:43,161 [8    ] mplate.Web.Controllers.AccountController - Padding is invalid and cannot be removed.
    System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
    

    We don't know what could have caused this on our side. We welcome any suggestions. Thanks Logs.zip

  • User Avatar
    0
    carelearning created

    We found the problem. It was the changes to SimpleStringCipher. We had data (connection strings) already encrypted in the prior method and that prevented us from logging in. We are now going to set up Feedly.com to watch the github source for this file so we will know when changes are. Thank you for your help.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @careLearning,

    I'm glad that it is fixed.