Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Friends,

whenever i open my site its showing my default.aspx page, but if i click other modules in address bar url changing according selected module but page not redirecting still its showing default.aspx page.

in web.config i check the redirection path is default.aspx if the error 403 error.

Means how i find my error for resolve?

please find below my web config setting where i did wrong?

XML
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <configSections>
	<sectionGroup name="system.web">
      <section name="nevis.ninnet" type="System.Configuration.NameValueSectionHandler,System,Version=1.0.5000.0,Culture=neutral,PublicKeyToken=b77a5c561934e089" />
    </sectionGroup>
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
    <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    <section name="dataValidation" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Validation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </configSections>
<loggingConfiguration name="Logging Application Block" tracingEnabled="true" defaultCategory="STATLINK" logWarningsWhenNoCategoriesMatch="true">
<system.web>
<globalization requestEncoding="UTF-8" responseEncoding="UTF-8" />
    <nevis.ninnet>
        <add key="verifierCert" value="file://./keystore/authSigner.pem" />
        <!--<add key="devMode" value="true" /> 
<add key="devPassword" value="test" /> 
<add key="devTokenSignerCert" value="file://./keystore/authSigner.pfx" /> 
<add key="DevTokenSignerKeyPassphrase" value="password" />-->
<!--<add key="devTokenSignerCert" value="csp://CurrentUser/My?friendlyName=signer" />-->
<!--<add key="verifierCert" value="csp://LocalMachine/My;csp://LocalMachine/Root"/>-->
<add key="noSecTokenRedirectURL" value="/missing.html" /> 
<add key="tokenValidationErrorRedirectURL" value="/invalid.html" /> 
<add key="staticRoles" value="" />
<!--<add key="enforcedTokenPaths" value="/secured" />-->
        <add key="enforcedTokenPaths" value="/secured/Login_abc.aspx" />
        <add key="relaxedTokenPaths" value="/" />
      </nevis.ninnet>
<authentication mode="Forms">
 <forms loginUrl="Default.aspx" name=".ASPXAUTH" protection="All" />
</authentication>
	<authorization>
        <deny users="?" />
</authorization>
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
      <identity impersonate="false" />
    <httpRuntime executionTimeout="12000" maxRequestLength="14096" />

<compilation debug="true" targetFramework="4.0"> 
<assemblies> 
<add assembly="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
<!--<add assembly="MSDATASRC, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />--> 
<add assembly="Microsoft.Vsa, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
<add assembly="System.Net, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
<add assembly="System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
<add assembly="Microsoft.JScript, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
<add assembly="System.Runtime.Serialization.Formatters.Soap, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
</assemblies> 
<buildProviders> 
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> 
</buildProviders> 
</compilation> 
   <customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.aspx">
            <error statusCode="400" redirect="ErrorPage.aspx" />
            <error statusCode="401" redirect="ErrorPage.aspx" />
            <error statusCode="403" redirect="ErrorPage.aspx" />
            <error statusCode="404" redirect="ErrorPage.aspx" />
            <error statusCode="500" redirect="ErrorPage.aspx" />      
      </customErrors>
      <machineKey validation="3DES" />
<!-- <customErrors mode="Off" /> -->
<pages styleSheetTheme="Default" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> 
      <controls>
     <add tagPrefix="ajax" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" />
      </controls>
    </pages>
    <!-- Following block is for the implementation of SQL Cache Dependency-->
        </system.web>
<system.webServer>
	 <modules>
      <add type="Nevis.NinNet.Auth.SecTokenAuthenticationModule, Nevis.NinNet" name="Nevis.NinNet" />
    </modules>
  <defaultDocument>
      <files>
        <remove value="default.aspx" />
        <remove value="Default.htm" />
        <remove value="Default.asp" />
        <remove value="index.htm" />
        <remove value="index.html" />
        <remove value="iisstart.htm" />
                <add value="AccessDenied.htm" />
        <add value="Default.aspx" />
      </files>
    </defaultDocument>
        <httpRedirect enabled="false" destination="http://statlink-uat" exactDestination="true" httpResponseStatus="Permanent" />
<httpProtocol>
            <customHeaders>
                <add name="X-Frame-Options" value="SAMEORIGIN" />
            </customHeaders>
        </httpProtocol>
<httpErrors errorMode="Custom">
      <remove statusCode="403" subStatusCode="-1" />
      <remove statusCode="500" subStatusCode="-1" />
      <error statusCode="403"  path="http://statlink-uat" responseMode="Redirect" />
      <error statusCode="403" subStatusCode="1" path="http://statlink-uat" responseMode="Redirect" />
      <error statusCode="403" subStatusCode="2" path="http://statlink-uat" responseMode="Redirect" />
      <error statusCode="403" subStatusCode="3" path="http://statlink-uat" responseMode="Redirect" />
      <error statusCode="403" subStatusCode="4" path="http://statlink-uat" responseMode="Redirect" />
      <error statusCode="500" prefixLanguageFilePath="" path="http://emaintenance" responseMode="Redirect" />
    </httpErrors>
  </system.webServer>
<system.net>
    <mailSettings>
      <smtp deliveryMethod="Network">
        <network defaultCredentials="true" host="" port="" />
      </smtp>
    </mailSettings>
  </system.net>
</configuration>


thanks & best regards
g.renga
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900