IIS Stands for "Internet Information Services." IIS is a web server software package designed for Windows Server. It is used for hosting websites and other content on the Web. Microsoft's Internet Information Services provides a graphical user interface (GUI) for managing websites and the associated users.
Question:App_Offline.htm page not working instead showing "The service is unavailable" ?
Description:I have setup App_Offline.htm page but when I try to enable this page it shows the message "The service is unavailable" instead of displaying the actual App_Offline.htm page. I have setup the page by looking at the following link, setup the App_Offline.htm page
Posted by: Umer khan | Posted on: Oct 03, 2022
Question:IIS URL Rewrite rule for redirect http to https and non-www to www using web.config?
Description:Basically I need two separate IIS URL Rewrite rule for my website, one for redirecting visitors from http to https and the other one for redirecting visitors from non-www to www using web.config Previously I was using the solution which was for working fine for me with http but now I have setup the ssl so now I have tried updating the same code but I am having issues with it.
Posted by: Junaid Aziz | Posted on: Apr 01, 2022
Question:Your connection isn't private Attackers might be trying to steal your information from mydomain.com (for example, passwords, messages, or credit cards)?
Description:I am getting following error while I have just installed new ssl certificates for my domain and now I have verified on other machines the website is working fine on multiple other machines but it is only causing this issue on my machine, initially I thought that might be some sort of cache issue but I have tried this on multiple browsers and tried using the incognito windows as well but still with no luck. Error details: Your connection isn't private Attackers might be trying to steal your information from mydomin.com (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID
Posted by: Junaid Aziz | Posted on: Mar 30, 2022
Question:how to increase default session timeout for asp.net mvc site using web.config?
Description:Currently my site’s session expires a bit quickly while my site contains some huge forms for users to fill out so I wanted to increase the session timeout for the users to get enough time.
Posted by: Khalid Abbas | Posted on: Mar 18, 2022
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:How to setup a redirect from non-www to www (http) for asp.net mvc application preferably using web.config rewrite rules?
Description:I have a website built on asp.net mvc deployed using the latest iis version, where I have URL Rewrite module installed. I have already tried some rewrite rules but found some wrong redirects so I have removed it, now need some urgent workaround as it is current affecting live site!
Posted by: Umer khan | Posted on: Jan 07, 2020
Question:How to know whether the website was built using sitecore ?
Description:I want to detect if any website was built using sitecore while I don't have access for the site i.e I am visiting the website as a general user of the website, is it possible ?
Posted by: Sam Smith | Posted on: Aug 08, 2019
Question:Data at the root level is invalid. Line 1, position 1.
Description:I am getting following error on a website developed using sitecore 9 and already hosted on my local environment and was working until I have just installed another instance of website using sitecore 9.1 the site previously working fine,started throwing following error. Server Error in '/' Application. Data at the root level is invalid. Line 1, position 1. 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.Xml.XmlException: Data at the root level is invalid. Line 1, position 1. 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: [XmlException: Data at the root level is invalid. Line 1, position 1.] System.Xml.XmlTextReaderImpl.Throw(Exception e) +88 System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() +6683419 System.Xml.XmlTextReaderImpl.ParseDocumentContent() +336 System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) +60 System.Xml.Linq.XDocument.Parse(String text, LoadOptions options) +147 SolrNet.Impl.SolrCoreAdmin.Status() +67 Sitecore.ContentSearch.SolrProvider.SolrStatus.OkSolrStatus() +73 Sitecore.ContentSearch.SolrProvider.SolrStatus..cctor() +72 [TypeInitializationException: The type initializer for 'Sitecore.ContentSearch.SolrProvider.SolrStatus' threw an exception.] Sitecore.ContentSearch.SolrProvider.SolrStatus.SetIndexForInitialization(ISearchIndex solrIndex) +0 Sitecore.ContentSearch.SolrProvider.SolrSearchIndex.SetForReinitialization() +202 Sitecore.ContentSearch.SolrProvider.SolrSearchIndex.InitializeSolr() +129 Sitecore.ContentSearch.SolrProvider.SolrSearchIndex.Initialize() +46 Sitecore.ContentSearch.SolrProvider.SolrContentSearchManager.Initialize() +169 Sitecore.ContentSearch.SolrProvider.SolrNetIntegration.DefaultSolrStartUp.Initialize() +913 (Object , Object[] ) +71 Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +469 Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22 Sitecore.Nexus.Web.HttpModule.Application_Start() +161 Sitecore.Nexus.Web.HttpModule.Init(HttpApplication app) +764 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +570 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +169 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +372 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +329 [HttpException (0x80004005): The type initializer for 'Sitecore.ContentSearch.SolrProvider.SolrStatus' threw an exception.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +525 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +118 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +708 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2633.0
Posted by: Sam Smith | Posted on: Jul 31, 2019
Question:Made a fresh deployment of a site developed using sitefinity ,its backend started throwing "IIS Detailed Error - 404.0 - Not Found"
Description:I have a task to deploy an old sitefinity project, developed on sitefinity 7 and I have deployed it successfully but when I went to its backend link to verify that everything is working fine , unfortunately its backend started throwing "IIS Detailed Error - 404.0 - Not Found" and it doesn't allow me to go on any backend link.
Posted by: Sam Smith | Posted on: Jul 02, 2019
Question:how to setup a "website down for maintenance" page for any major updates in a asp.net (MVC) website?
Description:I have to deploy some major updates in my website build on asp.net MVC and I can't afford to let my site running during the deployment so I need to setup a page which can be displayed during deployment or the site's down time. preferable I need some settings in web.config or at IIS level so that I can easily remove that maintenance page immediately once the deployment process completed.
Posted by: Umer khan | Posted on: Jun 21, 2019