Base solution for your next web application

Activities of "smackofham"

OK - found the issue - for whatever reason a developer added {useHash:true} to the root-routing.module.ts. At this point I have no idea why, but, there it is.

Thank you.

I have, and as far as I can tell, it looks fine:

{
  "remoteServiceBaseUrl": "https://not-real-uri-api.azurewebsites.net",
  "appBaseUrl": "https://not-real-uri.azurewebsites.net",
  "localeMappings": [
    {
      "from": "pt-BR",
      "to": "pt"
    },
    {
      "from": "zh-CN",
      "to": "zh"
    },
    {
      "from": "he-IL",
      "to": "he"
    }
  ]
}

OK - so what I've found is that our routing seems odd. The URL is in this format: https://www.random.com/#/account/login

The email activation url is: https://www.random.com/account/confirm-email

If i add the /#/ to the second URL, everything works. Where is this coming from, and why? We have made no modifications to the routing.

{
  "ConnectionStrings": {
    "Default": "<RemovedConnectionString>"
  },
  "App": {
    "ServerRootAddress": "http://localhost:9901/",
    "ClientRootAddress": "#{appBaseUrl}#",
    "CorsOrigins": "http://localhost:9902"
  }
}

We are replacing the #{appBaseUrl}# token during deployment. That changes to the web app url.

We are using the ASP.NET Core & Angular version of the project.

We modified the Web.Host appsettings.Production.json ClientRootAddress to point to the web server url instead of the default localhost:4200. However. whenever a new user clicks on the confirmation email link, we receive the following message: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

So, let's say our server is at https://www.random.com, the link we get is https://www.random.com/account/confirm-email?c=yaddayaddayadda

What are we doing wrong here?

OK, so for anyone who follows behind me with the same issue, it turns out we needed to downgrade netstandard library to 2.0.1 for this to work. Seems to be a breaking change in the 2.0.3 version?

We are attempting to create a CI/CD build the ASP.NET Zero iOS app in VSTS.

We are using the Xamarin iOS build template.

After the NuGet restore task (NuGet 4.3.0) we get an error in the build: /Users/vsts/agent/2.144.0/work/13/s/Trunk/aspnet-core/src/AgileDemo.Mobile.iOS/AgileDemo.Mobile.iOS.csproj(378,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ../../packages/NETStandard.Library.2.0.3/build/netstandard2.0/NETStandard.Library.targets.

If I list the packages directory I see that the NETStandard.Library.targets file is located here: ./packages/netstandard.library/2.0.3/build/netstandard2.0 not here: /packages/NETStandard.Library.2.0.3/build/netstandard2.0

It appears that the project isn't looking for a 2.0.3 subdirectory under netstandard.library, it's looking for a directory named netstandard.library.2.0.3.

How can we properly resolve this issue?

Yes - this is a hosted VS2017 build agent. It has Visual Studio 2017 Enterprise installed already.

No.

We are attempting to set up a CI-CD build for the mobile projects that come with the default ASP.NET Zero AgileDemo project.

At this time, I am able to successfully build the AgileDemo.Mobile.Droid project using an msbuild command on my local using the following command:

msbuild /t:clean;restore;compile;build;packageforandroid AgileDemo.Mobile.Droid.csproj

However, using this same command in a hosted VS2017 MSBuild task in VSTS throws the following errors:

2018-12-21T18:22:21.9051198Z CoreCompile:
2018-12-21T18:22:21.9065316Z   C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn\csc.exe <snip lots of options>
2018-12-21T18:22:21.9074660Z   Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn
2018-12-21T18:22:22.4124711Z ##[error]aspnet-core\src\AgileDemo.Application.Shared\Authorization\Accounts\Dto\ActivateEmailInput.cs(3,14): Error CS0234: The type or namespace name 'Web' does not exist in the namespace 'System' (are you missing an assembly reference?)
2018-12-21T18:22:22.4132023Z Authorization\Accounts\Dto\ActivateEmailInput.cs(3,14): error CS0234: The type or namespace name 'Web' does not exist in the namespace 'System' (are you missing an assembly reference?) [D:\a\3\s\aspnet-core\src\AgileDemo.Application.Shared\AgileDemo.Application.Shared.csproj]
2018-12-21T18:22:22.4135486Z ##[error]aspnet-core\src\AgileDemo.Application.Shared\Authorization\Accounts\Dto\ResetPasswordInput.cs(3,14): Error CS0234: The type or namespace name 'Web' does not exist in the namespace 'System' (are you missing an assembly reference?)
2018-12-21T18:22:22.4135738Z Authorization\Accounts\Dto\ResetPasswordInput.cs(3,14): error CS0234: The type or namespace name 'Web' does not exist in the namespace 'System' (are you missing an assembly reference?) [D:\a\3\s\aspnet-core\src\AgileDemo.Application.Shared\AgileDemo.Application.Shared.csproj]
<snip>

and on and on.

I'm not sure I understand why it works locally but not on the hosted system running the same version of msbuild.

For fun, I've attempted to build this using a Xamarin task and a dotnet task. All fail as well with similar errors.

Has anyone seen this and resolved it successfully?

Showing 1 to 10 of 10 entries