'System.web' has invalid child element 'neatUpload'

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

'System.web' has invalid child element 'neatUpload'

Guest-828
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <configSections>
    <sectionGroup name="system.web">
      <section name="neatUpload" type="Brettle.Web.NeatUpload.ConfigSectionHandler,Brettle.Web.NeatUpload"/>
    </sectionGroup>
   
        <section name="UploadModuleManagement" type="UploadModule.UploadModule, UploadModule" />
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
            <section name="SB.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
                    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />      
        </sectionGroup></sectionGroup></sectionGroup></configSections>
    <UploadModuleManagement bufferSize="1024" pages="/onsiteadmin/sites/UploadLogo.aspx" />
    <connectionStrings>
        <add name="SiteBook" connectionString="Data Source=localhost/SQLEXPRESS;Initial Catalog=SiteBook_dev;User ID=************;pwd=**********" providerName="System.Data.SqlClient" />
    </connectionStrings>
    <system.web>

    <httpModules>
      <add name="UploadModule" type="UploadModule.UploadModule, UploadModule" />
      <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload" />
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </httpModules>
   
    <neatUpload useHttpModule="false" maxNormalRequestLength="4096" maxRequestLength="2097151" defaultProvider="FilesystemUploadStorageProvider">
      <providers>
        <add name="FilesystemUploadStorageProvider"
                    type="Brettle.Web.NeatUpload.FilesystemUploadStorageProvider, Brettle.Web.NeatUpload"
                    />
      </providers>
    </neatUpload>
    <sessionState mode="InProc" cookieless="false" timeout="30"></sessionState>
        <customErrors defaultRedirect="/error.aspx" mode="Off" />
        <httpRuntime maxRequestLength="100000" executionTimeout="3600" />
        <!--
          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">
            <assemblies>
                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></assemblies>
        </compilation>
       
       
        <pages>
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></controls></pages>
        <httpHandlers>
            <remove verb="*" path="*.asmx" />
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></httpHandlers></system.web>
    <system.net>
        <mailSettings>
            <smtp from="mailer@sitebook.net">
                <network host="WIN-533RF3WR6XG" password="" userName="" />
            </smtp>
        </mailSettings>
    </system.net>
    <system.webServer>
   
            <validation validateIntegratedModeConfiguration="false" />
        <handlers>
            <remove name="WebServiceHandlerFactory-Integrated" />
            <remove name="ScriptHandlerFactory" />
            <remove name="ScriptHandlerFactoryAppServices" />
            <remove name="ScriptResource" />
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></handlers>
        <defaultDocument>
            <files>
                <clear />
                <add value="default.aspx" />
                <add value="Default.htm" />
                <add value="Default.asp" />
                <add value="index.htm" />
                <add value="index.html" />
                <add value="iisstart.htm" />
            </files>
        </defaultDocument>
        </system.webServer>
    <applicationSettings>
        <SB.Properties.Settings>
            <setting name="SB_convertionRate_CurrencyConvertor" serializeAs="String">
                <value>http://www.webservicex.net/CurrencyConvertor.asmx</value>
            </setting>
        </SB.Properties.Settings>
    </applicationSettings>
    <startup><supportedRuntime version="v2.0.50727" /></startup>
    <system.codedom>
            <compilers>
                <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                    <providerOption name="CompilerVersion" value="v3.5" />
                    <providerOption name="WarnAsError" value="false" /></compiler></compilers></system.codedom>
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /></dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /></dependentAssembly></assemblyBinding></runtime></configuration>


Hey,

I hope someone can help. I have the following web.config file for my web app but get the error in the subject. I can run the demo site but the progress bar does not appear. I have read other posts on here to see the cause. I believe my app is configured as a web app. I have a bin directory with the dll's referenced but the demo site cannot make use of the httpmodule. BTW I have created a demo outside my existing app called NeatUpload just to test this and it works fine with the supplied web.config. I am using v1.2.30.4. Is there something wrong with my webApp? Any help greatly appreciated.
Reply | Threaded
Open this post in threaded view
|

Re: 'System.web' has invalid child element 'neatUpload'

Dean Brettle
Administrator
You can ignore the error.  It is just VS complaining because it doesn't recognize the <neatUpload> tag.  If you close the Web.config file in VS, that error will go away. 

One reason the progress bar is not showing up, is that you have useHttpModule="false".  The Web.config that ships with NeatUpload has that too, but it then set's useHttpModule="true" in the <location> section corresponding to the Demo.aspx page.  You need to either add a similar <location> section for your upload page, or set useHttpModule="true" globally.  For details, see Using Location Filtering to Restrict/Modify NeatUpload's Request Processing.

If the progress bar doesn't work after making that change, I need to know what version of IIS are you using?  Note that NeatUpload-1.2 does not work with the IIS7 default app pool (though NeatUpload-1.3 does).  I also need to know what this line is for and whether removing it helps:

<add name="UploadModule" type="UploadModule.UploadModule, UploadModule" />

If you are using another upload control, there might be a conflict.

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

Re: 'System.web' has invalid child element 'neatUpload'

Guest-828
Hi,

Thanks for your prompt reply Dean. Sorry about the other upload module in my config file. I am picking up this application from someone else and he has a lot of other things included that are not even used. Turned out using IIS7 although I had my own application pool it was set to integrated and not classic. Since I have changed this all my problems have been solved.

Thanks again...