Sitecore is a Web Content Management System (CMS) built on Microsoft ASP.net. This tag is for sitecore version 10.0
Question:How to insert data into sitecore forms programmatically through c# code with custom MVC form ?
Description:I need to insert form data into sitecore experience forms with sitecore 9 and above. I need to create completely custom mvc form and yet insert its data into sitecore forms module.
Posted by: Junaid Aziz | Posted on: Mar 30, 2023
Question:sitecore unicorn access denied even after login with administrator
Description:I am keep getting the following error even after login with administrator it redirects to the unicorn.aspx page with the same error Access Denied You need to sign in to Sitecore as an administrator to use the Unicorn control panel. Note: I have tried this with two different versions sitecore 9.3 and sitecore 10 because I have these version already installed on my machine but both version having the same issue. Mainly I am looking to make it working with sitecore 10 and unicorn version 4.1.6
Posted by: Sam Smith | Posted on: Jan 14, 2022
Question:Method not found: 'System.Web.HttpContext Sitecore.Pipelines.HttpRequest.HttpRequestArgs.get_Context()' with sitecore 10?
Description:I have sitecore 10 instance and I have just pushed my code to that instance and now I am keep getting the following error Method not found: 'System.Web.HttpContext Sitecore.Pipelines.HttpRequest.HttpRequestArgs.get_Context()'. 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: System.MissingMethodException: Method not found: 'System.Web.HttpContext Sitecore.Pipelines.HttpRequest.HttpRequestArgs.get_Context()'. 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: [MissingMethodException: Method not found: 'System.Web.HttpContext Sitecore.Pipelines.HttpRequest.HttpRequestArgs.get_Context()'.] Unicorn.ControlPanel.UnicornControlPanelPipelineProcessor.Process(HttpRequestArgs args) +0 (Object , Object ) +14 Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +490 Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists) +236 Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22 Sitecore.Web.RequestEventsHandler.OnPostAuthenticateRequest(HttpContextBase context) +218 Sitecore.Nexus.Web.HttpModule.(Object , EventArgs ) +185 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +223 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +94
Posted by: Junaid Aziz | Posted on: Dec 22, 2021
Question:Sitecore 10 Installation Error: Failed to Start Service 'Sitecore Marketing Automation Engine' while another instance of sitecore 9.0.2 also running on my system
Description:Note: I have multiple solr installed on my local environment one is for previous version and now I have added solr for sitecore 10 on port 8984 So my solr path for the sitecore 10 is https://localhost:8984/solr/ I am keep getting the same error and I have tried following steps fix the issue with no luck -we have tried removing all the certificates expect the certificate for solr -we have tried uninstall and reinstall the iis -Have enabled all the iis feature that are required -Tired running the following script with no result Get-Childitem cert:\LocalMachine\root -Recurse | Where-Object {$.Issuer -ne $.Subject} also tried the solution mention in the following links as well with no luck at all. https://sitecore.stackexchange.com/questions/27214/sitecore-9-3-installation-failing-failed-to-start-the-marketing-automation-en https://sitecore.stackexchange.com/questions/27643/failed-to-start-the-marketing-automation-engine-service-installation-sitecore https://sitecore.stackexchange.com/questions/20728/getting-error-failed-to-start-the-marketing-automation-engine-service-while Note: I am updating the errors that are shown under logs file on this location:App_Data\jobs\continuous\AutomationEngine\App_Data\Logs Error1: Error initializing XConnect client. System.AggregateException: One or more errors occurred. ---> Sitecore.XConnect.XdbCollectionUnavailableException: An error occurred while sending the request. ---> Sitecore.Xdb.Common.Web.ConnectionTimeoutException: A task was canceled. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled. at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Sitecore.Xdb.Common.Web.CommonWebApiClient`1.d__47.MoveNext() --- End of inner exception stack trace --- Error2: Failed to start the Marketing Automation Engine service. System.InvalidOperationException: This configuration has not been initialized. Please call the initialize method before using it. at Sitecore.XConnect.Client.XConnectClientConfiguration.CheckInitialized() at Sitecore.XConnect.Client.XConnectClientConfiguration.get_CurrentModel() at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider) at Sitecore.XConnect.Configuration.Extensions.<>c__DisplayClass33_0.b__1(IServiceProvider provider) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitTransient(TransientCallSite transientCallSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) at Sitecore.Xdb.MarketingAutomation.Engine.App.ServiceConfiguration.get_Engine() at Sitecore.Xdb.MarketingAutomation.Engine.App.EngineService.OnStart(String[] args)
Posted by: Tabish Usman | Posted on: Nov 24, 2021
Question:How to switch between different versions of SitecoreInstallFramework without removing the other one?
Description:I have installations of sitecore 9 and sitecore 10 on the same machine for which I have SitecoreInstallFramework 1.2.1 and SitecoreInstallFramework 2.3.0 installed on machine and now I need to install another instance of sitecore 9 the older version on my machine, so I need to use the SitecoreInstallFramework 1.2.1 by keeping the other version (SitecoreInstallFramework 2.3.0) in place as well.
Posted by: Sam Smith | Posted on: Nov 18, 2021