The type initializer for 'Lucene.Net.Store.FSDirectory' threw an exception.
I tried to install Umbraco 7.15.5 version through Nuget in VS2017. After successful build, while trying to access load the site, getting the below error message.
Appreciate any help to resolve this issue.
```
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The type initializer for 'Lucene.Net.Store.FSDirectory' threw an exception.
Source Error:
Line 10:
Exception Details: System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
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:
[InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.]
System.Security.Cryptography.MD5CryptoServiceProvider..ctor() +5127483
[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.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +297
System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args) +781
System.Security.Cryptography.MD5.Create() +23
Lucene.Net.Store.FSDirectory..cctor() +498
[SystemException: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
at System.Security.Cryptography.MD5CryptoServiceProvider..ctor()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args)
at System.Security.Cryptography.MD5.Create()
at Lucene.Net.Store.FSDirectory..cctor()]
Lucene.Net.Store.FSDirectory..cctor() +945
[TypeInitializationException: The type initializer for 'Lucene.Net.Store.FSDirectory' threw an exception.]
Examine.LuceneEngine.<>cDisplayClass10_0.0(String s) in C:\projects\examine-qvx04\src\Examine\LuceneEngine\DirectoryTracker.cs:61
System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) +88
Examine.LuceneEngine.DirectoryTracker.GetDirectory(DirectoryInfo dir, Boolean throwIfEmpty) in C:\projects\examine-qvx04\src\Examine\LuceneEngine\DirectoryTracker.cs:59
Examine.LuceneEngine.Providers.LuceneIndexer.InitializeDirectory() in C:\projects\examine-qvx04\src\Examine\LuceneEngine\Providers\LuceneIndexer.cs:1806
Examine.LuceneEngine.Providers.LuceneIndexer.Initialize(String name, NameValueCollection config) in C:\projects\examine-qvx04\src\Examine\LuceneEngine\Providers\LuceneIndexer.cs:247
UmbracoExamine.BaseUmbracoIndexer.Initialize(String name, NameValueCollection config) +867
UmbracoExamine.UmbracoContentIndexer.Initialize(String name, NameValueCollection config) +338
System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType) +671
The type initializer for 'Lucene.Net.Store.FSDirectory' threw an exception.
I tried to install Umbraco 7.15.5 version through Nuget in VS2017. After successful build, while trying to access load the site, getting the below error message.
Appreciate any help to resolve this issue.
```
Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: The type initializer for 'Lucene.Net.Store.FSDirectory' threw an exception. Source Error: Line 10:
Exception Details: System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
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:
[InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.] System.Security.Cryptography.MD5CryptoServiceProvider..ctor() +5127483
[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.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +297 System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args) +781 System.Security.Cryptography.MD5.Create() +23 Lucene.Net.Store.FSDirectory..cctor() +498
[SystemException: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms. at System.Security.Cryptography.MD5CryptoServiceProvider..ctor() --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args) at System.Security.Cryptography.MD5.Create() at Lucene.Net.Store.FSDirectory..cctor()] Lucene.Net.Store.FSDirectory..cctor() +945
[TypeInitializationException: The type initializer for 'Lucene.Net.Store.FSDirectory' threw an exception.] Examine.LuceneEngine.<>cDisplayClass10_0.0(String s) in C:\projects\examine-qvx04\src\Examine\LuceneEngine\DirectoryTracker.cs:61 System.Collections.Concurrent.ConcurrentDictionary
2.GetOrAdd(TKey key, Func
2 valueFactory) +88 Examine.LuceneEngine.DirectoryTracker.GetDirectory(DirectoryInfo dir, Boolean throwIfEmpty) in C:\projects\examine-qvx04\src\Examine\LuceneEngine\DirectoryTracker.cs:59 Examine.LuceneEngine.Providers.LuceneIndexer.InitializeDirectory() in C:\projects\examine-qvx04\src\Examine\LuceneEngine\Providers\LuceneIndexer.cs:1806 Examine.LuceneEngine.Providers.LuceneIndexer.Initialize(String name, NameValueCollection config) in C:\projects\examine-qvx04\src\Examine\LuceneEngine\Providers\LuceneIndexer.cs:247 UmbracoExamine.BaseUmbracoIndexer.Initialize(String name, NameValueCollection config) +867 UmbracoExamine.UmbracoContentIndexer.Initialize(String name, NameValueCollection config) +338 System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType) +671```
In the bin folder can you check what version of lucene.net you have?
is working on a reply...