+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / "You are not authorized to view this page due to invalid authentication headers."

"You are not authorized to view this page due to invalid authentication headers."

10 posts, 0 answered
  1. G S S
    G S S avatar
    71 posts
    Registered:
    16 Mar 2008
    10 Dec 2009
    Link to this post
    Hi,

    I am posting this error here as I am still in the installation stage of Sitefinity.

    Having installed the CMS, I get this error when I navigate to the CMS (http://localhost/Telerik/Sitefinity3.7).

    HTTP Error 401.2 - Unauthorized

    You are not authorized to view this page due to invalid authentication headers.


    I read this page (http://www.sitefinitywatch.com/blog/09-05-04/Bullet_Proof_Guide_to_Installing_Sitefinity_3_x.aspx) and it had info on this error:

    401 - Unauthorized: Access is denied due to invalid credentials.
    You do not have permission to view this directory or page using the credentials that you supplied.

    Ensure that Windows Authentication has been enabled in IIS and login as Administrator



    This has been enabled.

    One other thing: I haven't yet installed SQL Server but the connection striing is set for the site (can be edited in IIS Manager). If I change this, and make the DBs, are there any ill/knock on effects?


    Thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    10 Dec 2009
    Link to this post
    Hi G S S,

     Please take a look at the following forum posts

    http://www.sitefinity.com/support/forums/sitefinity-3-x/bugs-issues/sitefinity-error.aspx

    http://www.sitefinity.com/support/forums/sitefinity-3-x/set-up-installation/install-error-iis-7.aspx

    During the installation process you will be asked for database location and credential details, so you should better install SQL Server 2005/2008 or SQL Express.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. G S S
    G S S avatar
    71 posts
    Registered:
    16 Mar 2008
    12 Dec 2009
    Link to this post
    Hi,

    I added the Windows Authentication Module, with the code being "System.Web.Security...." (the namespace it seems). However, this is a managed module and above that is the same moduled (Windows Authentication Module), but is native (essentially what I had to add). I can't configure individual native modules and I can only add managed modules - no option to add native modules. Bare in mind this is IIS 7.5.

    Also, I have the following authentication modules listed in IIS Manager > Authentication:

    Windows Authentication HTTP 401 Challenge (Advanced Settings can be used to turn off extended protection to get rid of this error)
    ASP.NET Authentication
    Anonymous Authentication

    The error I now get is:

    HTTP Error 500.21 - Internal Server Error

    Handler "AboMapperCustom-12234409" has a bad module "IsapiModule" in its module list


    Thanks
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    13 Dec 2009
    Link to this post
    Hello G S S,

    The problem seems to be  missing entries in application web.config file - applicationHost.config file (in c:\windows\system32\inetserv\config). Take a look at <modules> section. There should be entries in both system.webserver and system.web for handlers. The problem is not related to Sitefinity, you have a problem with your IIS server.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. G S S
    G S S avatar
    71 posts
    Registered:
    16 Mar 2008
    18 Dec 2009
    Link to this post
    Hi,

    Both elements have the WindowsAuthentication module. System.Webserver:

        <modules>
                <add name="HttpCacheModule" lockItem="true" />
                <add name="StaticCompressionModule" lockItem="true" />
                <add name="DefaultDocumentModule" lockItem="true" />
                <add name="DirectoryListingModule" lockItem="true" />
                <add name="ProtocolSupportModule" lockItem="true" />
                <add name="StaticFileModule" lockItem="true" />
                <add name="AnonymousAuthenticationModule" lockItem="true" />
                <add name="RequestFilteringModule" lockItem="true" />
                <add name="CustomErrorModule" lockItem="true" />
                <add name="HttpLoggingModule" lockItem="true" />
                <add name="ConfigurationValidationModule" lockItem="true" />
                <add name="CustomLoggingModule" lockItem="true" />
                <add name="FailedRequestsTracingModule" lockItem="true" />
                <add name="WindowsAuthenticationModule" lockItem="true" />
            </modules>


     <globalModules>
                <add name="UriCacheModule" image="%windir%\System32\inetsrv\cachuri.dll" />
                <add name="FileCacheModule" image="%windir%\System32\inetsrv\cachfile.dll" />
                <add name="TokenCacheModule" image="%windir%\System32\inetsrv\cachtokn.dll" />
                <add name="HttpCacheModule" image="%windir%\System32\inetsrv\cachhttp.dll" />
                <add name="StaticCompressionModule" image="%windir%\System32\inetsrv\compstat.dll" />
                <add name="DefaultDocumentModule" image="%windir%\System32\inetsrv\defdoc.dll" />
                <add name="DirectoryListingModule" image="%windir%\System32\inetsrv\dirlist.dll" />
                <add name="ProtocolSupportModule" image="%windir%\System32\inetsrv\protsup.dll" />
                <add name="StaticFileModule" image="%windir%\System32\inetsrv\static.dll" />
                <add name="AnonymousAuthenticationModule" image="%windir%\System32\inetsrv\authanon.dll" />
                <add name="RequestFilteringModule" image="%windir%\System32\inetsrv\modrqflt.dll" />
                <add name="CustomErrorModule" image="%windir%\System32\inetsrv\custerr.dll" />
                <add name="HttpLoggingModule" image="%windir%\System32\inetsrv\loghttp.dll" />
                <add name="RequestMonitorModule" image="%windir%\System32\inetsrv\iisreqs.dll" />
                <add name="ConfigurationValidationModule" image="%windir%\System32\inetsrv\validcfg.dll" />
                <add name="ManagedEngine64" image="%windir%\Microsoft.NET\Framework64\v2.0.50727\webengine.dll" preCondition="integratedMode,runtimeVersionv2.0,bitness64" />
                <add name="ManagedEngine" image="%windir%\Microsoft.NET\Framework\v2.0.50727\webengine.dll" preCondition="integratedMode,runtimeVersionv2.0,bitness32" />
                <add name="CustomLoggingModule" image="%windir%\System32\inetsrv\logcust.dll" />
                <add name="TracingModule" image="%windir%\System32\inetsrv\iisetw.dll" />
                <add name="FailedRequestsTracingModule" image="%windir%\System32\inetsrv\iisfreb.dll" />
                <add name="WindowsAuthenticationModule" image="%windir%\System32\inetsrv\authsspi.dll" />
            </globalModules>


    There is no system.web element. Should I just add it to the end and use the above modules (adding both modules and global modules)?
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    19 Dec 2009
    Link to this post
    Hello G S S,

    Below is a sample configuration that represents this section in Windows Vista

    <system.webServer>
        <handlers accessPolicy="Read, Script">
            <add name="rules-Integrated" path="*.rules" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode" />
            <add name="rules-ISAPI-2.0" path="*.rules" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
            <add name="xoml-Integrated" path="*.xoml" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode" />
            <add name="xoml-ISAPI-2.0" path="*.xoml" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
            <add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" />
            <add name="SecurityCertificate" path="*.cer" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" />
            <add name="ISAPI-dll" path="*.dll" verb="*" modules="IsapiModule" resourceType="File" requireAccess="Execute" allowPathInfo="true" />
            <add name="TraceHandler-Integrated" path="trace.axd" verb="GET,HEAD,POST,DEBUG" type="System.Web.Handlers.TraceHandler" preCondition="integratedMode" />
            <add name="WebAdminHandler-Integrated" path="WebAdmin.axd" verb="GET,DEBUG" type="System.Web.Handlers.WebAdminHandler" preCondition="integratedMode" />
            <add name="AssemblyResourceLoader-Integrated" path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader" preCondition="integratedMode" />
            <add name="PageHandlerFactory-Integrated" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode" />
            <add name="SimpleHandlerFactory-Integrated" path="*.ashx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory" preCondition="integratedMode" />
            <add name="WebServiceHandlerFactory-Integrated" path="*.asmx" verb="GET,HEAD,POST,DEBUG" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" preCondition="integratedMode" />
            <add name="HttpRemotingHandlerFactory-rem-Integrated" path="*.rem" verb="GET,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode" />
            <add name="HttpRemotingHandlerFactory-soap-Integrated" path="*.soap" verb="GET,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode" />
            <add name="AXD-ISAPI-2.0" path="*.axd" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
            <add name="PageHandlerFactory-ISAPI-2.0" path="*.aspx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
            <add name="SimpleHandlerFactory-ISAPI-2.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
            <add name="WebServiceHandlerFactory-ISAPI-2.0" path="*.asmx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
            <add name="HttpRemotingHandlerFactory-rem-ISAPI-2.0" path="*.rem" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
            <add name="HttpRemotingHandlerFactory-soap-ISAPI-2.0" path="*.soap" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
            <add name="CGI-exe" path="*.exe" verb="*" modules="CgiModule" resourceType="File" requireAccess="Execute" allowPathInfo="true" />
            <add name="SSINC-stm" path="*.stm" verb="GET,POST" modules="ServerSideIncludeModule" resourceType="File" />
            <add name="SSINC-shtm" path="*.shtm" verb="GET,POST" modules="ServerSideIncludeModule" resourceType="File" />
            <add name="SSINC-shtml" path="*.shtml" verb="GET,POST" modules="ServerSideIncludeModule" resourceType="File" />
            <add name="TRACEVerbHandler" path="*" verb="TRACE" modules="ProtocolSupportModule" requireAccess="None" />
            <add name="OPTIONSVerbHandler" path="*" verb="OPTIONS" modules="ProtocolSupportModule" requireAccess="None" />
            <add name="StaticFile" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="Either" requireAccess="Read" />
        </handlers>
        <modules>
            <add name="HttpCacheModule" lockItem="true" />
            <add name="DynamicCompressionModule" lockItem="true" />
            <add name="StaticCompressionModule" lockItem="true" />
            <add name="DefaultDocumentModule" lockItem="true" />
            <add name="DirectoryListingModule" lockItem="true" />
            <add name="IsapiFilterModule" lockItem="true" />
            <add name="ProtocolSupportModule" lockItem="true" />
            <add name="HttpRedirectionModule" lockItem="true" />
            <add name="ServerSideIncludeModule" lockItem="true" />
            <add name="StaticFileModule" lockItem="true" />
            <add name="AnonymousAuthenticationModule" lockItem="true" />
            <add name="CertificateMappingAuthenticationModule" lockItem="true" />
            <add name="UrlAuthorizationModule" lockItem="true" />
            <add name="BasicAuthenticationModule" lockItem="true" />
            <add name="DigestAuthenticationModule" lockItem="true" />
            <add name="WindowsAuthenticationModule" lockItem="true" />
            <add name="IISCertificateMappingAuthenticationModule" lockItem="true" />
            <add name="IpRestrictionModule" lockItem="true" />
            <add name="RequestFilteringModule" lockItem="true" />
            <add name="CustomLoggingModule" lockItem="true" />
            <add name="CustomErrorModule" lockItem="true" />
            <add name="IsapiModule" lockItem="true" />
            <add name="HttpLoggingModule" lockItem="true" />
            <add name="FailedRequestsTracingModule" lockItem="true" />
            <add name="CgiModule" lockItem="true" />
            <add name="FastCgiModule" lockItem="true" />
            <add name="ConfigurationValidationModule" lockItem="true" />
            <add name="OutputCache" type="System.Web.Caching.OutputCacheModule" preCondition="managedHandler" />
            <add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition="managedHandler" />
            <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" preCondition="managedHandler" />
            <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" preCondition="managedHandler" />
            <add name="DefaultAuthentication" type="System.Web.Security.DefaultAuthenticationModule" preCondition="managedHandler" />
            <add name="RoleManager" type="System.Web.Security.RoleManagerModule" preCondition="managedHandler" />
            <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" preCondition="managedHandler" />
            <add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" preCondition="managedHandler" />
            <add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" preCondition="managedHandler" />
            <add name="Profile" type="System.Web.Profile.ProfileModule" preCondition="managedHandler" />
            <add name="UrlMappingsModule" type="System.Web.UrlMappingsModule" preCondition="managedHandler" />
            <add name="RewriteModule" />
        </modules>
    </system.webServer>


    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. G S S
    G S S avatar
    71 posts
    Registered:
    16 Mar 2008
    19 Dec 2009
    Link to this post
    Hi,

    Thanks for the support. I have replaced the system.webserver element in my applicationHost config file with the version you provided.

    When I now go to http://localhost/telerik/Sitefinity3.7/Default.aspx via IIS (select Browse, open page in browser), I get this error:

    XML Parsing Error: no element found
    Location: http://localhost/telerik/Sitefinity3.7/Default.aspx
    Line Number 1, Column 1:

    Any idea why?
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    20 Dec 2009
    Link to this post
    Hi G S S,

    I suggest that you should start from the very beginning with the installation. You can take a look at the following posts - Bullet Proof Guide to Installing Sitefinity 3.x

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. G S S
    G S S avatar
    71 posts
    Registered:
    16 Mar 2008
    24 Dec 2009
    Link to this post
    Hi,

    I have no fixed everything (with the aid of a complete IIS reinstall).

    Also, how do I integrate the CMS with an existing site? Are there any articles on this? And how can I change the skin to one of the other skins and even make a template site with that skin (at the admin process there is the option to have a sample site with one of the skins).

    Thanks
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    25 Dec 2009
    Link to this post
    Hi G S S,

    Also, how do I integrate the CMS with an existing site? Are there any articles on this?

    Currently we do not have articles that explains integration with other websites. Sitefinity follows the structure of the standard ASP.NET application and you can easily create an integration with the other ASP.NET websites. If you need to integrate some communication between the websites you can use web services.

    And how can I change the skin to one of the other skins and even make a template site with that skin (at the admin process there is the option to have a sample site with one of the skins).


    If you are talking for the templates and themes  you can take a look at the following articles

    ASP.NET Master Pages Overview
    ASP.NET Themes and Skins Overview

    Let us know if there are any further questions.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
10 posts, 0 answered