Server Error in ‘/’ Application.
You must set the singleton ‘Umbraco.Core.Persistence.SqlSyntax.SqlSyntaxContext’ to use an sql syntax provider
Parameter name: SqlSyntaxProvider
در وب سایت ویندوزی خود مواجه شده باشید این خطا مربوط به فایل web.config می باشد.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
[ArgumentNullException: You must set the singleton 'Umbraco.Core.Persistence.SqlSyntax.SyntaxConfig' to use an sql syntax provider Parameter name: SqlSyntaxProvider] Umbraco.Core.Persistence.SqlSyntax.SyntaxConfig.get_SqlSyntaxProvider() +89 Umbraco.Core.Persistence.Mappers.BaseMapper.GetColumnName(Type dtoType, PropertyInfo dtoProperty) +57 Umbraco.Core.Persistence.Mappers.ContentMapper.Map(String propertyName) +67 Umbraco.Core.Persistence.Querying.ModelToSqlExpressionHelper`1.VisitMemberAccess(MemberExpression m) +112 Umbraco.Core.Persistence.Querying.ModelToSqlExpressionHelper`1.Visit(Expression exp) +101 Umbraco.Core.Persistence.Querying.ModelToSqlExpressionHelper`1.VisitBinary(BinaryExpression b) +258 Umbraco.Core.Persistence.Querying.ModelToSqlExpressionHelper`1.Visit(Expression exp) +159 Umbraco.Core.Persistence.Querying.ModelToSqlExpressionHelper`1.VisitLambda(LambdaExpression lambda) +120 Umbraco.Core.Persistence.Querying.ModelToSqlExpressionHelper`1.Visit(Expression exp) +72 Umbraco.Core.Persistence.Querying.Query`1.Where(Expression`1 predicate) +20 Umbraco.Core.Services.ContentService.GetChildren(Int32 id) +312 umbraco.cms.businesslogic.web.Document.GetChildrenForTree(Int32 NodeId) +39 umbraco.cms.presentation.Trees.BaseContentTree.Render(XmlTree& Tree) +27 umbraco.loadContent.Render(XmlTree& tree) +19 umbraco.presentation.webservices.TreeDataService.LoadTree(TreeRequestParams treeParams) +79 umbraco.presentation.webservices.TreeDataService.GetXmlTree() +140 umbraco.presentation.webservices.TreeDataService.ProcessRequest(HttpContext context) +55 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 |
برای رفع خطا بایستی umbraco db connection string خود را باید چک کنید.
در قسمت Connection String پیش از نام
1 |
<add name="umbracoDbDSN"....... |
محتوای زیر را اضافه کنید
1 |
providerName="System.Data.SqlClient" |
بدین صورت مشکل حل خواهد شد.