when i create new project anglar and run the app i get this err
An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module Volo.Abp.OpenIddict.AbpOpenIddictDomainModule, Volo.Abp.OpenIddict.Domain, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null: An exception was thrown while activating Volo.Abp.OpenIddict.Tokens.TokenCleanupBackgroundWorker -> Volo.Abp.DistributedLocking.MedallionAbpDistributedLock.. See the inner exception for details.
Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.OpenIddict.Tokens.TokenCleanupBackgroundWorker -> Volo.Abp.DistributedLocking.MedallionAbpDistributedLock.
Autofac.Core.DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Volo.Abp.DistributedLocking.MedallionAbpDistributedLock' can be invoked with the available services and parameters:
Cannot resolve parameter 'Medallion.Threading.IDistributedLockProvider distributedLockProvider' of constructor 'Void .ctor(Medallion.Threading.IDistributedLockProvider, Volo.Abp.Threading.ICancellationTokenProvider, Volo.Abp.DistributedLocking.IDistributedLockKeyNormalizer)'.
v
Make sure you are running Redis. DistributedLocking refers to Redis in your error.
Related
I've been using this tutorial many times before and had never a issue. Since I updated my visual studio i get this.
I get the follow error after following this tutorial: https://devblogs.microsoft.com/dotnet/porting-desktop-apps-to-net-core/
I'm using the Guna.dll for my text and buttons.
Can anyone help me, give me more information about the problem/error?
System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for 'A.c5596ad7eebefb7cfe22f22c88ed940ca' threw an exception.
Source=Guna.UI
StackTrace:
at A.c5596ad7eebefb7cfe22f22c88ed940ca.c28713f1a30f3f2105e30cc9d10f7ef4a()
at Guna.UI.WinForms.GunaLabel..ctor()
at Nettoya.FormHome.InitializeComponent() in C:\Users\b\Desktop\Nettoya\Nettoya\Form1.Designer.cs:line 37
at Nettoya.FormHome..ctor() in C:\Users\b\Desktop\Nettoya\Nettoya\Form1.cs:line 49
at Nettoya.Program.Main() in C:\Users\b\Desktop\Nettoya\Nettoya\Program.cs:line 18
Inner Exception 1:
TypeLoadException: Could not load type 'Microsoft.VisualBasic.Devices.Network' from assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Getting following exception when loading :
speechRecognizer = new Microsoft.CognitiveServices.Speech.SpeechRecognizer(config);
Inner exception : InnerException = {"Unable to load DLL
'Microsoft.CognitiveServices.Speech.csharp.bindings.dll': The
specified module could not be found. (Exception from HRESULT:
0x8007007E)"}
Microsoft.CognitiveServices.Speech.Internal.carbon_csharpPINVOKE.SpeechConfig_FromSubscription(String
jarg1, String jarg2) at
Microsoft.CognitiveServices.Speech.Internal.SpeechConfig.FromSubscription(String
subscription, String region) at
Microsoft.CognitiveServices.Speech.SpeechConfig.FromSubscription(String
subscriptionKey, String region) |ERROR|The type initializer for
'SWIGExceptionHelper' threw an exception. 2019-01-03
16:02:50.2178|ERROR|The type initializer for
'Microsoft.CognitiveServices.Speech.Internal.carbon_csharpPINVOKE'
threw an exception.
As the exception says, you are missing "Microsoft.CognitiveServices.Speech.csharp.bindings.dll" . You have to include the dll in the project and mark it as part of the deploy. Make sure it appears in the deployed folder in the IIS , copy it manually as last option.
I'm trying my application, but an error comes up saying 'XamlParseException was unhandled". This is what is showing in the error window:
Cannot create instance of 'Shell' defined in assembly 'myProgram, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error in markup file 'myProgram;component/Shell.xaml' Line 1 Position 9.
Here's my line 1 in Shell.xaml:
"Window x:Class="myProgram.Shell"
Check your Shell.xaml. Looks like some XAML is breaking there. Check below things:
1) All bindings are ok.
2) Styles used are ok and present in style
3) any converter used are ok.
http://pastebin.com/n6G1jTHQ
My code creates a new assembly and module, and then emits a class SWT(within a new assembly) that should be exactly the same as SWTTFieldsclass.
Line 137, saves the assembly/module into a .dll, myAsmBuilder.Save("ModuleOne.dll"); throws the exception:
An unhandled exception of type 'System.NotSupportedException' occurred
in mscorlib.dll Additional information: Type 'SWT' was not completed.
Why I am getting this error ? What is missing in my emitted class ?
You have to call the TypeBuilder.CreateType Method for each TypeBuilder before saving the File.
I have sucessfully built the example AddressBook project in protobuf-csharp-port-2.4.1.473-source and have even got it to work with the C++ example from the protobuf-2.4.1-win32. However, when I try to regenerate the AddressBookProtos.cs file and execute it, I encounter the following runtime problem.
Options:
L: List contents
A: Add new person
Q: Quit
Action? a
Exception executing action: System.TypeInitializationException: The type initializer
for 'Google.ProtocolBuffers.Examples.AddressBook.AddressBook' threw an exception. --->
System.TypeInitializationException: The type initializer
for 'Google.ProtocolBuffers.Examples.AddressBook.AddressBookProtos' threw an exception. --->
System.ArgumentException: Invalid embedded descriptor for "tutorial/addressbook.proto". --->
Google.ProtocolBuffers.Descriptors.DescriptorValidationException: tutorial/addressbook.proto:
Dependencies passed to FileDescriptor.BuildFrom() don't match those listed in the
FileDescriptorProto.
at Google.ProtocolBuffers.Descriptors.FileDescriptor.BuildFrom(FileDescriptorProto proto,
FileDescriptor[] dependencies)
at Google.ProtocolBuffers.Descriptors.FileDescriptor.InternalBuildGeneratedFileFrom(Byte[]
descriptorData, FileDescriptor[] dependencies, InternalDescriptorAssigner descriptorAssigner)
I tried to generate the AddressBookProtos.cs from protobuf-csharp-port-2.4.1.473-release-binaries, using protos\tutorial\addressbook.proto but it seems to be missing the namespace and umbrella_classname options. Also, the version numbers listed in src\AddressBook\AddressBookProtos.cs that came in protobuf-csharp-port-2.4.1.473-source says it is "2.3.0.277".