Unrecognized configuration section system.web/neatUpload.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Unrecognized configuration section system.web/neatUpload.

dougm

Hi Dean, I'm getting this error:

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized configuration section system.web/neatUpload.

Source Error:


Line 144:    <system.web>
Line 145:    <httpRuntime maxRequestLength="51200" executionTimeout="1800"/>
Line 146:      <neatUpload useHttpModule="true" />
Line 147:    </system.web>
Line 148:  </location>

The error occures when:

using the "Preview in Browser" option in Visual Studio (2008)

and when trying to browse to the page when it's been uploaded to my hosting server (discountasp.net .net web hosting) - which is WinServer2003/IIS6 - with full Trust

using IE 8, Chrome 3.0.195.38, and FireFox (latest version) - each browser listed here has flash plug in version 10

Other Info:

Using NeatUpload version 1.3.13

.net 2.0 Framework

I'm using 3 instances of your multiFile upload object in my web app.  The first two have been in place for months, and are working fine - (even while the last instance is throwing the error.) This last  (3rd) implementation is the only instance that is throwing the error.

IF I remove the <neatUpload useHttpModule="true" /> entry from my web.config, the page loads, the multiFile object is rendered as a single file upload object - and that single file object indeed works - in that it uploads the file. However - I do need the multiFile setting to work for this page.

Heres my web.config:

---------------------------------------

