-
Kenneth
-
-
-
Joined on 02-13-2008
-
-
Posts 3,886
-
-
|
Re: AjaxUploader works fine locally - Javascript error 'object expected' when viewing after deploy
Hi simonhorridge,
I attached two web.config, please try it, one of them should work.
#1
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="Icm.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
<section name="Icm.Application.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
</sectionGroup>
</configSections>
<connectionStrings>
</connectionStrings>
<appSettings>
<add key="FileLogPath" value="C:\Inetpub\wwwroot\ICM\Logs"/>
<add key="gridviewpagesize" value="10"/>
<add key="SystemName" value="UKIO ICM Platform"/>
<add key="AccessDeniedRedirectionPage" value="NoAccessPageForUser.aspx"/>
<add key="SiteLogo" value="Images/prutight.png"/>
<add key="MyTheme" value="Default"/>
<add key="SiteSplash" value="Images/logo.gif"/>
<add key="LogonSplash" value="Images/UKIOICMP.png"/>
<add key="ICMCodeFilePath" value="C:\ICM\Data\"/>
<add key="ICMLiteModelCodeFilePath" value="C:\ICM\Data\LiteModels\"/>
<add key="SandboxFilePath" value="C:\ICM\Data\Sandbox\"/>
<add key="SingleSignOnEnabled" value="true"/>
<add key="FormLabelTrawlingEnabled" value="false"/>
<add key="SiteNameUrlPathElement" value="icm"/>
<add key="IcmEntities" value="metadata=res://*/IcmDataModel.csdl|res://*/IcmDataModel.ssdl|res://*/IcmDataModel.msl;provider=System.Data.SqlClient;provider connection string="Data Source=(local);Initial Catalog=IcmDataLocal;Integrated Security=SSPI;MultipleActiveResultSets=True""/>
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=C:\ICM\Data\Sandbox\tempimages;"/>
<add key="ChartImageDumpLocation" value="C:\ICM\Data\Sandbox\tempimages\"/>
<add key="fileUploadPath" value="~/Uploads" />
<!-- AjaxUploader Settings -->
<add key="AjaxUploaderLicense" value="~/Resource/Licenses/AjaxUploader.lic" />
<add key="CuteWebUI.AjaxUploader.MaxFile" value="100" />
<add key="CuteWebUI.AjaxUploader.MaxSizeKB" value="1024 * 1024 * 2" />
<add key =""/>
</appSettings>
<system.web>
<httpModules>
<add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
</httpModules>
<httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
</httpHandlers>
<globalization uiCulture="en" culture="en-GB"/>
<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.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.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.DataVisualization.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
<buildProviders>
<add extension="cshtml" type="System.Web.WebPages.Razor.RazorBuildProvider, System.Web.WebPages.Razor"/>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders>
</compilation>
<authentication mode="Forms">
<forms loginUrl="logon.aspx"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<membership defaultProvider="AspNetSqlmembershipProvider">
<providers>
<clear/>
</providers>
</membership>
<profile defaultProvider="AspNetSqlProfileProvider">
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" connectionStringName="AspNetProviderConnection" type="System.Web.Profile.SqlProfileProvider"/>
</providers>
</profile>
<roleManager enabled="true">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" connectionStringName="AspNetProviderConnection" applicationName="ICM" type="System.Web.Security.SqlRoleProvider"/>
</providers>
</roleManager>
<customErrors mode="Off"/>
<pages>
<namespaces>
<add namespace="System.Web.Mvc"/>
<add namespace="System.Web.Mvc.Ajax"/>
<add namespace="System.Web.Mvc.Html"/>
<add namespace="System.Web.Routing"/>
<add namespace="Icm.Application"/>
<add namespace="Icm"/>
</namespaces>
</pages>
</system.web>
<location path="About.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="css">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="Scripts">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="Static">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
<httpRuntime maxRequestLength="2097151" executionTimeout="3600"/>
</system.web>
</location>
<location path="help">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</handlers>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4294967295" />
</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" newVersion="2.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<applicationSettings>
</applicationSettings>
</configuration>
#2 <?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <section name="Icm.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> <section name="Icm.Application.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> </sectionGroup> </configSections> <connectionStrings>
</connectionStrings> <appSettings> <add key="FileLogPath" value="C:\Inetpub\wwwroot\ICM\Logs"/> <add key="gridviewpagesize" value="10"/> <add key="SystemName" value="UKIO ICM Platform"/> <add key="AccessDeniedRedirectionPage" value="NoAccessPageForUser.aspx"/> <add key="SiteLogo" value="Images/prutight.png"/> <add key="MyTheme" value="Default"/> <add key="SiteSplash" value="Images/logo.gif"/> <add key="LogonSplash" value="Images/UKIOICMP.png"/> <add key="ICMCodeFilePath" value="C:\ICM\Data\"/> <add key="ICMLiteModelCodeFilePath" value="C:\ICM\Data\LiteModels\"/> <add key="SandboxFilePath" value="C:\ICM\Data\Sandbox\"/> <add key="SingleSignOnEnabled" value="true"/> <add key="FormLabelTrawlingEnabled" value="false"/> <add key="SiteNameUrlPathElement" value="icm"/> <add key="IcmEntities" value="metadata=res://*/IcmDataModel.csdl|res://*/IcmDataModel.ssdl|res://*/IcmDataModel.msl;provider=System.Data.SqlClient;provider connection string="Data Source=(local);Initial Catalog=IcmDataLocal;Integrated Security=SSPI;MultipleActiveResultSets=True""/> <add key="ChartImageHandler" value="storage=file;timeout=20;dir=C:\ICM\Data\Sandbox\tempimages;"/> <add key="ChartImageDumpLocation" value="C:\ICM\Data\Sandbox\tempimages\"/> <add key="fileUploadPath" value="~/Uploads" />
<!-- AjaxUploader Settings --> <add key="AjaxUploaderLicense" value="~/Resource/Licenses/AjaxUploader.lic" /> <add key="CuteWebUI.AjaxUploader.MaxFile" value="100" /> <add key="CuteWebUI.AjaxUploader.MaxSizeKB" value="1024 * 1024 * 2" />
<add key =""/> </appSettings> <system.web> <httpHandlers> <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/> </httpHandlers> <globalization uiCulture="en" culture="en-GB"/> <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.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.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> <add assembly="System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="System.Web.DataVisualization.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </assemblies> <buildProviders> <add extension="cshtml" type="System.Web.WebPages.Razor.RazorBuildProvider, System.Web.WebPages.Razor"/> <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </buildProviders> </compilation> <authentication mode="Forms"> <forms loginUrl="logon.aspx"/> </authentication> <authorization> <deny users="?"/> </authorization> <membership defaultProvider="AspNetSqlmembershipProvider"> <providers> <clear/> </providers> </membership> <profile defaultProvider="AspNetSqlProfileProvider"> <providers> <clear/> <add name="AspNetSqlProfileProvider" connectionStringName="AspNetProviderConnection" type="System.Web.Profile.SqlProfileProvider"/> </providers> </profile> <roleManager enabled="true"> <providers> <clear/> <add name="AspNetSqlRoleProvider" connectionStringName="AspNetProviderConnection" applicationName="ICM" type="System.Web.Security.SqlRoleProvider"/> </providers> </roleManager> <customErrors mode="Off"/> <pages> <namespaces> <add namespace="System.Web.Mvc"/> <add namespace="System.Web.Mvc.Ajax"/> <add namespace="System.Web.Mvc.Html"/> <add namespace="System.Web.Routing"/> <add namespace="Icm.Application"/> <add namespace="Icm"/> </namespaces> </pages> </system.web> <location path="About.aspx"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> <location path="css"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> <location path="Scripts"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> <location path="Static"> <system.web> <authorization> <allow users="*"/> </authorization> <httpRuntime maxRequestLength="2097151" executionTimeout="3600"/> </system.web> </location> <location path="help"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules runAllManagedModulesForAllRequests="true"> <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/> </modules> <handlers> <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </handlers> <security> <requestFiltering> <requestLimits maxAllowedContentLength="4294967295" /> </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" newVersion="2.0.0.0"/> </dependentAssembly> </assemblyBinding> </runtime> <applicationSettings> </applicationSettings> </configuration> Regards, Ken
|
|