Hello smansuri,
please do have look to similar issues
https://support.abp.io/QA/Questions/702/NullInjectorError-in-console-Angular-app-couldn%27t-load https://support.abp.io/QA/Questions/773/NullInjectorError-when-access-to-Permission-featuresplease do let me know if find helpful
Thanks, Anjali
We are using yarn install everytime we do a release in a azure pipeline but still getting the same error. Also tried npm install but it also produces below error.
Did you try on home/landing page not login page. or anyother page with does nt require authentication. even if i call the api https://doctrz.in:44325/api/abp/application-configuration i get below response in settings property without captcha key. "setting": { "values": { "Abp.Localization.DefaultLanguage": "en", "Abp.Timing.TimeZone": "UTC", "Abp.Identity.TwoFactor.Behaviour": "Optional", "Abp.Identity.TwoFactor.UsersCanChange": "True", "Abp.Account.EnableLdapLogin": "false", "Abp.Identity.EnableOAuthLogin": "false", "Abp.Identity.OAuthLogin.Authority": null, "Abp.Identity.OAuthLogin.ClientId": null, "Abp.Identity.OAuthLogin.ClientSecret": null, "Abp.Identity.OAuthLogin.Scope": null, "Abp.Identity.OAuthLogin.RequireHttpsMetadata": "false", "Abp.Identity.OAuthLogin.ValidateEndpoints": "false", "Abp.Identity.OAuthLogin.ValidateIssuerName": "false" } },
const param: ApplicationConfigurationRequestOptions = { includeLocalizationResources: false // ApplicationConfigurationRequestOptions is having only this flag which we can set true or false }; // this is parameter which we are passing in get method
we are trying to get settings data before login. after your suggested code also the below line of code some times return the sitekey and sometime does not. this.config.getSetting("Abp.Account.Captcha.SiteKey")
In the article , https://docs.abp.io/en/abp/latest/UI/Angular/Config-State-Service it says to set the config state service call this.abpApplicationConfigurationService.get().subscribe(config => { this.config.setState(config); }) while trying the above code inside constructor it is expecting one argumet in the get function. please provide what info and how to pass.
Hi,
You should restore packages while developing, they will be included when you publish your application using
dotnet publish
Everytime i should not check in libs and nodemodule folders. like for angular how we restore packages in docker there should be a way to achive this in authserver docker also. otherwise whats the use if package.json and checking in 18k files everytime also this is not the correct way of handling the lib files.
more over im getting below errors even after pushing libs and nodemodules to git repo. Request starting HTTP/2 GET https://xxxxx:44322/__bundles/moment.min.js.map; - - [07:38:12 INF] Request finished HTTP/2 GET https://xxxx:44322/__bundles/moment.min.js.map; - - - 302 0 - 8.1742ms [07:38:12 INF] Request starting HTTP/2 GET https://xxxxx:44322/Error?httpStatusCode=404 - - [07:38:12 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [07:38:12 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). [07:38:12 INF] Executing ViewResult, running view ~/Views/Error/404.cshtml. [07:38:12 INF] Executed ViewResult - view ~/Views/Error/404.cshtml executed in 41.5277ms.
Hi,
You should restore packages while developing, they will be included when you publish your application using
dotnet publish
Everytime i should not check in libs and nodemodule folders. like for angular how we restore packages in docker there should be a way to achive this in authserver docker also. otherwise whats the use if package.json and checking in 18k files everytime