Code Monkey home page Code Monkey logo

dd4t.providers.sdlweb8.cil's People

Contributors

ehenderiks avatar guzzter avatar quirijnslings avatar rsleggett avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dd4t.providers.sdlweb8.cil's Issues

Incorrect reference to SDL Web 8.3.0

I think there is a bug in the latest stable release (2.2.0). The packages.config contains a reference to Sdl.Web.Delivery 8.3.0 but the Nuspec has a reference to 8.2.0. As a result, the DLL is built against a higher version than it actually gets at run time, and crashes with: Could not load file or assembly 'Tridion.ContentDelivery, Version=8.3.0.1003, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b' or one of its dependencies.
It can be fixed by upgrading the Sdl.Web.Delivery package, but this should not be necessary.

SDL Web 8.1 - Failed to execute query ---> System.NullReferenceException: Object reference not set to an instance of an object

Hi All,

We are facing intermittent issue of website down only on one presentation server. We have two presentation server but website is getting down only on one server with below errors in website log file. We are using SDL Web 8.1 with DD4T 2.1.

has anyone also got this error. Any help would be highly appreciated.

23:58:54.596|ERROR|Failed to execute query Sdl.Web.Delivery.Service.ServiceQueryException: Failed to execute query ---> System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.OData.Client.ClientEdmModel.<>c__DisplayClass19.b__d(IEdmSchemaElement et) at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate) at Microsoft.OData.Client.ClientEdmModel.GetOrCreateEdmTypeInternal(IEdmStructuredType edmBaseType, Type type, PropertyInfo[] keyProperties, Boolean isEntity, Nullable1 hasProperties)
at Microsoft.OData.Client.ClientEdmModel.GetOrCreateEdmType(Type type)
at Microsoft.OData.Client.DataServiceContext.IsSingletonTypeTElement
at Microsoft.OData.Client.DataServiceContext.Execute[TElement](Uri requestUri, String httpMethod, OperationParameter[] operationParameters)
at Sdl.Web.Delivery.Service.ODataV4Service.<>c__DisplayClass15_11.b__1() at Sdl.Web.Delivery.Service.ODataV4Service.<>c__DisplayClass15_01.b__0()
--- End of inner exception stack trace ---
at Sdl.Web.Delivery.Service.AbstractODataService.HandleException(Exception e)
at Sdl.Web.Delivery.Service.ODataV4Service.<>c__DisplayClass15_01.b__0() at Sdl.Web.Delivery.Service.Utils.PerformRetry[T](Func1 block, Int32 retryCount)
at Sdl.Web.Delivery.Service.Utils.Retry[T](Func1 block, Int32 retryCount, Boolean locking) at Sdl.Web.Delivery.Dynamic.ComponentPresentationFactory.ExecuteComponentPresentationMetaDAOMethod(Int32 publicationId, String methodName, Object[] parameters) at Sdl.Web.Delivery.Dynamic.ComponentPresentationFactory.RetrieveComponentPresentation(Int32 paramPublicationId, String methodName, Object[] parameters) at Tridion.ContentDelivery.DynamicContent.ComponentPresentationFactory.GetComponentPresentationWithHighestPriority(Int32 componentId) at DD4T.Providers.SDLWeb8.CIL.TridionComponentPresentationProvider.GetContent(String uri, String templateUri) at DD4T.Factories.ComponentPresentationFactory.TryGetComponentPresentation(IComponentPresentation& cp, String componentUri, String templateUri) at DD4T.Factories.ComponentPresentationFactory.b__14_0(String c) at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at DD4T.Factories.ComponentPresentationFactory.FindComponentPresentations(IQuery queryParameters)
at DD4T.Factories.ComponentFactory.FindComponents(IQuery queryParameters)
at XXX.GetConfigurationComponent(ComponentType configurationComponentType, Int32 publicationId)
at XXX.GetConfigurationComponent(ComponentType componentType)
at XXX.PageContext.GetDynamicComponent(String name)
at XXX.PageContext.GetMetricsScripts(MetricsScriptsLocation location)
at ASP._XXX_cshtml.Execute() in e:\XXX\XXX\abc.cshtml:line 87
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
at System.Web.WebPages.StartPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult)

Thanks,
Neha

Implement IDependencyMapper interface

Class should contain the defaults that will be set by on of the DD4T.DI.*

Example:

var mappings = new Dictionary<Type, Type>();
mappings.Add(typeof(IMessageProvider), typeof(JMSMessageProvider));

return mappings;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.