Question:remove server information from response header using web.config in different versions of IIS?
Description:I have different sites hosted on multiple environments one is using IIS 8 and the other one is using IIS 10 , I wanted to remove the server information from the response header using web.config and currently I am using following URL Rewrite Outbound rule but unfortunately it is not working in any of the environment. <rewrite> <outboundRules rewriteBeforeCache="true"> <rule name="Remove Server header"> <match serverVariable="RESPONSE_Server" pattern=".+" /> <action type="Rewrite" value="" /> </rule> </outboundRules> </rewrite>
Posted by: Khalid Abbas | Posted on: Mar 17, 2022
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:Display text vertically readable from bottom to top using css?
Description:Needed to display one of my page’s heading vertically and it should be readable from bottom to top of the screen. Currently my html looks like the following one, any help would be appreciated. <h2 class="vertical-heading">About Us</h2>
Posted by: Umer khan | Posted on: Jan 03, 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:is it possible to limit text to specified N number of lines using css?
Description:I wanted to limit text to let say 3 lines and all the text exceeding 3 lines should be cropped or hidden and content should show … at the end of the content/text, is it possible through css
Posted by: Umer khan | Posted on: Dec 20, 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
Question:"Sitecore: Value cannot be null. Parameter name uri" error makes items inaccessible in sitecore cms backend
Description:we are using sitecore 8.1 and while using the cms backend our content team have raised some issue that they have mistakenly updated some wrong value in the "__Source Item" field of an item and after that the even the home item in that tree is inaccessible and throwing the following error Sitecore: Value cannot be null. Parameter name uri Note: previous value for the "__Source Item" was empty and it was unintentionally updated
Posted by: Sam Smith | Posted on: Sep 13, 2021
Question:NuGet Package restore failed/build failed for my project on new visual studio instance
Description:I have just installed the latest visual studio 2019 (Community Edition) , just pull my project on a new machine which is working fine on another machine but now I am getting following error on some of the nuget packages.(I have checked that these packages are not downloaded) Severity Code Description Project File Line Suppression State Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105
Posted by: Khalid Abbas | Posted on: Jun 15, 2021
Question:How to get the time difference between utc time and local time in C#?
Description:I have .net base website which currently have server time zone set to GMT+5, I need to extract that 5 from it dynamically so that once I change the time zone of the server or deploy the same site on another sever with different time zone, I should be able to extract that time difference in that case.
Posted by: Umer khan | Posted on: Sep 11, 2020