Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Membershipreboot activation error #232

Closed
crammer opened this issue Jul 20, 2014 · 8 comments
Closed

Membershipreboot activation error #232

crammer opened this issue Jul 20, 2014 · 8 comments
Assignees

Comments

@crammer
Copy link

crammer commented Jul 20, 2014

Hi,

I downloaded the latest version of IdentityServer and IdentityServer.Samples. I pointed the MR connection string to localhost and when I activated it in Startup_LocalTest, IUserService looked for a reference so I added Thinktecture.IdentityServer.Core.Services and ran it. I used JavaScript Implicit Client to test it and I got this error -

The Entity Framework provider type 'System.Data.Entity.SqlServerCompact.SqlCeProviderServices, EntityFramework.SqlServerCompact' registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SqlServerCe.4.0' could not be loaded.

Can anyone please point me to the right direction?

Thank you in advance.

@brockallen
Copy link
Member

The sample probably just needs the right NuGets -- I'll look into it.

@crammer
Copy link
Author

crammer commented Jul 20, 2014

Thank you. I tried updating the packages but I'm not able to fix it. I'll wait for your feedback.

@crammer
Copy link
Author

crammer commented Jul 20, 2014

By the way, I also used inmemory. The login page is showing but authentication is throwing an error. I wanted to let you know as well. Thanks again.

@brockallen
Copy link
Member

For the second thing you mention -- what's the error? The exception and perhaps call stack might be helpful.

@brockallen
Copy link
Member

Ok, I looked and I think the reason is that the .config doesn't have a proper config between EF and MR. It should have:

<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">

if you're using SqlServer.

@brockallen
Copy link
Member

Ok, also I just moved some of the DB specific stuff for the user service implementations out to the host, so re-fetch the latest from master to get this slight update. I also fixed up the EF issues in the .config with this checkin, It's now all working again, Thx.

@crammer
Copy link
Author

crammer commented Jul 21, 2014

Thank you. I downloaded the updated version and ran it. This is the stacktrace after login.

{"Message":"An error has occurred.","ExceptionMessage":"Invalid PromptMode","ExceptionType":"System.ArgumentException","StackTrace":" at Thinktecture.IdentityServer.Core.Connect.AuthorizeInteractionResponseGenerator.d__a.MoveNext() in c:\Thinktecture.IdentityServer.v3\source\Core\Connect\ResponseHandling\AuthorizeInteractionResponseGenerator.cs:line 111\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at Thinktecture.IdentityServer.Core.Connect.AuthorizeEndpointController.<ProcessRequestAsync>d__3.MoveNext() in c:\\Thinktecture.IdentityServer.v3\\source\\Core\\Connect\\Endpoints\\AuthorizeEndpointController.cs:line 114\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at Thinktecture.IdentityServer.Core.Connect.AuthorizeEndpointController.d__0.MoveNext() in c:\Thinktecture.IdentityServer.v3\source\Core\Connect\Endpoints\AuthorizeEndpointController.cs:line 53\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__31.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Web.Http.Controllers.AuthenticationFilterResult.<ExecuteAsync>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()"}

@brockallen
Copy link
Member

I was just doing some work in that area -- make sure you have the latest checkin for that class: 5ea6859

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants