Base solution for your next web application

Activities of "Ricavir"

Hi,

I've purchased my first template yesterday. I'm trying to add french language. I had the same problems described in previous posts. Adding "fr-FR" is not working at all. I was blocked on loading page after login process. So I changed "fr-FR"translations to "fr" only. With that changes, French labels were displayed in application but not on login page by default.

Therefore, I've tested the workaround mentioned previously (from github) by adding some code on startup to get user id and default language.

Now, French is working on login page AND on application... but I'm not able to switch languages anymore. When I try to select English language, the page is reloaded in french language. Same with all other languages. It's like application is always fowling back to the default language.

Do you have a solution ?

Hi,

Tks for support. This solution is not working : login page is well displayed but after login into application, the page is blocked with loading animation. This problem occurs when culture is added to "fr" (eg : "fr-FR"). I tried to change abp settings to fr-FR,my XML language file to fr-FR and also update languageList table with fr-FR > still same issue. I had to came back to previous change (therefore, the application is working in French but still not possible to switch to any other language in login page or app page)

By debugging this issue, I noticed that JTable labels were not translated to french (the ones in table footer like "go to page" and "row count"). Starting from that, I had a look to the browser console as you advice and noticed that a 404 error was thrown for file jquery.jtable.en.js. So, I copy/paste jquery.jtable.fr.js and renamed it to jquery.jtable.en.js

I put back into the code line "app.ConfigureRequestLocalization();" in Startup.cs

Now, switching languages works again, great !

But, on JTable footers I have french translations when English language is selected (because of my previous copy/paste from french) and English translations when French is selected => and that is really stranged to me.

Do you have any hint to fix that ?

Ok, the problem is linked with default language. I try to select German as default language. In that configuration, JTable footer translations are... English. And when switching to French language (that is not the default language anymore), JTable footer translations are French as it has to be.

Here it is

Answer

Hello,

I've been changing my template project following your step by step document (asp.net core + angular 2) I have a plan on azure and would like to deploy the project before going further in the developement. I manage to migrate the database without any problem (with Migrator project)

I tried to deploy the web project directly from VS2015. All publish settings are automaticaly configured after logging to my azure account.

After deployment process, I have an internal server error :"An error occurred while starting the application."

Do I have to change some settings before publishing ? (on appsettings.json or web.config)

Answer

Tks for your answers @ismcagdas, @rvanwoezik.

Actually, I did not manage to deploy the server part to azure. I know that some issues are ongoing to deploy angluar2 (client side)... But my point is just to deploy ASP.NET Core app to azure. Thus, I don't even have swagger UI accessible from azure.

Right konw, I have a 500 server error.

Answer

Tks for the hint. It was a problem with azure database connection string. now, I can continue with angular deployment ;)

Answer

Hello, I applied these changes :

<cite>ismcagdas: </cite> Good news :). By the way, there is an issue related to signalr for angular2 template and we will fix it this week. Please follow this issue for that <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/47">https://github.com/aspnetzero/aspnet-ze ... /issues/47</a>.

Signalr is still not working on azure now (as well as on my dev server).

Here is the log :

ERROR 2017-02-13 12:53:55,740 [18 ] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL2K0GIR93AU": An unhandled exception was thrown by the application. System.Security.Cryptography.CryptographicException: The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread's user context, which may be the case when the thread is impersonating. at System.Security.Cryptography.ProtectedData.Protect(Byte[] userData, Byte[] optionalEntropy, DataProtectionScope scope) at System.Security.Cryptography.DpapiDataProtector.ProviderProtect(Byte[] userData) at Microsoft.AspNet.SignalR.Infrastructure.DataProtectionProviderProtectedData.Protect(String data, String purpose) at Microsoft.AspNet.SignalR.PersistentConnection.ProcessNegotiationRequest(HostContext context) at Microsoft.AspNet.SignalR.PersistentConnection.ProcessRequest(HostContext context) at Microsoft.Owin.Cors.CorsMiddleware.HandleCorsRequestAsync(IOwinContext context, CorsPolicy policy, CorsRequestContext corsRequestContext) at Microsoft.Owin.Cors.CorsMiddleware.<Invoke>d__0.MoveNext()

Answer

Hello, I'm facing the same problem... as I am very new with javascript, can you please precise where to add ../assets/global/plugins/horizontal-timeline/horizontal-timeline.js ?

Is it on angular-cli.json within "scripts" list ?

Showing 1 to 10 of 314 entries