Server Error in '/' Application. The 'ClientId' option must be provided. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: The 'ClientId' option must be provided.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: The 'ClientId' option must be provided.] Owin.Security.Providers.LinkedIn.LinkedInAuthenticationMiddleware..ctor(OwinMiddleware next, IAppBuilder app, LinkedInAuthenticationOptions options) +807 lambda_method(Closure , OwinMiddleware , IAppBuilder , LinkedInAuthenticationOptions ) +93
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +132
System.Delegate.DynamicInvokeImpl(Object[] args) +160
Microsoft.Owin.Builder.AppBuilder.BuildInternal(Type signature) +321
Microsoft.Owin.Host.SystemWeb.OwinAppContext.Initialize(Action1 startup) +789 Microsoft.Owin.Host.SystemWeb.OwinBuilder.Build(Action
1 startup) +51
Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint() +101
System.Threading.LazyInitializer.EnsureInitializedCore(T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory) +139
Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(HttpApplication context) +160
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +587
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +173
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +255
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +347
[HttpException (0x80004005): Exception has been thrown by the target of an invocation.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +552 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +122 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +737
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.0
I'm not sure where to look I tried looking at the LinkedinAuthenticationMiddleware to see if they are similar, I didn't see any difference in that file also checked my appsettings to see if my client id is empty, it was present so I tried rewriting it just in case same result.
User contributions licensed under CC BY-SA 3.0