Welcome Guest Search | Active Topics | Sign In | Register

Error generated when using the AJAX uploader control Options
Mike Bourne
Posted: Monday, December 8, 2014 1:43:52 PM
Rank: Member
Groups: Member

Joined: 7/2/2007
Posts: 16
Code: Visual Basic.NET
Hi All,

I am using the last version of EO webcontrols and I am getting an error:

"EO.Web control 'ctl001_ContentPlaceHolder1_AJAXUploader1' Error message.EO.WebRuntime must be added into your web.config's httpModules section because another HttpModule (Usually FormsAuthenticationModule) fetched the upload data before it reaches AJAXLoader. Please see "using AJAXUploader" in the help file for details.

I read the description and have verified that I have the appropriate entry as indicated in the configuration file listed below.

Could someone let me know what I am doing wrong :)? This is holding me up from going into production :(.

The web.config file below has had critical information replaced with the words "Removed" or "Removed for simplicity". Other than that, it is a full version of what I am using.

The application is being developed and tested on a Windows 8.1 Laptop when the error is generated.

Thanks in advanced!

Mike

<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed" requirePermission="false" allowDefinition="MachineToApplication"/></sectionGroup></sectionGroup>
</sectionGroup>
</configSections>
<system.diagnostics>
<trace autoflush="false" indentsize="4">
<listeners>
<add name="webListener" type="System.Web.WebPageTraceListener, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</listeners>
</trace>
</system.diagnostics>
<connectionStrings>
<!-- Removed for simplicity -->
</connectionStrings>
<appSettings>
<!-- Removed for simplicity -->
</appSettings>
<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="Removed"/>
<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=Removed"/>
<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=Removed"/>
</handlers>
</system.webServer>
<system.web>
<httpModules>
<add name="EOWebRuntime" type="EO.Web.Runtime,EO.Web"/>
</httpModules>
<httpRuntime executionTimeout="360"/>
<trace enabled="true" localOnly="true" mostRecent="true" pageOutput="false" requestLimit="25" traceMode="SortByTime" writeToDiagnosticsTrace="true"/>
<roleManager enabled="true">
<providers>
<remove name="AspNetSqlRoleProvider"/>
<add connectionStringName="Removed" applicationName="Removed" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider"/>
</providers>
</roleManager>
<sessionState mode="SQLServer" sqlConnectionString="Removed" cookieless="AutoDetect" timeout="15"/>
<customErrors mode="RemoteOnly" defaultRedirect="GeneralError.htm" redirectMode="ResponseRedirect"/>
<membership defaultProvider="Removed">
<providers>
<clear/>
<add name="Removed"
type="ExtMembershipProvider"
connectionStringName="Removed"
applicationName="Removed"
requiresUniqueEmail="true"
passwordFormat="Hashed"
requiresQuestionAndAnswer="true"
minRequiredPasswordLength="8"
minRequiredNonalphanumericCharacters="0"
enablePasswordRetrieval="false"
enablePasswordReset="true"
maxInvalidPasswordAttempts="3"
passwordAttemptWindow="5"/>
</providers>
</membership>
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=Removed"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=Removed"/>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed"/></assemblies>
</compilation>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Generic"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Linq"/>
<add namespace="System.Xml.Linq"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=Removed"/>
</controls>
</pages>
<authentication mode="Forms">
<forms loginUrl="Login.aspx" name=".ASPXFORMSAUTH" defaultUrl="ViewOrders.aspx" protection="All" timeout="30" path="/"/>
</authentication>
<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=Removed"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=removed"/>
<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=Removed"/>
</httpHandlers>
</system.web>
<system.net>
<!-- Removed -->
</system.net>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
</system.serviceModel>
<system.codedom>
<compilers>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=Removed" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<runtime>
<assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="Removed"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="Removed"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
eo_support
Posted: Monday, December 8, 2014 3:28:01 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

We can't spot anything obvious in your config file. Is there anyway you can isolate the problem into a test project and then send the test project to us? You can see here for more information on how to send test project to us:

http://www.essentialobjects.com/forum/test_project.aspx

Thanks!
Mike Bourne
Posted: Monday, December 8, 2014 4:20:36 PM
Rank: Member
Groups: Member

Joined: 7/2/2007
Posts: 16
The error is caused by the line "<trace enabled="true" localOnly="true" mostRecent="true" pageOutput="false" requestLimit="25" traceMode="SortByTime" writeToDiagnosticsTrace="true"/>". when I remove this line, the error message goes away.

Any thoughts on that?

Mike
eo_support
Posted: Monday, December 8, 2014 10:15:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

This makes sense. AJAXUploader will not work reliably when trace is enabled. When ASP.NET tracing is enabled, ASP.NET creates a TraceContext object for the request (accessible through HttpContext.Current.Trace) before executing our code. During this phase the TraceContext object would read the request form data ---- this will break the AJAXUploader because the AJAXUploader must be the first one to read the request data. As a result, you must remove that line in order to use the AJAXUploader control.

Thanks!


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.