SlickUpload
Welcome Guest Search | Active Topics | Log In | Register

The configuration section cannot contain a CDATA or text element. Options
imsam67
#1 Posted : Tuesday, November 22, 2011 10:39:51 PM
Rank: Member

Groups: Registered

Joined: 11/22/2011
Posts: 17
Location: Florida

I started a brand new ASP.NET MVC 3 project to test out Slick Uploader. When I run the app, I'm getting the "

SlickUpload configuration is invalid. Message: The configuration section cannot contain a CDATA or text element.

Here's my web.config file. Any idea what's causing the issue?

<?xml version="1.0"?>

<!--

  For more information on how to configure your ASP.NET application, please visit

  http://go.microsoft.com/fwlink/?LinkId=152368

  -->

 

<configuration>

  <configSections>

    <section name="slickUpload" type="Krystalware.SlickUpload.Configuration.SlickUploadSection, Krystalware.SlickUpload" requirePermission="false"/>

  </configSections>

  <slickUpload>

    <uploadProfiles>

      <add name="quickStart">

        <uploadStreamProvider type="File" location="~/Files" />    

      </add>

    </uploadProfiles>

  </slickUpload>

  <connectionStrings>

    <add name="ApplicationServices"

         connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"

         providerName="System.Data.SqlClient" />

  </connectionStrings>

 

  <appSettings>

    <add key="webpages:Version" value="1.0.0.0"/>

    <add key="ClientValidationEnabled" value="true"/>

    <add key="UnobtrusiveJavaScriptEnabled" value="true"/>

  </appSettings>

 

  <system.web>

    <compilation debug="true" targetFramework="4.0">

      <assemblies>

        <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

        <add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

        <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

        <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

        <add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

      </assemblies>

    </compilation>

 

    <authentication mode="Forms">

      <forms loginUrl="~/Account/LogOn" timeout="2880" />

    </authentication>

 

    <membership>

      <providers>

        <clear/>

        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"

             enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"

             maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"

             applicationName="/" />

      </providers>

    </membership>

 

    <profile>

      <providers>

        <clear/>

        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />

      </providers>

    </profile>

 

    <roleManager enabled="false">

      <providers>

        <clear/>

        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />

        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />

      </providers>

    </roleManager>

 

    <pages>

      <namespaces>

        <add namespace="System.Web.Helpers" />

        <add namespace="System.Web.Mvc" />

        <add namespace="System.Web.Mvc.Ajax" />

        <add namespace="System.Web.Mvc.Html" />

        <add namespace="System.Web.Routing" />

        <add namespace="System.Web.WebPages"/>

      </namespaces>

    </pages>

 

    <httpModules>

      <add name="SlickUploadModule" type="Krystalware.SlickUpload.Web.SlickUploadModule, Krystalware.SlickUpload"/>

    </httpModules>

 

  </system.web>

 

  <system.webServer>

    <validation validateIntegratedModeConfiguration="false"/>

    <modules runAllManagedModulesForAllRequests="true">

      <add name="SlickUploadModule" type="Krystalware.SlickUpload.Web.SlickUploadModule, Krystalware.SlickUpload" preCondition="integratedMode" />

    </modules>

    <security>

      <requestFiltering>

        <requestLimits maxAllowedContentLength="2072576000"/>

      </requestFiltering>

    </security>

  </system.webServer>

 

  <runtime>

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

      <dependentAssembly>

        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />

        <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />

      </dependentAssembly>

    </assemblyBinding>

  </runtime>

</configuration>



Thanks,
Sam
imsam67
#2 Posted : Tuesday, November 22, 2011 10:48:34 PM
Rank: Member

Groups: Registered

Joined: 11/22/2011
Posts: 17
Location: Florida

Looks like it doesn't like the slickUpload section in the web.config file. Any idea what's causing this issue and what the fix may be?

Thanks,
Sam


Thanks,
Sam
Axosoft
#3 Posted : Wednesday, November 23, 2011 10:15:38 AM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

A few questions:

 

  • It works if you remove just the <slickUpload> section?
  • What if you copy that web.config into the quick start example, does it still error?
  • What are you using to host the app? The VS.NET webdev server, IIS 6/7/7.5, IIS Express?
  • What version of SlickUpload are you using?

 

 

imsam67
#4 Posted : Wednesday, November 23, 2011 1:34:48 PM
Rank: Member

Groups: Registered

Joined: 11/22/2011
Posts: 17
Location: Florida

When I replaced the slickUpload section with the one that came with QuickStart, it worked. I'll do a line-by-line comparison to see what fixed the issue.

By the way, how do I find out what version of slickUpload I'm using?


Thanks,
Sam
Axosoft
#5 Posted : Wednesday, November 23, 2011 2:21:35 PM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

Maybe there was some weird unicode character there?

To determine the version, there are two simple ways:

  • Right click the .dll, go into properties and then the details tab and look at the version there
  • Drop the SlickUploadDiagnostics.aspx file into your project and navigate to that. That will give a bunch of diagnostic info, among which is the version.

 

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.