Unrecognized configuration section

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

Unrecognized configuration section

Manjula

Getting an error: "Unrecognized configuration section neatUpload" in web.config.

This is what I have in my web.config:

 

<neatUpload xmlns="http://www.brettle.com/neatupload/config/2008" maxRequestLength="1024000"></neatUpload>

Reply | Threaded
Open this post in threaded view
|

Re: Unrecognized configuration section

Dean Brettle
Administrator
Did you remember to add the NeatUpload configuration handler as described at the top of Using the <neatUpload> Configuration Section?
--Dean
Reply | Threaded
Open this post in threaded view
|

Re: Unrecognized configuration section

Manjula

I had missed that and now I added it. But now the update button stopped working. (the button is not triggered/form submitted)! Any ideas?

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Unrecognized configuration section

Dean Brettle
Administrator
What "Update" button are you referring to?
Reply | Threaded
Open this post in threaded view
|

Re: Unrecognized configuration section

Manjula

Sorry for the ambiguity. I was referring to the submit button on my page which when clicked, uploads the file and do other updates.

Reply | Threaded
Open this post in threaded view
|

Re: Unrecognized configuration section

Dean Brettle
Administrator
Are your NeatUpload controls in an UpdatePanel?  If so, see NeatUpload controls might not work properly within an UpdatePanel.  If not, please use a one-click hosting service to send me (dean at brettle dot com) a small test app that demonstrates the issue.
Reply | Threaded
Open this post in threaded view
|

Re: Unrecognized configuration section

Guest-846

No, it is not in an UpdatePanel but within a regular <asp:Panel> control.

I tried to retrace my steps and found that the issue happens when I put a <section> entry

in configSections for the neatUpload. Without that, the upload works fine. So, I am overriding the

OnFileQueued on my page to alert the user of large file size on the client side. Do you think there is any drawback in going this route?

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Unrecognized configuration section

Dean Brettle
Administrator
Something sounds very strange.  Overriding OnFileQueued shouldn't hurt anything but definitely shouldn't be necessary.  We are definitely missing something.  Can you post the full Web.config that causes the problem (with any passwords redacted)?
Reply | Threaded
Open this post in threaded view
|

Re: Unrecognized configuration section

Guest-846

?xml version="1.0"?>

<configuration>

<configSections>

<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>

 

-------this is where i added the section for neatupload

</configSections>

<log4net>

<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">

value="C:\\INETPUB\\LOGS\\SS2BR.txt"/>

<appendToFile value="true"/>

<rollingStyle value="Size"/>

<maxSizeRollBackups value="15"/>

<maximumFileSize value="2MB"/>

<staticLogFileName value="true"/>

<lockingModel type="log4net.Appender.RollingFileAppender+MinimalLock"/>

<layout type="log4net.Layout.PatternLayout">

<conversionPattern value="%d [%t] %-5p %c - %m%n"/>

</layout>

</appender>

<root>

<level value="ALL"/>

<appender-ref ref="RollingFileAppender"/>

</root>

</log4net>

<appSettings>

<add key="NavigateURLLogin" value="LoginUser.aspx"/>

<add key="NavigateURLLogout" value="Logout.aspx"/>

<add key="NewUserRegistration" value="NewUserRegistration.aspx"/>

<add key="Response" value="Response.aspx"/>

<add key="Home" value="http://www.ss2br.com"/>

<add key="Welcome" value="Default.aspx"/>

<add key="MyAccount" value="MyAccount.aspx"/>

<add key="BrowseProducts" value="http://www.SS2BR.com/Courses.aspx"/>

<add key="UserGuide" value="UserGuide.aspx"/>

<add key="AboutUs" value="AboutUs.aspx"/>

<add key="My Programs" value="MyPrograms.aspx"/>

<add key="Broadcast Emails" value="BroadcastEmails.aspx"/>

<add key="TermsConditions" value="TermsConditions.aspx"/>

<add key="PricingPolicies" value="PricingPolicies.aspx"/>

<add key="Email Preview" value="PreviewEmail.aspx"/>

<add key="SendTestEmails" value="SendTestEmails.aspx"/>

<add key="sqlConnection" value="removed"/>

<add key="TermsConditions" value="TermsConditions.aspx"/>

<add key="PricingPolicies" value="PricingPolicies.aspx"/>

<add key="Email Preview" value="PreviewEmail.aspx"/>

<add key="SendTestEmails" value="SendTestEmails.aspx"/>

<add key="errMsgLabelColor" value="#C00000"/>

<add key="ReportsURL" value="url removed"/>

<add key="FileUploadPath" value="filepath removed"/>

<add key="UploadFileSize" value="5"/>

<add key="SMTPClientHost" value="smtp.comcast.net"/>

<add key="SMTPClientHostPort" value="587"/>

<add key="SMTPNetworkCredentialLoginName" value="username removed>

<add key="SMTPNetworkCredentialPWord" value="pwd removed"/>

<add key="SMTPClientHost" value="smtp.comcast.net"/>

<add key="SMTPClientHostPort" value="587"/>

<add key="SMTPNetworkCredentialLoginName" value=""/>

<add key="SMTPNetworkCredentialPWord" value=""/>

<add key="VerificationEMailFromAddress" value=""/>

<add key="TestEmailFromAddress" value="/>

<add key="WebsiteURL" value=""/>

<add key="BodyTextItems" value="Select an entry...=|Today=#Today#|Tomorrow=#Tomorrow#|First Name=#FirstName#|Last Name=#LastName#"/>

<add key="PreviewWindowParams" value="width=600,height=600,scrollbars=yes,resizeable=yes"/>

</appSettings>

<connectionStrings/>

<system.web>

<

<httpHandlers>

<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>

</httpHandlers>

<httpModules>

<add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload" />

</httpModules>

<compilation debug="true">

<buildProviders>

<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

</buildProviders>

<assemblies>

<add assembly="Microsoft.SqlServer.TxScript, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

<add assembly="Microsoft.SqlServer.DTSPipelineWrap, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

<add assembly="Microsoft.SqlServer.VSAHostingDT, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

<add assembly="Microsoft.SqlServer.DTSRuntimeWrap, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

<add assembly="Microsoft.SqlServer.PipelineHost, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

<add assembly="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="Microsoft.SqlServer.DtsMsg, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

<add assembly="Microsoft.Vsa, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<add assembly="Microsoft.SqlServer.VSAHosting, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

<add assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="Microsoft.Build.Framework, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<add assembly="Microsoft.ReportViewer.ProcessingObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>

<

<authentication mode="Windows"/>

<

<sessionState mode="InProc" cookieless="false" timeout="120"/>

</system.web>

</configuration>

Reply | Threaded
Open this post in threaded view
|

Re: Unrecognized configuration section

Dean Brettle
Administrator
The only thing that jumps out at me is that there are a bunch of unmatched "<"s.  I'm not sure if they are actually in your Web.config or if it some sort of posting artifact. 

I think to diagnose the behavior you are describing, I'm really going to need a small test app that I can use to reproduce it.  Can you email me (dean at brettle dot com) with an URL that I can use to download such an app?
Reply | Threaded
Open this post in threaded view
|

Re: Unrecognized configuration section

Guest-846
The bunch of "<"s is a posting artifact. I will proceed further(am slightly lagging in my task timeframe) with the OnFileQueued and send u a test app ASAP. Thanks for all the responses.