Base solution for your next web application

Activities of "tiestop"

Question

We do see that in the last build the officially deprecated static Google Image Charts chart.googleapis.com/chart is used in the GoogleTwoFactorAuthenticateService.cs, but that part is not working anymore. Is there already a other option to get this one solved?

I am having the same issue using Core and Angular 2.0. I have an Azure app service for the client and one for the server. Everything is working fine except signalr.

I am getting the following message in the chrome console

{azure-app-service-endpoint}hubs?_=1485791190035 Failed to load resource: the server responded with a status of 500 (Internal Server Error)

This is the stacktrace

System.NotSupportedException: The invoked member is not supported in a dynamic assembly. at System.Reflection.Emit.InternalAssemblyBuilder.get_Location() at Microsoft.AspNet.SignalR.Hubs.ReflectedHubDescriptorProvider.GetTypesSafe(Assembly a) at System.Linq.Enumerable.<SelectManyIterator>d__162.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at Microsoft.AspNet.SignalR.Hubs.ReflectedHubDescriptorProvider.BuildHubsCache() at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue() at Microsoft.AspNet.SignalR.Hubs.ReflectedHubDescriptorProvider.GetHubs() at System.Linq.Enumerable.<SelectManyIterator>d__162.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.OrderedEnumerable1.<GetEnumerator>d__1.MoveNext() at Microsoft.AspNet.SignalR.Hubs.DefaultJavaScriptProxyGenerator.GenerateProxy(IHubManager hubManager, IJavaScriptMinifier javaScriptMinifier, Boolean includeDocComments) at System.Lazy1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Lazy1.get_Value() at Microsoft.AspNet.SignalR.Hubs.DefaultJavaScriptProxyGenerator.GenerateProxy(String serviceUrl) at Microsoft.AspNet.SignalR.Hubs.HubDispatcher.ProcessRequest(HostContext context) at Microsoft.Owin.Cors.CorsMiddleware.<Invoke>d__0.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 Microsoft.Owin.Mapping.MapMiddleware.<Invoke>d__0.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 Microsoft.AspNetCore.Owin.WebSocketAcceptAdapter.<>c__DisplayClass6_0.<<AdaptWebSockets>b__0>d.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 Microsoft.AspNetCore.Authentication.AuthenticationMiddleware1.<Invoke>d__18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware`1.

I have solved it by updating the HangFire package to 1.6.8 using the Package Manager. Might be an idea to include in the documentation that a Package Restore is not enough but that we also need to update packages

I'm using Visual Studio Team Services Builds and I'm getting a Hangfire version conflict error when doing a Nuget Package Restore. I have gotten the same error before when building with Visual Studio but I'm not getting it anymore and I have not changed anything. It seems that there is a version conflict. I have pasted part of the logs below.

I'm using the DotNet Core and Angular 2.x template. (I have only changed the connection strings)

Restore failed in 15477ms. Version conflict detected for Hangfire.Core. MWise.MPointLoyalty.Web.Host (>= 1.0.0) -> MWise.MPointLoyalty.Web.Core (>= 1.0.0) -> Abp.HangFire (>= 1.2.2) -> Hangfire.Core (>= 1.6.8) MWise.MPointLoyalty.Web.Host (>= 1.0.0) -> MWise.MPointLoyalty.Web.Core (>= 1.0.0) -> Hangfire.SqlServer (>= 1.6.7) -> Hangfire.Core (= 1.6.7). Errors in D:/a/1/s/Server/src/MWise.MPointLoyalty.Web.Host/project.json Dotnet command failed with non-zero exit code: 1. Version conflict detected for Hangfire.Core. MWise.MPointLoyalty.Web.Host (>= 1.0.0) -> MWise.MPointLoyalty.Web.Core (>= 1.0.0) -> Abp.HangFire (>= 1.2.2) -> Hangfire.Core (>= 1.6.8) MWise.MPointLoyalty.Web.Host (>= 1.0.0) -> MWise.MPointLoyalty.Web.Core (>= 1.0.0) -> Hangfire.SqlServer (>= 1.6.7) -> Hangfire.Core (= 1.6.7). C:\Program Files\dotnet\dotnet.exe restore D:/a/1/s/Server/test/MWise.MPointLoyalty.Tests/project.json

Showing 1 to 4 of 4 entries