Base solution for your next web application

Activities of "capacent"

This worked for me, thank you for your help!

Hello

I am trying to render a custom property on the side bar menu dynamically

My version is the most recent one, running on Angular + ASP.Net core

I created a new entity which has CRUD functionality, I want each item in the new entity to be a child item in the sub menu. However, when I add a new item or delete one, the side bar menu stays the same until I manually refresh the page.

I am trying to make this part of the side bar menu dynamic so that when I delete something, it disappears from the side bar menu and the same for when I add an item, I want it to appear dynamically in the side bar menu as well. Without having to refresh the page

I've tried different things inside the side-bar-menu.component.ts along with inside the app-navigation.service.ts file but nothing seems to do the trick

Can anyone help me?

Example below:

Now i'll add an item through the file uploader I have.

The file appears in the main component however, I would like it to dynamically appear in the sidemenu I have marked in the upper left corner

Now when I manually refresh the whole page it looks like this, as it should

And now lets say I delete the file I just recently added, it still is in the sidemenu

I hope someone understands my question, this is driving me nuts because I'm pretty sure this has something to do with the menu: AppMenu variable in side-bar-menu.component.ts but I do not know what to do

I tried step to install .NET Core SDK but I still get the same error. Here below is the yaml file

pool:
  name: Hosted VS2017
  demands:
  - msbuild
  - visualstudio
  - vstest


steps:
- task: NuGetToolInstaller@1
  displayName: 'Use NuGet 5.0.0'
  inputs:
    versionSpec: 5.0.0

- task: NuGetCommand@2
  displayName: 'NuGet restore'
  inputs:
    restoreSolution: '$(Parameters.solution)'

- task: UseDotNet@2
  displayName: 'Use .Net Core sdk 3.1.x'
  inputs:
    version: 3.1.x
    performMultiLevelLookup: true

- task: VSBuild@1
  displayName: 'Build solution'
  inputs:
    solution: '$(Parameters.solution)'
    msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\"'
    platform: '$(BuildPlatform)'
    configuration: '$(BuildConfiguration)'

- task: VSTest@2
  displayName: 'Test Assemblies'
  inputs:
    testAssemblyVer2: |
     **\$(BuildConfiguration)\*test*.dll
     !**\obj\**
    platform: '$(BuildPlatform)'
    configuration: '$(BuildConfiguration)'

- task: PublishSymbols@1
  displayName: 'Publish symbols path'
  inputs:
    SearchPattern: '**\bin\**\*.pdb'
  continueOnError: true

- task: PublishBuildArtifacts@1
  displayName: 'Publish Artifact'
  inputs:
    PathtoPublish: '$(build.artifactstagingdirectory)'
    ArtifactName: '$(Parameters.ArtifactName)'

I am not sure. Where is that configuration set?

I am have a Aspnet core and Angular project and I am trying to run Azure Devops Pipeline. I get the following error in the Build step:

Agent job 1
300 error(s), 42 warning(s)
 
aspnet-core\src\BIM.Core\Authentication\TwoFactor\Google\GoogleAuthenticatorProvider.cs(4,28): Error CS0234: The type or namespace name 'Identity' does not exist in the namespace 'Microsoft.AspNetCore' (are you missing an assembly reference?) 
 
aspnet-core\src\BIM.Core\Authorization\Roles\RoleManager.cs(14,28): Error CS0234: The type or namespace name 'Identity' does not exist in the namespace 'Microsoft.AspNetCore' (are you missing an assembly reference?) 
 
aspnet-core\src\BIM.Core\Authorization\Users\UserClaimsPrincipalFactory.cs(2,28): Error CS0234: The type or namespace name 'Identity' does not exist in the namespace 'Microsoft.AspNetCore' (are you missing an assembly reference?) 
 

Does anyone know why the project is not building?

One of our tenants has changed the Metronic Themes so now his UI is unreadable. How can I restore the Theme so it back to its original state?

I created a new language Icelandic and now my application does not start. I get the following error in the browser console:

core.js:15724 ERROR Error: Uncaught (in promise): Error: Cannot find module './is.js'
Error: Cannot find module './is.js'
    at .*\.js$ namespace object:185
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391)
    at Object.onInvoke (core.js:17299)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:390)
    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:150)
    at zone.js:910
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)
    at Object.onInvokeTask (core.js:17290)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:422)
    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:195)
    at resolvePromise (zone.js:852)
    at resolvePromise (zone.js:809)
    at zone.js:913
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)
    at Object.onInvokeTask (core.js:17290)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:422)
    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:195)
    at drainMicroTaskQueue (zone.js:601)

This link does not work. I get an 404 error

Yes, there is a webconfig.xml file and it looks like this.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <staticContent>
      <mimeMap fileExtension=".json" mimeType="application/json" />
    </staticContent>
    <httpProtocol>
      <customHeaders>
        <remove name="X-Powered-By" />
      </customHeaders>
    </httpProtocol>
  </system.webServer>
</configuration> 

The project is up and running and everything works smoothly except for the link I get in e-mail.

I am working on a multitenancy solution written in .Net Core and Angular.

I have successfully set up Sendgrid to send emails.

I get email with this link http://data.is/account/reset-password?c=ACG8gT0tZAsMibCUJXiuXEb4LPfkw1ooHpXoCmwN37Q=

But when I press it I get error message: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

So my question is: Why is the link not working?

Showing 1 to 10 of 13 entries