locked
httpHandlers giving me a 500 server error. RRS feed

  • Question

  • User768500186 posted

    Hello all.

    I have just migrated our company website and were now on asp.net 4.5 with asp enabled (no idea of previous settings, but site is very old and only has 4 month left before its replacement is live.

    My web.config file has the following in it.  Just using the connection strings allow for the site to work.  When I add in the httpHandlers we get a 500 uinternal server error.

    Any ideas?

    Many thanks....Mike

    <?xml version="1.0"?>
    <!--
        Note: As an alternative to hand editing this file you can use the
        web admin tool to configure settings for your application. Use
        the Website->Asp.Net Configuration option in Visual Studio.
        A full list of settings and comments can be found in
        machine.config.comments usually located in
        \Windows\Microsoft.Net\Framework\v2.x\Config
    -->
    <configuration>
     <appSettings/>
     <connectionStrings>
        <add name="pumpsdb" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\PumpEngineeringDatabase.mdb;Persist Security Info=True" providerName="System.Data.OleDb" />
     </connectionStrings>
     <system.web>
      <!--
                Set compilation debug="true" to insert debugging
                symbols into the compiled page. Because this
                affects performance, set this value to true only
                during development.
            -->
      <compilation debug="true"/>
      <!--
                The <authentication> section enables configuration
                of the security authentication mode used by
                ASP.NET to identify an incoming user.
            -->
      <authentication mode="Windows"/>
      <!--
                The <customErrors> section enables configuration
                of what to do if/when an unhandled error occurs
                during the execution of a request. Specifically,
                it enables developers to configure html error pages
                to be displayed in place of a error stack trace.
        -->
            <customErrors mode="RemoteOnly" defaultRedirect="~/error404.aspx">
                <error statusCode="404" redirect="~/error404.aspx" />
            </customErrors>
           
        <httpHandlers>
          <add verb="*" path="details/*/*/*.aspx" type="DetailsPageHandler" validate="false" />
          <add verb="*" path="details/*/*/*.aspx" type="DetailsPageHandler" validate="false" />
        </httpHandlers>
     </system.web>
    </configuration>

    Monday, August 1, 2016 4:09 PM

All replies