Initialization failed. Error : The type initializer for 'Telerik.Sitefinity.Localization.Res' threw an exception.
I have tried Using ASP.NET Web API for Sitefinity REST Services but when built and deployed I 'm getting Initialization failed with an error saying "The type initializer for 'Telerik.Sitefinity.Localization.Res' threw an exception".
Even after deleting the files that I have added same error exists and I'm unable to browse my projects. Screenshot attached.
I have followed the links below to do so.
Link1: blog.falafel.com/.../
Link2: docs.microsoft.com/.../tutorial-your-first-web-api
Any help on this is highly appreciated.
Thanks,
Santosh
Hi Santosh,
Can you please send Sitefinity error logs. You can find it here: \App_Data\Sitefinity\Logs
----------------------------------------
Timestamp: 5/23/2017 5:38:43 AM
Message: Timestamp: 5/23/2017 5:38:43 AM
Message: The type initializer for 'Telerik.Sitefinity.Localization.Res' threw an exception.
Category:
Priority: -1
EventId: 0
Severity: Critical
Title:
Machine: NBHYDSSRIRAM10
App Domain: /LM/W3SVC/1/ROOT-1-131399915214955698
ProcessId: 15032
Process Name: C:\Program Files (x86)\IIS Express\IISExpress.exe
Thread Name:
Win32 ThreadId:15004
Extended Properties:
Category: ErrorLog
Priority: -1
EventId: 1
Severity: Information
Title:
Machine: NBHYDSSRIRAM10
App Domain: /LM/W3SVC/1/ROOT-1-131399915214955698
ProcessId: 15032
Process Name: C:\Program Files (x86)\IIS Express\IISExpress.exe
Thread Name:
Win32 ThreadId:15004
Extended Properties:
----------------------------------------
Solution for this is here:
Thanks,
Santosh