Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after installing on 8.17.0 #16

Open
amirkhan81 opened this issue Feb 2, 2022 · 0 comments
Open

Error after installing on 8.17.0 #16

amirkhan81 opened this issue Feb 2, 2022 · 0 comments

Comments

@amirkhan81
Copy link

After installing on 8.17.0 I get the following error when loading any content page, though there were no errors during installation.

Received an error from the server
An error occurred
An error occurred when trying to create a controller of type 'ContentGuardApiController'. Make sure that the controller has a parameterless public constructor.

Exception Details
System.InvalidOperationException: An error occurred when trying to create a controller of type 'ContentGuardApiController'. Make sure that the controller has a parameterless public constructor.
Stacktrace
at System.Web.Http.Dispatcher.DefaultHttpControllerActivator.Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__15.MoveNext()
Inner Exception
System.IO.FileNotFoundException: Could not load file or assembly 'Cogworks.ContentGuard.Core, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Reflection.RuntimeConstructorInfo.GetParametersNoCopy()
at System.Reflection.RuntimeConstructorInfo.GetParameters()
at LightInject.ConstructorDependencySelector.Execute(ConstructorInfo constructor)
at LightInject.TypeConstructionInfoBuilder.GetConstructorDependencies(ConstructorInfo constructorInfo)
at LightInject.TypeConstructionInfoBuilder.Execute(Registration registration)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at LightInject.ServiceContainer.EmitNewInstance(ServiceRegistration serviceRegistration, IEmitter emitter)
at LightInject.ServiceContainer.CreateDynamicMethodDelegate(Action1 serviceEmitter) at LightInject.ServiceContainer.CreateInstanceDelegateIndex(Action1 emitMethod)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at LightInject.ServiceContainer.EmitLifetime(ServiceRegistration serviceRegistration, Action1 emitMethod, IEmitter emitter) at LightInject.ServiceContainer.<>c__DisplayClass153_0.<CreateEmitMethodWrapper>b__0(IEmitter ms) at LightInject.ServiceContainer.CreateDynamicMethodDelegate(Action1 serviceEmitter)
at LightInject.ServiceContainer.CreateDelegate(Type serviceType, String serviceName, Boolean throwError)
at LightInject.ServiceContainer.CreateDefaultDelegate(Type serviceType, Boolean throwError)
at LightInject.ServiceContainer.TryGetInstance(Type serviceType)
at System.Web.Http.Dispatcher.DefaultHttpControllerActivator.GetInstanceOrActivator(HttpRequestMessage request, Type controllerType, Func`1& activator)
at System.Web.Http.Dispatcher.DefaultHttpControllerActivator.Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType)

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

No branches or pull requests

1 participant