Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "Ricavir"

Answer

I just have one warning on tooltip.directive.js:65 but not related with timeline: "tooltipPlacement was deprecated, please use placement instead" I have the "cd-horizontal-timeline" css class in my html element (since I get HTML source code from metronic web site) And, of course, I added the line "../src/assets/metronic/global/plugins/horizontal-timeline/horizontal-timeline.js" to scripts list in angular-cli.json ; and put the javascript file "horizontal-timeline.js" in the right folder. But still nothing displayed : I just have the portlet and title displayed in the page, nothing inside.

Answer

Hi,

I try and tried again. no way, I don't manage to display this horizontal timeline :? I added "../src/assets/metronic/global/plugins/horizontal-timeline/horizontal-timeline.js" on the scripts list of angular-cli.json and grabbed the javascript file on metronic site.

Do I have to add something else ? I really need to display this timeline for my customer :cry:

Any idea ?

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 ?

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

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

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

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)

Here it is

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.

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 ?

Showing 221 to 230 of 232 entries