Just run it again and watch the browser console. There is an error as below which I don't understand. Can anybody advise me a clue?
vendor.0d0ecd6888946d189b3c.bundle.js:1 Uncaught Error: Cannot enable prod mode after platform setup. at ce (vendor.0d0ecd6888946d189b3c.bundle.js:1) at Object.cDNt (main.fbcb239d91994470baee.bundle.js:1) at n (inline.b01b7c89379b6ac4ad40.bundle.js:1) at Object.0 (main.fbcb239d91994470baee.bundle.js:1) at n (inline.b01b7c89379b6ac4ad40.bundle.js:1) at window.webpackJsonp (inline.b01b7c89379b6ac4ad40.bundle.js:1) at main.fbcb239d91994470baee.bundle.js:1 ce @ vendor.0d0ecd6888946d189b3c.bundle.js:1 cDNt @ main.fbcb239d91994470baee.bundle.js:1 n @ inline.b01b7c89379b6ac4ad40.bundle.js:1 0 @ main.fbcb239d91994470baee.bundle.js:1 n @ inline.b01b7c89379b6ac4ad40.bundle.js:1 window.webpackJsonp @ inline.b01b7c89379b6ac4ad40.bundle.js:1 (anonymous) @ main.fbcb239d91994470baee.bundle.js:1
BTW, the link url is like <a class="postlink" href="http://sub.mydomain.com/account/reset-password?userId=6&resetCode=1594AB7C31&tenantId=1">http://sub.mydomain.com/account/reset-p ... tenantId=1</a>
I just realized that not only the above url responses a blank screen, but also the login page is blank. I now can't login the application at all. It works days ago, and nothing changed on the server. All other .NET Core web sites on the same IIS are working fine. It looks like the IIS suddenly no longer to support Angular 2.
I tried to reboot IIS and the server, but no help. Does anybody have same experience?
I am using Core + Angular v4.5.1. When user click "Forget password?" or "Email activation", he gets an email with a link. Clicking the link results a blank screen. I tried to copy/paste the link to a browser (Edge or Chrome). It happens same.
Is it a bug on v4.5?
@soonjoo:
Thank you! It solved my issue. There is a fake password record. I just deleted it, and the error gone.
However, I realized my SMTP not working on v4.5. It worked on v4.0, and I've never changed the settings since then. After some try-and-see, I think the v4.5 does not support "Anonymous Access". I have to uncheck this option in the IIS SMTP Authentication section. But, if I use "Basic Authentication" option in SMTP, I always get "AuthenticationInvalidCredentials: 5.7.3 Authentication unsuccessful" exception, no matter what credentials I enter. My SMTP stores a credential in "Outbound Security", but it seems not working with aspnet zero.
The only working way is using "Integrated Windows Authentication" option to access SMTP in IIS and use a domain administrator's credential in aspnet zero. It is not good however. The domain administrator's credential should not be exposed to any other people.
Can you suggest me how do you set your SMTP in IIS and aspnet zero?
Thanks again!
I am running Core + Angular v4.5.0. When a new user register, it pops up an "internal error". The log shows an error on AccountAppService as below. I also found the same thing happens while I access "settings" in Admin page. The log shows same error on TenantSettingsAppService. Please advise!
Here is the error on Log:
System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
at System.Convert.FromBase64String(String s)
at Abp.Runtime.Security.SimpleStringCipher.Decrypt(String cipherText, String passPhrase, Byte[] salt)
at SNet.Emailing.SNetSmtpEmailSenderConfiguration.get_Password()
at Abp.MailKit.DefaultMailKitSmtpBuilder.ConfigureClient(SmtpClient client)
at Abp.MailKit.DefaultMailKitSmtpBuilder.Build()
at Abp.MailKit.MailKitEmailSender.BuildSmtpClient()
at Abp.MailKit.MailKitEmailSender.<SendAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Abp.Net.Mail.EmailSenderBase.<SendAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SNet.Authorization.Users.UserEmailer.<ReplaceBodyAndSend>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SNet.Authorization.Users.UserEmailer.<SendEmailActivationLinkAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices...
I need a "Patch" service method. It should work for updating any column of a table. Do you have an example to show how to make such API?
Thanks,
Thank you for your instruction! I tested but not working. :( The accessToken I got seems not similar as your example. It is much shorter like: 7b50e0e9-7415-46d2-b2b1-14b3969e5ddd :roll:
On my test html page, I make a link to direct the login request on admin site: <a href="adminSite/account/login??ss=true&returnUrl=userSite/home">Login</a>
When I click "Login" and log on the admin site, I get the url as below: <a class="postlink" href="http://localhost:4200/settings?accessToken=7b50e0e9-7415-46d2-b2b1-14b3969e5ddd&userId=Mg%3D%3D&tenantId=MQ%3D%3D">http://localhost:4200/settings?accessTo ... d=MQ%3D%3D</a>
I use the accessToken 7b50e0e9-7415-46d2-b2b1-14b3969e5ddd to test on postman header: [{"key":"Authorization","value":"Bearer 7b50e0e9-7415-46d2-b2b1-14b3969e5ddd","description":""}]
I got the error result: { "result": null, "targetUrl": null, "success": false, "error": { "code": 0, "message": "Current user did not login to the application!", "details": null, "validationErrors": null }, "unAuthorizedRequest": true, "__abp": true }
Please advise.
Ok, I am using the current approach and accept the url parameters. I tested with a simple HTML page, and get the accessToken, userId, and tenantId. Now, I need to call APIs (e.g. /api/services/app/Session/GetCurrentLoginInformations, and so on). Shall I include these parameters (accessToken, userId, and tenantId) into the HTTP header as key-value pairs? :?: If so, I just wonder how to name the corresponding "Keys"? :?:
Please advise.
Thanks,
I've tried your suggestion and all workarounds in the link <a class="postlink" href="https://github.com/primefaces/primeng/issues/2440">https://github.com/primefaces/primeng/issues/2440</a>, but no luck.
I agree with you, "it seems like primeNg does not support moment for calendar yet directly."
I think I have to use Metronic calendar component for now, but I couldn't find its API document on Metronic's web site. Can you provide me a link to it?
Thanks,
I use primeNg datatable's inline edit feature (see below code p-Template="editor"):
<p-column field="startDate" header="Start" [sortable]="true" [editable]="true" [style]="{'width':'120px'}">
<ng-template let-col let-cus="rowData" pTemplate="body">
<span>{{cus[col.field] | date: 'MM/dd/yyyy'}}</span>
</ng-template>
<ng-template let-col let-cus="rowData" pTemplate="editor">
<p-calendar [(ngModel)]="cus[col.field]" appendTo="body"></p-calendar>
</ng-template>
</p-column>