Hello,
Yes, Editor component from ngPrime is an angular component with Quill dependency.
Quill reference is the lastest item in my angular-cli file. My Quill version is 1.3.2, I've checked differences between 1.3.0 but just bugg fixes ; normally, should not have impact.
By the way, I've tried to implement another editor : this time I select TinyMce editor (they have an angular version of it). It is also not working with error TinyMce is not defined.
Can this be caused by a wrong typings configuration ? It is stange that both editor components have quite the same problem...
Hello,
I'm trying to implement ngPrime Editor component as you did with the DemoUI page on last aspnetzero release. I've installed quill with npm (npm install quill --save) I've also added JS and CSS reference on angular-cli file : "scripts": [... "../node_modules/quill/dist/quill.js"], "styles": [ ... "../node_modules/quill/dist/quill.core.css", "../node_modules/quill/dist/quill.snow.css"],
I imported the component in my angular module.
I have the following issue when I try to open a page with editor included : "Quill is not defined"
I try to add a reference on typings but still same issue.
Did you had this issue also on your DemoUI page ? Any idea to solve this ?
OK, I found the difference with my implementation. My entity was inheriting from FullAuditedEntity. I passed it to CreationAuditedEntity and it works has expected.
Hi,
I have implemented a kind of addressbook as you've described in your "step by step" document for ASP.NET CORE + ANGULAR.
My problem is that when I remove child entities, let's say removing a phone entities from Person entity, they are still available after querying the database. This is because of SoftDelete. I read that it is an EF limitation and filters aren't applied to included entities...
Do you have the same result with your phonebook example project ?
I removed AddTemporarySigningCredential by AddSigningCredential by passing my SSL certificate but it doesn't work. App crash when trying to find the certificate. Do you have an other solution for your own servers ?
I will let AddTemporarySigningCredential for now but it would be better to add an IF ENDIF to remove it from production. Also, app-settings should be used to pass data to AddSigningCredential on production context.
Would it be possible to add something like that in next releases ?
Hi,
It works with following code. As you said @alper, I need to update parent entity alone first and then childs entity. Tks !
public async Task UpdateEventEdit(EventEditDto input)
{
var _event = await _eventRepository.GetAsync(input.Id);
input.MapTo(_event);
_event.EventUsers.Clear();
var updatedEvent = await _eventRepository.UpdateAsync(_event);
//Update EventUsers separatly
if (input.EventUsers.Count > 0)
{
foreach (var eventUser in input.EventUsers)
{
updatedEvent.EventUsers.Add(await UserManager.GetUserByIdAsync(eventUser.Id));
}
await _eventRepository.UpdateAsync(updatedEvent);
}
}
Hi,
I published my app (asp.net core + angular) on my IIS server. I added my domain url to WebHostBuilder :
namespace ELEVEN_SOFT.Logisav.Web.Startup
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.UseUrls("https:////mydomainname.com")
.Build();
host.Run();
}
}
}
Everything seems to work properly when testing the app. But on my log file, I have several exceptions linkked with identity server :
INFO 2017-08-12 10:58:37,432 [17 ] entication.JwtBearer.JwtBearerMiddleware - Successfully validated the token.
INFO 2017-08-12 10:58:37,432 [17 ] entication.JwtBearer.JwtBearerMiddleware - HttpContext.User merged via AutomaticAuthentication from authenticationScheme: Bearer.
INFO 2017-08-12 10:58:37,432 [17 ] entication.JwtBearer.JwtBearerMiddleware - Failed to validate the token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI0IiwibmFtZSI6ImFkbWluIiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiI5MDc2MWU3MS00MTA5LTQ2ODktOGQzZS0wNDNhMWZhZmIzNTUiLCJyb2xlIjoiQWRtaW4iLCJodHRwOi8vd3d3LmFzcG5ldGJvaWxlcnBsYXRlLmNvbS9pZGVudGl0eS9jbGFpbXMvdGVuYW50SWQiOiIzIiwianRpIjoiYmY3MTc5NmYtMmUyMC00OTBiLTlhNTYtNjUxMzhlZGZkMjJjIiwiaWF0IjoxNTAyNTI0NDAwLCJuYmYiOjE1MDI1MjQ0MDAsImV4cCI6MTUwMjYxMDgwMCwiaXNzIjoiTG9naXNhdiIsImF1ZCI6IkxvZ2lzYXYifQ.KjUfCsnw3muqoIjWw3i7YkN6yK48gQsAapJeMzasp2Y.
Microsoft.IdentityModel.Tokens.SecurityTokenInvalidSignatureException: IDX10503: Signature validation failed. Keys tried: 'Microsoft.IdentityModel.Tokens.RsaSecurityKey , KeyId: 3c0acb9ccff2fa42456b471e8b8bc919
'.
Exceptions caught:
''.
token: '{"alg":"HS256","typ":"JWT"}.{"sub":"4","name":"admin","AspNet.Identity.SecurityStamp":"90761e71-4109-4689-8d3e-043a1fafb355","role":"Admin","http://www.aspnetboilerplate.com/identity/claims/tenantId":"3","jti":"bf71796f-2e20-490b-9a56-65138edfd22c","iat":1502524400,"nbf":1502524400,"exp":1502610800,"iss":"Logisav","aud":"Logisav"}'.
à System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters)
à System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
à Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.<HandleAuthenticateAsync>d__1.MoveNext()
INFO 2017-08-12 10:58:37,432 [17 ] entication.JwtBearer.JwtBearerMiddleware - Bearer was not authenticated. Failure message: IDX10503: Signature validation failed. Keys tried: 'Microsoft.IdentityModel.Tokens.RsaSecurityKey , KeyId: 3c0acb9ccff2fa42456b471e8b8bc919
'.
Exceptions caught:
''.
token: '{"alg":"HS256","typ":"JWT"}.{"sub":"4","name":"admin","AspNet.Identity.SecurityStamp":"90761e71-4109-4689-8d3e-043a1fafb355","role":"Admin","http://www.aspnetboilerplate.com/identity/claims/tenantId":"3","jti":"bf71796f-2e20-490b-9a56-65138edfd22c","iat":1502524400,"nbf":1502524400,"exp":1502610800,"iss":"Logisav","aud":"Logisav"}'.
I tried to remove "openid" settings from appsettings.json but still same exceptions.
I think it is due to an incorrect identityserver settings but don't how to correct it. On the log exception, it is also mentioned the url <a class="postlink" href="http://www.aspnetboilerplate.com/identity/claims/tenantId">http://www.aspnetboilerplate.com/identi ... s/tenantId</a> which should not be here actualy.
Can you guide me to fix this ?
Issue solved. I just update VS 2017 to the latest release.
Cheers
Hi,
I've been trying to publish my project aspnetzero 4.2.1 (aspnet core + angular + merged solution). I want to publish to IIS. Angular build is working.
When publish process is ending, I had a lot of errors (more than 800) because of file missing ; in fact, it was because angular output dir was not setted as it was excepted... I changed it to wwwroot (instead of wwwroot/dist)
Now, I have 13 errors still because of file missing :
\wwwroot\swagger\ui\index.html can not be found Web.Host\wwwroot\Common\Images\SampleProfilePics\sample-profile-07.jpg can not be found Web.Host\wwwroot\Common\Images\SampleProfilePics\sample-profile-10.jpg can not be found Web.Host\wwwroot\Common\Images\SampleProfilePics\sample-profile-09.jpg can not be found Web.Host\wwwroot\Common\Images\SampleProfilePics\sample-profile-05.jpg can not be found Web.Host\wwwroot\Common\Images\SampleProfilePics\sample-profile-06.jpg can not be found Web.Host\wwwroot\Common\Images\SampleProfilePics\sample-profile-02.jpg can not be found Web.Host\wwwroot\Common\Images\logo.png can not be found Web.Host\wwwroot\Common\Images\SampleProfilePics\sample-profile-04.jpg can not be found Web.Host\wwwroot\Common\Images\SampleProfilePics\sample-profile-03.jpg can not be found
Do you know why I'm having these issues ?
Hi alper,
Thanks, I will do it with primeng.