<?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 xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
 <configSections>
  <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
   <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
     <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
     <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
     <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
    </sectionGroup>
   </sectionGroup>
  </sectionGroup>

    <section  name="neatUpload" type="Brettle.Web.NeatUpload.ConfigSectionHandler, Brettle.Web.NeatUpload" allowLocation="true" requirePermission="false" />
 </configSections>
 
  <appSettings>
  <add key="ljgIntranet" value="ljgIntranet"/>
 </appSettings>
 
  <connectionStrings>
  <remove name="LocalSqlServer"/>
         <add name=" " connectionString=" " />
        <add name=" " connectionString=" "/>
  <add name="LocalSqlServer" connectionString=" " providerName="System.Data.SqlClient"/>
  <add name=" " connectionString=" "/>
 </connectionStrings>
 
 
 <system.web>
        <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15">
            <providers>
                <add name=" AspNetSqlMembershipProvider"
                type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
                connectionStringName="DataConnect"
                requiresQuestionAndAnswer="false">
                </add>
            </providers>
        </membership>

 

        <!-- //this setting does not do anything until a future version of .net recognizes this setting as a max upload capacity // -->
  <httpRuntime maxRequestLength="10240"/>
  
  <roleManager enabled="true"/>
  
    <pages theme="guild">
   <controls>
    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
   </controls>
  </pages>
 
 <compilation debug="true">
  
  <assemblies>
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="Microsoft.ReportViewer.Common, Version=9.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>

 <httpHandlers>
   <remove path="*.asmx" verb="*" />
   <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
   <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
   <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
   <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
 </httpHandlers>
  
  
  
  <httpModules>
            <!-- the Brettle uploadHttpModule intercepts ALL upload requests  - includeing the asp.net fileUpload objects.
             Configuring maximun upload limits requires settings in the system.web section (above) and the location and neatUplod sections below.
             See brettle.com documentation for details  -->
   <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload" />
   <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
 </httpModules>
  
  
  
  
  
  <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
  <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
  <authentication mode="Forms">
   <forms cookieless="UseCookies" timeout="60">
    <credentials passwordFormat="Clear">
         </credentials>
   </forms>
  </authentication>
  <authorization>
   <deny users="?"/>
  </authorization>
  <!--
            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="error.aspx">
            <error statusCode="403" redirect="accessDenied.aspx" />
              </customErrors>
            -->
  <!--the following resources do not need a login -->
 </system.web>

    <!--10240kb is 10MB limit on all upload request by asp.net fileUpload. for brettle upload the max is 51200kb or 50MB-->
  
    <neatUpload xmlns="http://www.brettle.com/neatupload/config/2008" useHttpModule="false" maxNormalRequestLength="10240" maxRequestLength="51200">
    </neatUpload>


    <!--This location entry separates the brettle upload from the any other fileUpload object and when doing so, can specify different maxUpload limits-->
 <location path="admin/dummiesManager/dummies_upload.aspx">
    <system.web>
    <httpRuntime maxRequestLength="51200" executionTimeout="1800"/>
     <neatUpload useHttpModule="true" />   ERROR THROWN HERE
    </system.web>
  </location>
 
 
 
  <location path="admin/poManager/poUpload.aspx">
        <system.web>
            <httpRuntime maxRequestLength="51200" executionTimeout="1800" />
        </system.web>
        <neatUpload useHttpModule="true" />
    </location>

    <location path="admin/graphicsManager/graphicUpload.aspx">
        <system.web>
            <httpRuntime maxRequestLength="51200" executionTimeout="1800" />
        </system.web>
        <neatUpload useHttpModule="true" />
    </location>
 
 
 
 
 
 <location path="App_Themes">
  <system.web>
   <authorization>
    <allow users="?"/>
   </authorization>
  </system.web>
 </location>
 <location path="images">
  <system.web>
   <authorization>
    <allow users="?"/>
   </authorization>
  </system.web>
 </location>

    <location path="passwordHelp.aspx">
        <system.web>
            <authorization>
                <allow users="?"/>
            </authorization>
        </system.web>
    </location>
 
 
 
 <location path="forgotPassword.aspx">
  <system.web>
   <authorization>
    <allow users="?"/>
   </authorization>
  </system.web>
 </location>
 
 <location path="forgotPasswordConfirmed.aspx">
  <system.web>
   <authorization>
    <allow users="?"/>
   </authorization>
  </system.web>
 </location>
 <!--the following resources need a login-->
 <!--allow only admins to the admintools.aspx page   -->
 <location path="admin/admin.aspx">
  <system.web>
   <authorization>
    <allow roles="adminAdvanced"/>
    <allow roles="adminBasic"/>
    <deny roles="memberBasic"/>
    <deny users="*"/>
   </authorization>
  </system.web>
 </location>
 <!-- allow only Managers to the managers.aspx page and direictory -->
 <location path="managers/managers.aspx">
  <system.web>
   <authorization>
    <allow roles="memberAdvanced"/>
    <allow roles="adminAdvanced"/>
    <deny users="*"/>
   </authorization>
  </system.web>
 </location>
 <!-- allow only retailTrainingPrincipals to the Associates Training page and direictory -->
 <location path="manageUsers/createUser.aspx">
  <system.web>
   <authorization>
    <allow roles="retailPrincipal"/>
    <allow roles="adminAdvanced"/>
    <allow roles="retailSupervisorManager"/>
    <deny roles="memberBasic"/>
    <deny users="*"/>
   </authorization>
  </system.web>
 </location>
 
 
 <!-- this section  -->

   
 
 
 <!--
     
     
       <siteMap>
      <providers>
         <add name="poSiteMap" type="System.Web.XmlSiteMapProvider" siteMapFile="web.sitemap" />
      </providers>
  </siteMap>
     
     
      <siteMap defaultProvider="AspNetXmlSiteMapProvider" enabled="true">
      <add siteMapFile="web.sitemap" name="XmlSiteMapProvider" type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true"/>
      <add siteMapFile="my.sitemap" name="MyXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true"/> 
      <add name="mainSiteMap" type="System.Web.XmlSiteMapProvider" siteMapFile="~/Web.sitemap" />
      -->
 <system.webServer>
  <validation validateIntegratedModeConfiguration="false"/>
  <modules>
   <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload" preCondition="managedHandler"/>
   <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
  </modules>
  <handlers>
   <remove name="WebServiceHandlerFactory-Integrated"/>
   <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
   <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
   <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
  </handlers>
 </system.webServer>
 <system.net>
 
  <mailSettings>
   <smtp from=" ">
    <network host=" " password=" " userName=" " />
   </smtp>
  </mailSettings>
 
 </system.net>
</configuration>

 

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Unrecognized configuration section system.web/neatUpload.

Dean Brettle
Administrator
Your <neatUpload> section is in the wrong place.  It should be outside of the <system.web> element, like this:

<location path="admin/dummiesManager/dummies_upload.aspx">
    <system.web>
      <httpRuntime maxRequestLength="51200" executionTimeout="1800"/>
    </system.web>
    <neatUpload useHttpModule="true" />
  </location>

BTW, you should upgrade to the latest 1.3 release (currently 1.3.20) to pick up some important bugfixes.

--Dean
Reply | Threaded
Open this post in threaded view
|

Re: Unrecognized configuration section system.web/neatUpload.

Guest-1081
Thanks Dean, I'll fix my config file and upgrade today.