I had this error in a deployment package for the CD = Content Delivery Server.
Exception Details: Sitecore.Exceptions.ConfigurationException: Could not create instance of type: Sitecore.Data.Database. No matching constructor was found.
Source Error:
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446
Server Error in '/' Application.
Could not create instance of type: Sitecore.Data.Database. No matching constructor was found.
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: Sitecore.Exceptions.ConfigurationException: Could not create instance of type: Sitecore.Data.Database. No matching constructor was found.
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:
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446
Solution Info:
One thing we were sure that this is something to do with master DB only. So, we started looking at config file’s under App_Config folder and here’s our HERO — Sitecore.Buckets.config:
1
2
3
4
5
6
7
8
9
10
11
12
13
| < databases > < database id = "master" singleInstance = "true" type = "Sitecore.Data.Database, Sitecore.Kernel" > < Engines.DataEngine.Commands.AddFromTemplatePrototype > < obj type = "Sitecore.Buckets.Commands.AddFromTemplateCommand, Sitecore.Buckets" /> </ Engines.DataEngine.Commands.AddFromTemplatePrototype > </ database > < database id = "web" singleInstance = "true" type = "Sitecore.Data.Database, Sitecore.Kernel" > < Engines.DataEngine.Commands.AddFromTemplatePrototype > < obj type = "Sitecore.Buckets.Commands.AddFromTemplateCommand, Sitecore.Buckets" /> </ Engines.DataEngine.Commands.AddFromTemplatePrototype > </ database > </ databases > < events > |
So, we commented out master DB’s Configuration and here’s how it looks like:
1
2
3
4
5
6
7
8
9
10
11
12
| < databases > <!--<database id="master" singleInstance="true" type="Sitecore.Data.Database, Sitecore.Kernel"> <Engines.DataEngine.Commands.AddFromTemplatePrototype> <obj type="Sitecore.Buckets.Commands.AddFromTemplateCommand, Sitecore.Buckets" /> </Engines.DataEngine.Commands.AddFromTemplatePrototype> </database>--> < database id = "web" singleInstance = "true" type = "Sitecore.Data.Database, Sitecore.Kernel" > < Engines.DataEngine.Commands.AddFromTemplatePrototype > < obj type = "Sitecore.Buckets.Commands.AddFromTemplateCommand, Sitecore.Buckets" /> </ Engines.DataEngine.Commands.AddFromTemplatePrototype > </ database > </ databases > |
And Yes, It resolved our error,
Comments
Post a Comment
a new comment