Merhaba,
We have just upgraded to ASP.NET Zero version 10.2 and overall the new version is great. Previously we were using v8.1
The new version has much slower build times for the angular client.
Our typical build time now (for v10.2) is around 30minutes.
We are using Azure DevOps to perform the build, and using the ubuntu-latest agent. The specifics about these agents can be found here: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml https://docs.microsoft.com/en-us/azure/virtual-machines/dv2-dsv2-series#dsv2-series
What is the expected build time for client?
Hi,
I see that your code sets cookies as follows:
UtilsService().setCookieValue();
How are we meant to set the SameSite attribute for these coookies.
eg
private static setEncryptedTokenCookie(encryptedToken: string) {
new UtilsService().setCookieValue(AppConsts.authorization.encrptedAuthTokenName,
encryptedToken,
new Date(new Date().getTime() + 365 * 86400000), //1 year
abp.appPath
);
}
This appears an important issue - yet I have seen no advisiory from you on it. Is our Website going to stop working soon?
What do I need to do to get the ABP SetCookieValue() code to comply?
I have seen other posts in your forums on this BUT in them I have not seen clear advice from you.
Hi,
We are using ASP.NET Core/Angular.
I am struggling to change the locale to en-AU so that on client side dates are in dd/mm/yyyy format. BTW - I am also a bit confused as to why I see code such as the following. It suggests to me that you use Locale and Language interchangeably.
export function shouldLoadLocale(): boolean { return abp.localization.currentLanguage.name && abp.localization.currentLanguage.name !== 'en-US'; }
I have added the language "en-AU" (well its really a locale) on server side.
On client side I cant select that language for some reason using the language dropdown. I can see it there, but when I do select "English (Australia)" the page reloads and it is back to "English". Not "English (Australia)".
So I have tried forcing abp.localization.currentLanguage.name to "en-AU" and I can see that applying to Angular and Moment.
But all the dates are still in US format. For example when I look at the Audit Log there is a date range picker - and that is in US format still (ie mm/dd/yyyy).
What is the simple way for me to add support for "en-AU" and then ensure the UI uses that locale?
Cheers Mark
We have purchased ASP.NET Zero from you and so have a support contract. I dont see where we get support from you? Is this forum the only way to get support???
My Website Logs (in Admin/Maintenance) are not working in Azure. They work fine locally. I cant find any doco for them.
I have tried googling "Asp.net zero website logs" - but nothing.
So how do I configure them on Azure?
We are using .NET Core/Angular
Hi, I have run into package.json issues and so I cant get my angular code to build. All sorts of issues with incompatible angular vs types script issues. Not sure how to get back to a working state. It all just happened when I added ng2-pdf-viewer. Suddenly "npm start" would no longer compile. I spent hours mucking around with yarn and upgrading app versions - but to no avail. This is my package.json:
{ "name": "abp-zero-template", "version": "6.9.0", "license": "MIT", "angular-cli": {}, "scripts": { "ng": "ng", "publish": "ng build --env=prod", "publishprod": "ng build --configuration=production", "publishstaging": "ng build --configuration=staging", "publishtest": "ng build --configuration=test", "publishdevelopment": "ng build --configuration=development", "start": "ng serve --host 0.0.0.0 --port 4200", "hmr": "ng serve --host 0.0.0.0 --port 4200 --hmr", "test": "ng test", "pree2e": "webdriver-manager update --standalone false --gecko false", "e2e": "protractor" }, "private": false, "dependencies": { "@angular-devkit/build-angular": "^0.803.6", "@angular/animations": "^8.2.1", "@angular/cdk": "^8.2.1", "@angular/cli": "^8.2.1", "@angular/common": "^8.2.1", "@angular/compiler": "^8.2.1", "@angular/compiler-cli": "^8.2.1", "@angular/core": "^8.2.1", "@angular/forms": "^8.2.1", "@angular/http": "^7.2.15", "@angular/platform-browser": "^8.2.1", "@angular/platform-browser-dynamic": "^8.2.1", "@angular/platform-server": "^8.2.1", "@angular/router": "^8.2.1", "@aspnet/signalr": "^1.1.2", "@swimlane/ngx-charts": "^10.1.0", "abp-ng2-module": "^3.2.4", "abp-web-resources": "^3.8.5", "adal-angular": "^1.0.17", "angular-oauth2-oidc": "^5.0.2", "angular2-counto": "^1.2.5", "angular2-text-mask": "^9.0.0", "animate.css": "^3.7.0", "cookieconsent": "^3.1.0", "core-js": "^2.6.5", "devextreme": "19.1.6", "devextreme-angular": "^19.1.6", "famfamfam-flags": "^1.0.0", "js-cookie": "^2.2.0", "localforage": "^1.7.3", "lodash": "^4.17.11", "moment": "^2.24.0", "moment-timezone": "^0.5.23", "ng-recaptcha": "^4.2.1", "ng2-file-upload": "^1.3.0", "ng2-pdf-viewer": "^5.3.4", "ngx-bootstrap": "^4.0.0", "ngx-image-cropper": "^1.3.8", "ngx-perfect-scrollbar": "^7.2.1", "object-path": "^0.11.4", "primeicons": "^1.0.0", "primeng": "^7.1.0", "push.js": "^1.0.9", "quill": "^1.3.6", "rtl-detect": "^1.0.2", "rxjs": "^6.4.0", "simple-line-icons": "^2.4.1", "stream": "^0.0.2", "sweetalert2": "^8.8.0", "text-mask-addons": "^3.8.0", "zone.js": "^0.9.0" }, "devDependencies": { "@angularclass/hmr": "^2.1.3", "@angularclass/hmr-loader": "^3.0.4", "@types/jasmine": "~3.3.12", "@types/jasminewd2": "~2.0.6", "@types/lodash": "^4.14.123", "@types/moment-timezone": "^0.5.12", "@types/node": "^11.13.0", "codelyzer": "^5.0.0", "jasmine-core": "~3.3.0", "jasmine-spec-reporter": "^4.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "~2.2.0", "karma-cli": "~2.0.0", "karma-coverage-istanbul-reporter": "^2.0.5", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.0", "nswag": "12.0.20", "protractor": "~5.4.2", "ts-node": "~8.0.3", "tslint": "~5.15.0", "typescript": "3.4.5" } }
I have just downloaded the latest version for my project of ASP.NET Zero (7.2) and want to upgrade my angular project and use the new package.json. How do I go about doingthis upgrade?
Or dor you recommend I do something else to get my angular code building again.
Many thanks Mark
Hi,
We are using ASP.NET Zero Core/Angular.
We are uploading and storing PDF documents using the TempFileCacheManager and BinaryObjectManager (storing it in the database). Works great.
I now am presenting in a DevExtreme DataGrid the list of files that have been uploaded. I want the user to be able to click on a file in the grid to view the PDF document. SO the pdf document will need to be downloaded.
Is there something you have for that? How do you suggest I proceed?
Many thanks
Hi,
I am trouble getting my ASP.NET Zero (ASP.NET CORE and Angular) website to be configured for an environment other than Production. I have set the ASPNETCORE_ENVIRONMENT variable in my Azure WebApp to Staging. I have added a staging.appconfig.json file in my client app and configured that for my staging environment. Likewise I have configured those settings for staging in the appsettings.Staging.json file. Likwise I have configured the CORS origins correctly.
But no matter what I do my website keeps using the settings for Production (ie in producton.appconfig.json) - why is that the case?
Ive been at this for over 4 hours now. Somewhat confused.
In your documentation, here https://docs.aspnetzero.com/documents/aspnet-core-angular/latest/Deployment-Angular-Publish-Azure, you say "Azure is using appsettings.production.json, so this file should be configured like following". But I want my site to be able to be deployed to Development, Staging and Production.
Need your help please.
Ta Mark
My organization does not use Github. My developers do not have github accounts.
How can I assign a license to an email address?