Related
i buy a asp net website when i try to setup it say HTTP Error 500.19 - Internal Server Error
here is full error text
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x80070021
Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Config File \\?\C:\inetpub\wwwroot\web.config
Requested URL http://localhost:80/live
Physical Path C:\inetpub\wwwroot\live
Logon Method Not yet determined
Logon User Not yet determined
Config Source:
87: </modules>
88: <handlers>
89: <remove name="ChartImageHandler" />
More Information:
This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
here is the screenshort
https://prnt.sc/ubgp5w
and here is my config file
https://justpaste.it/6yfl8
enter code here
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
https://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="Web_AutoSeeding3.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
<sectionGroup name="devExpress">
<section name="themes" type="DevExpress.Web.ThemesConfigurationSection, DevExpress.Web.v17.1, Version=17.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
<section name="compression" type="DevExpress.Web.CompressionConfigurationSection, DevExpress.Web.v17.1, Version=17.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
<section name="settings" type="DevExpress.Web.SettingsConfigurationSection, DevExpress.Web.v17.1, Version=17.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
<section name="errors" type="DevExpress.Web.ErrorsConfigurationSection, DevExpress.Web.v17.1, Version=17.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
<section name="resources" type="DevExpress.Web.ResourcesConfigurationSection, DevExpress.Web.v17.1, Version=17.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
</sectionGroup>
</configSections>
<!--
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
The following attributes can be set on the <httpRuntime> tag.
<system.Web>
<httpRuntime targetFramework="4.5.2" />
</system.Web> //debug="true" strict="false" explicit="true"
-->
<appSettings>
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />
</appSettings>
<system.web>
<!--Auth Login-->
<authentication mode="Forms">
<forms defaultUrl="~/index.aspx" loginUrl="~/Login.aspx" slidingExpiration="true" timeout="2880"></forms>
</authentication>
<!--End Auth-->
<httpHandlers>
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v17.1, Version=17.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET" path="DX.ashx" validate="false" />
</httpHandlers>
<compilation targetFramework="4.5.2" debug="true">
<assemblies>
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="DevExpress.Web.v17.1, Version=17.1.3.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A" />
<add assembly="DevExpress.Data.v17.1, Version=17.1.3.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A" />
<add assembly="DevExpress.Printing.v17.1.Core, Version=17.1.3.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="DevExpress.RichEdit.v17.1.Core, Version=17.1.3.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A" />
<add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="DevExpress.Web.ASPxThemes.v17.1, Version=17.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
</assemblies>
</compilation>
<httpRuntime />
<pages controlRenderingCompatibilityVersion="4.0">
<namespaces>
<add namespace="System.Web.Optimization" />
</namespaces>
<controls>
<add tagPrefix="webopt" namespace="Microsoft.AspNet.Web.Optimization.WebForms" assembly="Microsoft.AspNet.Web.Optimization.WebForms" />
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</controls>
</pages>
<httpModules>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v17.1, Version=17.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule" />
</httpModules>
</system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<remove name="ApplicationInsightsWebTracking" />
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v17.1, Version=17.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule" />
</modules>
<handlers>
<remove name="ChartImageHandler" />
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v17.1, Version=17.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET" path="DX.ashx" name="ASPxHttpHandlerModule" preCondition="integratedMode" />
</handlers>
</system.webServer>
<applicationSettings>
<Web_AutoSeeding3.My.MySettings>
<setting name="SavePatch" serializeAs="String">
<value>D:\GoogleDrive\Project\AutoSeedingFB3\AutoSeedingFB3\bin\Debug</value>
</setting>
<setting name="sPostWatchLive" serializeAs="String">
<value>q=%5B%7B%22user%22%3A%22{UserID}%22%2C%22page_id%22%3A%22{PageID}%22%2C%22posts%22%3A%5B%5B%22click_ref_logger%22%2C%5B%220fkQ%22%2C1506598921030%2C%22act%22%2C1506598921028%2C0%2C%22https%3A%2F%2Fwww.facebook.com%2F100011762777288%2Fvideos%2F{VideoID}%2F%23%22%2C%22a%22%2C%22click%22%2C%22-%22%2C%22r%22%2C%22%2F100011762777288%2Fvideos%2F{VideoID}%2F%22%2C%7B%22ft%22%3A%7B%7D%2C%22gt%22%3A%7B%7D%7D%2C429%2C212%2C0%2C1012%2C%22{PageID}%22%2C%22XVideoPermalinkController%22%5D%2C1506598921030%2C1%5D%2C%5B%22logger%3AChatproxyClientErrorsLoggerConfig%22%2C%7B%22status_code%22%3A0%2C%22error_message%22%3A%22ar%3Atransport%20error%22%2C%22topic_prefixes%22%3A%5B%22live%2Fbroadcast%2Fcaption%22%5D%2C%22url%22%3A%22%2Fsub%22%7D%2C1506598921306%2C0%5D%2C%5B%22video_player%22%2C%7B%22logData%22%3A%7B%22ad_client_token%22%3Anull%2C%22available_qualities%22%3A2%2C%22autoplay_eligible%22%3Afalse%2C%22autoplay_setting%22%3A%22off%22%2C%22broadcaster_origin%22%3A%22prn1%22%2C%22projection%22%3A%22flat%22%2C%22player_version%22%3A%22pleasantville%22%2C%22video_id%22%3A%22{VideoID}%22%2C%22player_state%22%3A%22playing%22%2C%22player_origin%22%3A%22permalink%22%2C%22player_suborigin%22%3A%22permalink%22%2C%22playback_is_broadcast%22%3Atrue%2C%22playback_duration%22%3A2596675.01299%2C%22referrer%22%3A%22%22%2C%22streaming_format%22%3A%22dash%22%2C%22video_time_position%22%3A4692.573323%2C%22playback_is_live_streaming%22%3Atrue%2C%22video_channel_id%22%3A%22387437888106301%3A{VideoID}%22%2C%22reaction_video_channel_type%22%3Anull%2C%22fbcdn_pop%22%3Anull%2C%22representation_id%22%3A%22live-md-v%22%2C%22video_bandwidth%22%3A1105553.0206082368%2C%22is_abr_enabled%22%3Atrue%2C%22feed_position%22%3Anull%2C%22video_chaining_depth_level%22%3A0%2C%22video_chaining_session_id%22%3A%22f3d6548c7962404%22%2C%22channel_eligibility%22%3A%22eligible%22%2C%22autoplay_failure_reasons%22%3A%22%5B%5C%22server_blocked%5C%22%5D%22%2C%22video_play_reason%22%3A%22user_initiated%22%2C%22seq_num%22%3A14%2C%22initial_event%22%3Atrue%2C%22time_ms%22%3A1506598924592%2C%22time%22%3A1506598925%2C%22is_stalling%22%3Afalse%2C%22ft%22%3A%7B%7D%7D%2C%22event%22%3A%22played_for_three_seconds%22%2C%22scriptPath%22%3A%22XVideoPermalinkController%22%2C%22source%22%3A%22permalink%22%7D%2C1506598924592%2C0%5D%2C%5B%22ods%3ARTISession%22%2C%7B%22request.error%22%3A%5B1%5D%7D%2C1506598925596%2C0%5D%2C%5B%22ods%3Ajs_error_reporting%22%2C%7B%22error_signal.category.async_error%22%3A%5B2%5D%7D%2C1506598925596%2C0%5D%5D%2C%22trigger%22%3A%22ods%3ARTISession%22%2C%22send_method%22%3A%22ajax%22%7D%5D</value>
</setting>
<setting name="PassUp" serializeAs="String">
<value>Auto2</value>
</setting>
<setting name="My_UID" serializeAs="String">
<value>100001709940468</value>
</setting>
<setting name="My_DTSG" serializeAs="String">
<value>AQFfl1bnjfLk%3AAQH3dmzpNjiX</value>
</setting>
<setting name="My_Cookies" serializeAs="String">
<value>sb=Gz_HXhhV1OTLBVShPBogvSTB; datr=Gz_HXkHkHji3FCGxUmGHFaBb; locale=vi_VN; c_user=100001709940468; xs=38%3AwH3J0TIZI7KwWg|AQFfl1bnjfLk%3AAQH3dmzpNjiX%3A2%3A1590116197%3A5043%3A6389; spin=r.1002161425_b.trunk_t.1590378147_s.1_v.2_; fr=0j0SKeoFabt4NAL8Q.AWUXEy247T8Ed4GdaFIrc_BonMI.BexlYI.6F.F7H.0.0.BezHgh.AWXDxurv; _fbp=fb.1.1590459133095.921570233; presence=EDvF3EtimeF1590459251EuserFA21B01709940468A2EstateFDsb2F1590404415074EatF1590409329403Et3F_5bDiFA2user_3a1B03B530076A2EoF1EfF1CAcDiFA2user_3a1B06445833361A2EoF2EfF2CAcDiFA2user_3a1B05850729846A2EoF3EfF3C_5dEutc3F1590458568555G590458568605CEchF_7bCC; wd=1366x282; act=1590459317680%2F2|AQFfl1bnjfLk%3AAQH3dmzpNjiX</value>
</setting>
<setting name="My_Token" serializeAs="String">
<value />
</setting>
<setting name="sPostWatchLive2" serializeAs="String">
<value>q=%5B%7B%22user%22%3A%22{UserID}%22%2C%22page_id%22%3A%22{PageID}%22%2C%22posts%22%3A%5B%5B%22video_player%22%2C%7B%22logData%22%3A%7B%22ad_client_token%22%3Anull%2C%22available_qualities%22%3A2%2C%22autoplay_eligible%22%3Afalse%2C%22autoplay_setting%22%3A%22off%22%2C%22broadcaster_origin%22%3A%22prn1%22%2C%22projection%22%3A%22flat%22%2C%22player_version%22%3A%22pleasantville%22%2C%22video_id%22%3A%22{VideoID}%22%2C%22player_state%22%3A%22playing%22%2C%22player_origin%22%3A%22permalink%22%2C%22player_suborigin%22%3A%22permalink%22%2C%22playback_is_broadcast%22%3Atrue%2C%22playback_duration%22%3A2596675.01299%2C%22referrer%22%3A%22%22%2C%22streaming_format%22%3A%22dash%22%2C%22video_time_position%22%3A4692.573323%2C%22playback_is_live_streaming%22%3Atrue%2C%22video_channel_id%22%3A%22387437888106301%3A{VideoID}%22%2C%22reaction_video_channel_type%22%3Anull%2C%22fbcdn_pop%22%3Anull%2C%22representation_id%22%3A%22live-md-v%22%2C%22video_bandwidth%22%3A1105553.0206082368%2C%22is_abr_enabled%22%3Atrue%2C%22feed_position%22%3Anull%2C%22video_chaining_depth_level%22%3A0%2C%22video_chaining_session_id%22%3A%22f3d6548c7962404%22%2C%22channel_eligibility%22%3A%22eligible%22%2C%22autoplay_failure_reasons%22%3A%22%5B%5C%22server_blocked%5C%22%5D%22%2C%22video_play_reason%22%3A%22user_initiated%22%2C%22seq_num%22%3A14%2C%22initial_event%22%3Atrue%2C%22time_ms%22%3A1506598924592%2C%22time%22%3A1506598925%2C%22is_stalling%22%3Afalse%2C%22ft%22%3A%7B%7D%7D%2C%22event%22%3A%22played_for_three_seconds%22%2C%22scriptPath%22%3A%22XVideoPermalinkController%22%2C%22source%22%3A%22permalink%22%7D%2C1506598924592%2C0%5D%2C%5B%22ods%3ARTISession%22%2C%7B%22request.error%22%3A%5B1%5D%7D%2C1506598925596%2C0%5D%2C%5B%22ods%3Ajs_error_reporting%22%2C%7B%22error_signal.category.async_error%22%3A%5B2%5D%7D%2C1506598925596%2C0%5D%5D%2C%22trigger%22%3A%22ods%3ARTISession%22%2C%22send_method%22%3A%22ajax%22%7D%5D</value>
</setting>
</Web_AutoSeeding3.My.MySettings>
</applicationSettings>
<devExpress>
<themes enableThemesAssembly="true" styleSheetTheme="" theme="" customThemeAssemblies="" baseColor="" font="" />
<compression enableHtmlCompression="false" enableCallbackCompression="true" enableResourceCompression="true" enableResourceMerging="true" />
<settings accessibilityCompliant="false" bootstrapMode="Bootstrap3" doctypeMode="Html5" rightToLeft="false" checkReferencesToExternalScripts="true" protectControlState="true" ieCompatibilityVersion="edge" />
<errors callbackErrorRedirectUrl="" />
</devExpress>
</configuration>
<!--ProjectGuid: CD8E53D2-B177-494B-AE08-1CEEF98E43D7-->
please help me to run this
thanks
In my Web.config I got forms type authentication. From VS 2013 I got no problem login to my website. this site is created as standalone application pool using Integrated pipeline mode. when I published this site I cannot login anymore. I got error " Unknown exception occurs while logon to system. In IIS under authentication I have Anonymous Athentication disabled, Forms Athentication enabled, windows athentication enabled and ASP.NET disabled. if I disabled windows athentication I will get not authorize. and even if enable Anonymous athentication I still can't login. check my web.config code below. any idea ? thanks
<?xml version="1.0" encoding="UTF-8"?><configuration>
<configSections>
<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">
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
</sectionGroup>
<sectionGroup name="spring">
<section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web"/>
<section name="typeAliases" type="Spring.Context.Support.TypeAliasesSectionHandler, Spring.Core"/>
</sectionGroup>
<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging"/>
</sectionGroup>
<section name="dataContext" type="DotWebDev.Common.Data.DataContextConfiguration, DotWebDev.Common"/>
<section name="framePage" type="DotWebDev.UI.DynamicPages.Configurations.FramePageConfigurationSection, DotWebDev.UI"/></configSections>
<appSettings>
<add key="autoFormsAuthentication" value="false" />
<add key="enableSimpleMembership" value="false"/>
<add key="PreserveLoginUrl" value="true" />
</appSettings>
<dataContext enabledMSDTC="false" commandTimeout="30">
<settings>
<setting name="MembershipDataContext"connectionType="System.Data.SqlClient.SqlConnection" connectionStringName="Global"/>
<setting name="ExtensionModelDataContext" connectionType="System.Data.SqlClient.SqlConnection" connectionStringName="Global"/>
<setting name="ProductManagementDataContext" connectionType="System.Data.SqlClient.SqlConnection" connectionStringName="Global"/>
</settings>
</dataContext>
<connectionStrings>
<add name="Global" providerName="System.Data.SqlClient" connectionString="Data Source=.\sqlexpress;Initial Catalog=UadminMgr;Integrated Security=SSPI;persist security info=False; Trusted_Connection=Yes; Max Pool Size=4096; Min Pool Size=10"/>
</connectionStrings>
<system.web>
<compilation debug="true">
<assemblies>
<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.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<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"/></assemblies>
</compilation>
<authentication mode="Forms">
<forms name=".Global" defaultUrl="FramePage.svc" loginUrl="LogOn.aspx" slidingExpiration="true" timeout="60"/>
</authentication>
<httpRuntime maxRequestLength="4096"/>
<pages configSource="Config\pages.config"/>
<globalization culture="auto" uiCulture="auto"/>
<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 path="*.aspx" verb="*" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/>
<add path="DynamicPage.svc" verb="*" type="DotWebDev.UI.Services.DynamicPageHandler, DotWebDev.UI"/>
<add path="DynamicPageDataService.svc" verb="GET, POST" type="DotWebDev.UI.Services.DynamicPageDataServiceHandler, DotWebDev.UI"/>
<add path="DynamicPageDownloadExcel.svc" verb="*" type="DotWebDev.UI.Services.DynamicPageDataToExcelHandler, DotWebDev.UI"/>
<add path="DynamicPageHtmlPrinter.svc" verb="*" type="DotWebDev.UI.Services.DynamicPageDataToHtmlHandler, DotWebDev.UI"/>
<add path="DetailPanel.svc" verb="*" type="DotWebDev.UI.Services.DetailPanelPageHandler, DotWebDev.UI"/>
<add path="AggregatePanel.svc" verb="*" type="DotWebDev.UI.Services.AggregatePanelPageHandler, DotWebDev.UI"/>
<add path="FramePage.svc" verb="*" type="DotWebDev.UI.Services.FramePageHandler, DotWebDev.UI"/>
<add path="ContextMonitor.ashx" verb="*" type="Spring.Web.Support.ContextMonitor, Spring.Web"/>
<add path="*_AppService.axd" verb="*" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web"/>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="PlatformModule" type="DotWebDev.Platform.PlatformModule, DotWebDev.Platform"/>
</httpModules>
<machineKey configSource="Config\machineKey.config"/>
<membership configSource="Config\membership.config"/>
<roleManager configSource="Config\roleManager.config"/>
<sessionState mode="InProc" stateNetworkTimeout="30" timeout="14400"/>
<customErrors configSource="Config\customErrors.config"/>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="PlatformModule" type="DotWebDev.Platform.PlatformModule, DotWebDev.Platform"/>
</modules>
<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" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<add name="DynamicPage" path="DynamicPage.svc" preCondition="managedHandler" verb="*" type="DotWebDev.UI.Services.DynamicPageHandler, DotWebDev.UI"/>
<add name="DynamicPageDataService" path="DynamicPageDataService.svc" preCondition="managedHandler" verb="GET, POST" type="DotWebDev.UI.Services.DynamicPageDataServiceHandler, DotWebDev.UI"/>
<add name="DynamicPageDownloadExcel" path="DynamicPageDownloadExcel.svc" preCondition="managedHandler" verb="GET, POST" type="DotWebDev.UI.Services.DynamicPageDataToExcelHandler, DotWebDev.UI"/>
<add name="DynamicPageHtmlPrinter" path="DynamicPageHtmlPrinter.svc" preCondition="managedHandler" verb="*" type="DotWebDev.UI.Services.DynamicPageDataToHtmlHandler, DotWebDev.UI"/>
<add name="DetailPanel" path="DetailPanel.svc" preCondition="managedHandler" verb="*" type="DotWebDev.UI.Services.DetailPanelPageHandler, DotWebDev.UI"/>
<add name="AggregatePanel" path="AggregatePanel.svc" preCondition="managedHandler" verb="*" type="DotWebDev.UI.Services.AggregatePanelPageHandler, DotWebDev.UI"/>
<add name="FramePage" path="FramePage.svc" preCondition="managedHandler" verb="*" type="DotWebDev.UI.Services.FramePageHandler, DotWebDev.UI"/>
</handlers>
<defaultDocument>
<files>
<clear/>
<add value="LogOn.aspx"/>
</files>
</defaultDocument>
</system.webServer>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<behaviors>
<serviceBehaviors>
<behavior name="AuthenticationBehavior">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="false"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="RestfulEndpointBehavior">
<dataContractSerializer maxItemsInObjectGraph="2147483646"/>
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<webHttpBinding>
<binding name="HttpStreaming">
<security mode="None">
<transport clientCredentialType="None"/>
</security>
</binding>
</webHttpBinding>
<mexHttpBinding>
<binding name="HttpStreaming" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="01:00:00" sendTimeout="01:00:00"/>
</mexHttpBinding>
</bindings>
<services>
<service name="DotWebDev.Platform.Services.OrganizationService" behaviorConfiguration="AuthenticationBehavior">
<clear/>
<endpoint address="http://localhost:51702/Services/OrganizationService.svc" behaviorConfiguration="RestfulEndpointBehavior" binding="webHttpBinding" bindingConfiguration="HttpStreaming" contract="DotWebDev.Platform.Services.IOrganizationService" listenUriMode="Explicit"/>
<endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="HttpStreaming" contract="IMetadataExchange"/>
</service>
<service name="DotWebDev.Platform.Services.RoleService" behaviorConfiguration="AuthenticationBehavior">
<clear/>
<endpoint address="http://localhost:51702/Services/RoleService.svc" behaviorConfiguration="RestfulEndpointBehavior" binding="webHttpBinding" bindingConfiguration="HttpStreaming" contract="DotWebDev.Platform.Services.IRoleService" listenUriMode="Explicit"/>
<endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="HttpStreaming" contract="IMetadataExchange"/>
</service>
<service name="DotWebDev.Platform.Services.HierarchyService" behaviorConfiguration="AuthenticationBehavior">
<clear/>
<endpoint address="http://localhost:51702/Services/HierarchyService.svc" behaviorConfiguration="RestfulEndpointBehavior" binding="webHttpBinding" bindingConfiguration="HttpStreaming" contract="DotWebDev.Platform.Services.IHierarchyService" listenUriMode="Explicit"/>
<endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="HttpStreaming" contract="IMetadataExchange"/>
</service>
<service name="DotWebDev.Platform.Services.ConcreteDataService" behaviorConfiguration="AuthenticationBehavior">
<clear/>
<endpoint address="http://localhost:51702/Services/ConcreteDataService.svc" behaviorConfiguration="RestfulEndpointBehavior" binding="webHttpBinding" bindingConfiguration="HttpStreaming" contract="DotWebDev.Platform.Services.IConcreteDataService" listenUriMode="Explicit"/>
<endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="HttpStreaming" contract="IMetadataExchange"/>
</service>
</services>
</system.serviceModel>
<spring>
<typeAliases>
<alias name="WebResource" type="DotWebDev.UI.WebResources.WebResource, DotWebDev.UI"/>
<alias name="WebResourceGroup" type="DotWebDev.UI.WebResources.WebResourceGroup, DotWebDev.UI"/>
</typeAliases>
<context>
<resource uri="~/Spring/all.config"/>
</context>
</spring>
<common>
<logging>
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net">
<!-- Possible values are ALL, DEBUG, INFO, WARN, ERROR, FATAL, OFF -->
<arg key="Level" value="ERROR"/>
<arg key="configType" value="FILE"/>
<arg key="configFile" value="~/Config/log4net.config"/>
</factoryAdapter>
</logging>
</common>
<framePage NavigationBarTitle="$Resources.Common.NavigationBarTitle, DotWebDev.Web$" FramePageTitle="$Resources.Common.FramePageTitle, DotWebDev.Web$" HeaderTemplate="~/Templates/Header.ascx" DefaultPageUrl="Default.aspx" DefaultTabTitle="$Resources.Common.DefaultTabTitle, DotWebDev.Web$" EnableMultipleTabs="true" MaximumTabs="10"/>
Stack trace:
à DotWebDev.Platform.HttpAuthenticationContext.Login(String username, String password)
à DotWebDev.Web.LogOn.ButtonLogin_Click(Object sender, EventArgs e)
2015-07-27 13:13:11,536 ERROR DotWebDev.Platform.Linq.MembershipDbProvider [(null)] - System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à DotWebDev.Platform.Linq.MembershipDbProvider.EncodePassword(String password, String passwordSalt, Int32 passwordFormat)
à DotWebDev.Platform.Linq.MembershipDbProvider.Login(String username, String password)
2015-07-27 13:13:11,565 ERROR ASP.logon_aspx [(null)] - System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à DotWebDev.Platform.Linq.MembershipDbProvider.EncodePassword(String password, String passwordSalt, Int32 passwordFormat)
à DotWebDev.Platform.Linq.MembershipDbProvider.Login(String username, String password)
à DotWebDev.Platform.HttpAuthenticationContext.Login(String username, String password)
à DotWebDev.Web.LogOn.ButtonLogin_Click(Object sender, EventArgs e)
2015-07-27 13:14:07,611 ERROR DotWebDev.Platform.Linq.MembershipDbProvider [(null)] - System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à DotWebDev.Platform.Linq.MembershipDbProvider.EncodePassword(String password, String passwordSalt, Int32 passwordFormat)
à DotWebDev.Platform.Linq.MembershipDbProvider.Login(String username, String password)
2015-07-27 13:14:07,611 ERROR ASP.logon_aspx [(null)] - System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à DotWebDev.Platform.Linq.MembershipDbProvider.EncodePassword(String password, String passwordSalt, Int32 passwordFormat)
à DotWebDev.Platform.Linq.MembershipDbProvider.Login(String username, String password)
à DotWebDev.Platform.HttpAuthenticationContext.Login(String username, String password)
à DotWebDev.Web.LogOn.ButtonLogin_Click(Object sender, EventArgs e)
2015-07-27 13:14:26,127 ERROR DotWebDev.Platform.Linq.MembershipDbProvider [(null)] - System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à DotWebDev.Platform.Linq.MembershipDbProvider.EncodePassword(String password, String passwordSalt, Int32 passwordFormat)
à DotWebDev.Platform.Linq.MembershipDbProvider.Login(String username, String password)
2015-07-27 13:14:26,127 ERROR ASP.logon_aspx [(null)] - System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à DotWebDev.Platform.Linq.MembershipDbProvider.EncodePassword(String password, String passwordSalt, Int32 passwordFormat)
à DotWebDev.Platform.Linq.MembershipDbProvider.Login(String username, String password)
à DotWebDev.Platform.HttpAuthenticationContext.Login(String username, String password)
à DotWebDev.Web.LogOn.ButtonLogin_Click(Object sender, EventArgs e)
This is really strange, but I originally had a Visual Studio 2008 web forms application that I upgraded to .Net 4 but the IDE is Visual Studio 2012.
My membership system worked great before the upgrade, now it is completely broken.
I actually recreated the login controls, login, password recovery, register in an Account folder. I changed the reference to my login path in web.config.
I also checked the Asp.net configuration page to see if it sees my users and YES it does.
However when I attempt to login, it reports back a failure. I verified the username was correct and just in case somehow the password changed, I tried using the password recovery form.
The password recovery form reports back that it can't find the user name. I have triple checked that the user name (an email address) is correct, in both the configuration and the database. It's there and spelled right.
What is going on???
Thanks
<configuration>
<appSettings>
<add key="FolderPath" value="xCellFiles/" />
<add key="aspnet:MaxHttpCollectionKeys" value="2000" />
</appSettings>
<connectionStrings>
<clear />
<add name="SalonConnectionString" connectionString="Data Source=76.71.167.122;Initial Catalog=databasename;User Id=id;Password=Password" providerName="System.Data.SqlClient" />
<add name="Excel03ConString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0}; Extended Properties='Excel 8.0;HDR={1}'" />
<add name="Excel07ConString" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0}; Extended Properties='Excel 8.0;HDR={1}'" />
</connectionStrings>
<system.web>
<healthMonitoring enabled="true">
<eventMappings>
<clear />
<!-- Log ALL error events -->
<add name="All Errors" type="System.Web.Management.WebBaseErrorEvent" startEventCode="0" endEventCode="2147483647" />
<!-- Log application startup/shutdown events -->
<add name="Application Events" type="System.Web.Management.WebApplicationLifetimeEvent" startEventCode="0" endEventCode="2147483647" />
</eventMappings>
<providers>
<clear />
<!-- Provide any customized SqlWebEventProvider information here (such as a different connection string name value -->
<add connectionStringName="SalonConnectionString" maxEventDetailsLength="1073741823" buffer="false" name="SqlWebEventProvider" type="System.Web.Management.SqlWebEventProvider" />
</providers>
<rules>
<clear />
<add name="All Errors Default" eventName="All Errors" provider="SqlWebEventProvider" profile="Default" minInstances="1" maxLimit="Infinite" minInterval="00:00:00" />
<add name="Application Events Default" eventName="Application Events" provider="SqlWebEventProvider" profile="Default" minInstances="1" maxLimit="Infinite" minInterval="00:00:00" />
</rules>
</healthMonitoring>
<!-- reduces size of http response (removes x-aspnet-version) -->
<httpRuntime enableVersionHeader="false" />
<trust level="Full" />
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.Services.Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Services.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Services.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</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.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="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
</controls>
</pages>
<!--<httpRuntime maxRequestLength="1048576" executionTimeout="3600" />-->
<!-- Gets and sets the amount of time, in minutes, allowed between requests before the session-state provider terminates the session.
Default is 20 minute.
-->
<sessionState mode="InProc" cookieless="AutoDetect" timeout="900" />
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" enableCrossAppRedirects="true" slidingExpiration="true" cookieless="AutoDetect" timeout="900" defaultUrl="/Stylist/Redirecting.aspx" name=".ASPXAUTH" />
</authentication>
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
<providers>
<add name="XmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="Web.sitemap" securityTrimmingEnabled="true" />
</providers>
</siteMap>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="On" defaultRedirect="ErrorPage.aspx">
<error statusCode="404" redirect="LoginReg.aspx" />
</customErrors>
-->
<customErrors defaultRedirect="~/GeneralErrorPage.aspx" mode="Off">
</customErrors>
<trace enabled="false" requestLimit="15" pageOutput="false" traceMode="SortByTime" localOnly="true" />
<membership defaultProvider="SalonSqlMembershipProvider">
<providers>
<clear />
<add name="SalonSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="SalonConnectionString"
enablePasswordRetrieval="false" enablePasswordReset="true"
requiresQuestionAndAnswer="true" applicationName="/Service2020"
requiresUniqueEmail="false" passwordFormat="Hashed"
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10" passwordStrengthRegularExpression="^.*(?=.{6,})(?=.*\d).*$" />
</providers>
</membership>
<roleManager enabled="true" defaultProvider="SalonNetRoleProvider">
<providers>
<clear />
<add name="SalonNetRoleProvider" connectionStringName="SalonConnectionString" applicationName="/Service2020" type="System.Web.Security.SqlRoleProvider,
System.Web,
Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</roleManager>
</system.web>
<location path="ChangePassword.aspx">
<system.web>
<authorization>
<allow users="?" />
<deny users="*" />
</authorization>
</system.web>
</location>
<location path="PasswordRecovery.aspx">
<system.web>
<authorization>
<allow users="?" />
<deny users="*" />
</authorization>
</system.web>
</location>
<system.net>
<mailSettings>
<smtp from="mail#address.com">
<network host="mail.address.com" password="password" userName="mail#address.com" />
</smtp>
</mailSettings>
</system.net>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<!--<system.web.extensions>
<scripting>
<webServices>
<authenticationService enabled="true" />
</webServices>
</scripting>
</system.web.extensions>-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<!--<httpErrors errorMode="Custom">
<remove statusCode="404" />
<error statusCode="404" path="UnauthorizedAccess.aspx" responseMode="Redirect" />
</httpErrors>-->
<modules runAllManagedModulesForAllRequests="true" />
<handlers>
<remove name="UrlRoutingHandler" />
</handlers>
<!--<staticContent> when getting ready to beta include in release
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" />
</staticContent>-->
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00" />
</staticContent>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="AjaxControlToolkit" publicKeyToken="28f01b0e84b6d53e" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.5.7.123" newVersion="3.5.7.123" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
According to the following Microsoft links
hashing algorithms
http://www.asp.net/whitepapers/aspnet4/breaking-changes#0.1__Toc256770148
root configurations
http://www.asp.net/whitepapers/aspnet4/breaking-changes#0.1__Toc256770149
main document link
http://www.asp.net/whitepapers/aspnet4/breaking-changes
It really matters on which SP you have installed as it may decide the outcome on which route you take to resolve your issue. Also you will need to know if the KB958854 hotfix is installed or not, you can find this by looking in your Add/Remove programs list (view installed updates - top left of that window)
Also maybe as simple test (first) you could add the following element into your config file under the SYSTEM.WEB section
<machineKey validation="SHA1" />
which will revert the hashing algorithm back to the older format HMACSHA1 and not the newer algorithm which is HMACSHA256 If that fixes it Fine, if not simply remove the element again.
I have created and hosted an ASP.NET 4 on an exteranl server,it can run fine,but the Entity framework cannot access to the MySQL DataBase.
i can get access to mysql using PHP for exemple [ just to check if the login and Password,and DB's name are corrects],but not with EF.
my web.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections></configSections>
<appSettings />
<!--
<connectionStrings>
<add name="ImmoEntities" connectionString="metadata=res://*/Model.ImmoModel.csdl|res://*/Model.ImmoModel.ssdl|res://*/Model.ImmoModel.msl;provider=MySql.Data.MySqlClient;provider connection string="server=*****.info;Password=*****;User Id=*****;database=*****"" providerName="System.Data.EntityClient" />
</connectionStrings>
<system.web>
<globalization culture="auto:fr-FR" uiCulture="auto:fr-FR" />
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
<providers>
<clear />
<add name="XmlSiteMapProvider" type="System.Web.XmlSiteMapProvider" siteMapFile="Web1.siteMap" />
<add name="web1" type="System.Web.XmlSiteMapProvider" siteMapFile="/Web1.sitemap" />
<add name="web" type="System.Web.XmlSiteMapProvider" siteMapFile="/Web.sitemap" />
<add name="web3" type="System.Web.XmlSiteMapProvider" siteMapFile="/Web3.sitemap" />
<add name="web4" type="System.Web.XmlSiteMapProvider" siteMapFile="/Web4.sitemap" />
</providers>
</siteMap>
<!-- Web.Config Configuration File -->
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<!----- if i uncommented this section my application cannot run -> 500 internal server error
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
-->
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows" />
<httpHandlers>
<add path="CaptchaImage.axd" verb="GET" type="MSCaptcha.CaptchaImageHandler, MSCaptcha" />
</httpHandlers>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<controls>
<add assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
<add tagPrefix="cc1" assembly="MSCaptcha" namespace="MSCaptcha" />
</controls>
</pages>
</system.web>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
<system.data>
<DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient" />
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories>
</system.data>
</configuration>
my Bin Folder contains:
AjaxControlToolkit.dll
FredCK.FCKeditorV2.dll
MSCaptcha.dll
MyApp.dll
MyApp.pdb
MySql.Data.dll
MySql.Data.Entity.dll
MySql.Web.dll
System.ComponentModel.DataAnnotations.dll
System.Core.dll
System.Data.Entity.dll
System.Data.Linq.dll
System.Design.dll
System.Web.DynamicData.dll
System.Web.Entity.dll
System.Web.Extensions.Design.dll
System.Web.Extensions.dll
System.Windows.Forms.dll
System.Xml.Linq.dll
Are there any suggestions on how to fixe this probleme?
I've been tasked with enabling a dialog that allows a user to select multiple files and upload them at once. I chose uploadify and got it to work with forms authentication. When I enable active directory all browsers fail / hang except for IE9. After a couple of weeks we determined that the quickest course would be to separate the code into another site and call it from our first site (ugly, I know, but we need to deliver this to the client so...).
I made a new site and copied the functionality there. whenever I enter directly (without going to the AD site first) it works without problems. if I then log into the AD site and go back to the upload page the request arrives with no files to the server.
Here are the relevant config bits:
web.config (AD Site)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<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>
<sectionGroup name="devExpress">
<section name="settings" type="DevExpress.Web.ASPxClasses.SettingsConfigurationSection, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
<section name="compression" type="DevExpress.Web.ASPxClasses.CompressionConfigurationSection, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
<section name="themes" type="DevExpress.Web.ASPxClasses.ThemesConfigurationSection, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
<section name="errors" type="DevExpress.Web.ASPxClasses.ErrorsConfigurationSection, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" requirePermission="false" />
</sectionGroup>
</configSections>
<connectionStrings>
<add name="sae_codelcoConnectionString" connectionString="server=192.168.4.142\sql2008r2;uid=*******;pwd=*******;database=testing_codelco" providerName="System.Data.SqlClient" />
<add name="saeConnectionString" connectionString="server=192.168.4.142\sql2008r2;uid=*******;pwd=*******;database=testing_codelco" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="true" defaultLanguage="vb" maxBatchGeneratedFileSize="3000">
<assemblies>
<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.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
<customErrors mode="Off" />
<!--<authentication mode="Forms">
<forms name="aspnet" path="/" loginUrl="logon.aspx" protection="All" timeout="30" />
</authentication>-->
<authentication mode="Windows"></authentication>
<httpRuntime executionTimeout="100000" maxRequestLength="1234567" useFullyQualifiedRedirectUrl="false" requestLengthDiskThreshold="1234567" />
<authorization>
<allow users="?" />
</authorization>
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
<globalization culture="es-CL" uiCulture="es" requestEncoding="UTF-8" responseEncoding="UTF-8" fileEncoding="UTF-8" />
<httpHandlers>
<remove path="*.asmx" verb="*" />
<add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
validate="false" />
<add path="ajax/*.ashx" verb="POST,GET" type="Ajax.PageHandlerFactory, Ajax" />
<add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
validate="false" />
<add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
validate="false" />
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
validate="false" />
</httpHandlers>
<xhtmlConformance mode="Legacy" />
<pages enableEventValidation="false" validateRequest="false">
<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" />
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting"
assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</controls>
</pages>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule" />
</httpModules>
</system.web>
<location path="paginas/ordentrabajo/encuesta.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="js/uploadify/uploadify.swf">
<system.web>
<authorization>
<allow users="?" />
</authorization>
</system.web>
</location>
<location path="paginas/ordentrabajo/encuesta_response_html.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="paginas/resp_remotas/tickets_abiertos.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="no_acceso.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="paginas/resp_remotas/cerrar_tickets.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="paginas/ticket/logon_tareas.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="paginas/ticket/tarea_ticket.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="paginas/encDinamica/encDinamica_basica_respuesta_persona.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="paginas/encDinamica/encDinamica_basica_respuesta_persona_display.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<appSettings>
<add key="PathLocalSitio" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\" />
<add key="pathDocsTicket" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\Paginas\Docs\" />
<add key="pathDocumentos" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\Paginas\Documentos\Archivos\" />
<add key="urlSubirDocs" value="http://192.168.4.155/subirdocs/default.aspx" />
<add key="Factor Semaforo Verde" value="50" />
<add key="Factor Semaforo Amarillo" value="75" />
<add key="Factor Semaforo Naranja" value="100" />
<add key="Factor Semaforo Rojo" value="150" />
<add key="Factor Semaforo Morado" value="200" />
<add key="Filtros Upload" value="exe,bat,dll,msi" />
<add key="Filtros Upload Mail" value="gif,jpg,jpeg" />
<add key="Server_Smtp" value="choclio.mosaq.com" />
<add key="Server_Smtp_Autenticar" value="1" />
<add key="Server_Smtp_Login" value="wquiroz" />
<add key="Server_Smtp_Password" value="rmQgGN34" />
<add key="from_mail" value="ialvarez#mosaq.com" />
<add key="DictionaryFolder" value="Paginas\NetSpell\dic" />
<add key="pathDocsAnalisisIPC" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\documentos\AnalisisIPC\" />
<add key="pathDocsMailsCRM" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\CRM\AdjuntosMails\" />
<add key="Mail Supervisor Mesa" value="adminsae#desarrollo_sae.org" />
<add key="Mail Administrador Contrato" value="adminsae#desarrollo_sae.org" />
<add key="HostVariable" value="1" />
<add key="Url_Sitio_Externo" value="http://192.168.4.144/sae_codelco/" />
<add key="Url_Sitio" value="http://192.168.4.155/sae_codelco/" />
<add key="ipExterna" value="200.27.57.180" />
<add key="ActiveDirectoryLogon" value="1" />
<add key="strDomain" value="MOSAQ" />
<add key="pathLDAP" value="LDAP://mosaq.local.cl/DC=mosaq,dc=local,dc=cl" />
<add key="PathMapaSitioDisco" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\imagenes\mapas\" />
<add key="PathMapaSitios" value="../../imagenes/mapas/" />
<add key="IPReportes" value="200.27.164.74/ReportServer$CODELCO/Pages/ReportViewer.aspx?/reportes_codelco/" />
<add key="EspecialidadEjecutivosCRM" value="14" />
<add key="HabilitaGenerica1Ticket" value="0" />
<add key="Evento Retiro Componente" value="11169" />
<add key="Evento Entrega Componente" value="11170" />
<add key="Evento Actualizacion Componente" value="11171" />
<add key="MisTicketsMuestraTpoRemanenteInferior" value="0" />
<add key="MisTicketsMuestraTpoRemanenteSuperior" value="0" />
<add key="MisTicketsMuestraCriticidad" value="0" />
<add key="Agregar_Solucion_En_Solucion_En_Linea" value="1" />
<add key="Id_menu_Tickets_Generales" value="132" />
<add key="Ver_Todas_las_Criticidades" value="1" />
<add key="Evento_Limpia_Password_Intranet" value="506" />
<add key="Solucion_Limpia_Password_Intranet" value="128" />
<add key="Template" value="default" />
<add key="RptCalidadVerCumpleSup" value="0" />
<add key="ObsEsperaClienteTicket" value="0" />
<add key="idCatGeneralDocs" value="0" />
<add key="pathCMDBModelos" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\CMDB\" />
<add key="pathDocsInst" value="E:\data\Projects\mosaq\SAE_CODELCO\SAE_CODELCO\Sitio\Instalaciones_ci\Docs\" />
<add key="IdCriticidadPersonaNormal" value="1" />
<add key="BusquedaIniIngresoOT" value="0" />
<add key="VerResueltosListaPend" value="1" />
<add key="UrlSitioProyectos" value="http://192.168.4.155/sae_codelco/" />
<add key="CierreOT" value="1" />
<add key="IPExternoReportes" value="200.27.57.180:8080" />
<add key="pathDocumentosProyectos" value="" />
<add key="IngresaNegocioEnOT" value="0" />
<add key="BloquearModificayELiminaNotas" value="1" />
<add key="IncluirCodigoenLabelRut" value="0" />
<add key="MisTicketsMuestraComponentes" value="0" />
<add key="MisTicketsMuestraRegion" value="1" />
<add key="encuestaDinamicaBasica" value="0" />
<add key="encuestaDinamicaAvanzada" value="0" />
<add key="AdmiteCreacionPersonas" value="1" />
<add key="AdmiteCreacionPersonasIdEmpresas" value="" />
<add key="IdMedioAtencionTareaAgenda" value="4" />
<add key="IdEncuestaReclamoTarea" value="2" />
<add key="IdEncuestaFelicitacionesTarea" value="1" />
<add key="IdEncuestaReclamoProceso" value="0" />
<add key="IdEncuestaFelicitacionesProceso" value="0" />
<add key="ResolverPorEmail" value="0" />
<add key="idEvtoReposAlta" value="1" />
<add key="idEvtoReposBaja" value="2" />
<add key="EmpresasRecatalogar" value="2,3,4,5" />
<add key="UtilizaCorrecionFechaComprometida" value="0" />
<add key="ModCriticidadEnOT" value="1" />
<add key="UsaReglaFechasAmsa" value="0" />
<add key="AtentoMisTicketsResaltaMasivo" value="1" />
<add key="Cliente" value="Atento" />
<add key="LlamadaRapidaN1N2N3" value="3,10,Consulta" />
<add key="LlamadaRapidaIDEvento" value="11392" />
<add key="urlSitioNoticias" value="http://www.saedemo.cl/noticias/default.aspx?rawHsh=" />
<add key="solicIdEstado" value="1" />
<add key="IdMedioAtencionSolContacto" value="5" />
<add key="solicIdTipo" value="3" />
<add key="idGenericoSolicitantePGFensaMademsa" value="1" />
<add key="IDTGenjunaeb" value="221" />
<add key="IDTGenmademsa" value="220" />
<add key="IDTGenfensa" value="219" />
<add key="SearchByDescriptionInActive" value="0" />
<add key="SearchActiveUserName" value="Prueba" />
<add key="SearchActiveUserPassword" value="12345678" />
<add key="junaeb" value="0" />
<add key="gruposCAS" value="1" />
<add key="bpm2009" value="0" />
<add key="url_bpm2009" value="http://ignacio-pc/websaeprocesos2009/paginas/ticket_proceso.aspx" />
<add key="SaeV2MDB.WSProcesos2009.WsInstansiaProceso" value="http://ignacio-pc/WSSAEProcesos2009/WsInstansiaProceso.asmx" />
<add key="urlReporteContratosPagos" value="http://192.168.4.73/ReportServer$CODELCO/Pages/ReportViewer.aspx?%2freportes_codelco%2fEstado_de_pago" />
<add key="url_rfc" value="http://192.168.4.155/sae_codelco_rfc/default.aspx" />
<add key="IdMedioAtencionDefectoOT" value="2" />
<add key="IdTipoCatalogoDefectoOT" value="1" />
<add key="Proveedores" value="8=Grupo Mesa;15=Grupo Operaciones" />
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />
</appSettings>
<system.codedom>
<compilers>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5" />
<providerOption name="OptionInfer" value="true" />
<providerOption name="WarnAsError" value="false" />
</compiler>
</compilers>
</system.codedom>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<remove name="ScriptModule" />
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
name="ASPxHttpHandlerModule" />
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated" />
<remove name="ScriptHandlerFactory" />
<remove name="ScriptHandlerFactoryAppServices" />
<remove name="ScriptResource" />
<remove name="ChartImageHandler" />
<add name="ajax/*.ashx_POST,GET" path="ajax/*.ashx" verb="POST,GET"
type="Ajax.PageHandlerFactory, Ajax" preCondition="integratedMode,runtimeVersionv2.0" />
<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" />
<add type="DevExpress.Web.ASPxUploadControl.ASPxUploadProgressHttpHandler, DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
verb="GET,POST" path="ASPxUploadProgressHandlerPage.ashx" name="ASPxUploadProgressHandler"
preCondition="integratedMode" />
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST"
path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</handlers>
</system.webServer>
<runtime>
<assemblyBinding appliesTo="v2.0.50727" 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>
<devExpress>
<settings rightToLeft="false" />
<compression enableHtmlCompression="false" enableCallbackCompression="true" enableResourceCompression="true" enableResourceMerging="false" />
<themes enableThemesAssembly="true" />
<errors callbackErrorRedirectUrl="" />
</devExpress>
</configuration>
global.asax (AD site)
Imports saeFrameWork
Imports SaeConnectorV1
Imports System.Web
Imports System.Web.SessionState
Public Class [Global]
Inherits System.Web.HttpApplication
#Region " Component Designer Generated Code "
Public Sub New()
MyBase.New()
'This call is required by the Component Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Required by the Component Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Component Designer
'It can be modified using the Component Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
components = New System.ComponentModel.Container()
End Sub
#End Region
Dim PathLocalArchivoConfiguracion As String = ConfigurationManager.AppSettings("PathLocalSitio")
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
' Fires when the application is started
End Sub
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
Dim host As String = Request.ServerVariables("server_name")
If Convert.ToBoolean(Convert.ToInt32(ConfigurationManager.AppSettings("HostVariable"))) Then
Dim i As Integer = 0
Dim ipExterna As Array = Split(ConfigurationManager.AppSettings("ipExterna"), ",")
Dim ipExternaReportes As Array = Split(ConfigurationManager.AppSettings("IPExternoReportes"), ",")
Dim UrlSitiosExternos As Array = Split(ConfigurationManager.AppSettings("Url_Sitio_Externo"), ",")
For i = 0 To UBound(ipExterna)
If ipExterna(i) = host Then
Session("Url_Sitio") = UrlSitiosExternos(i)
Session("IPReportesBirt") = ipExternaReportes(i)
Exit For
Else
Session("Url_Sitio") = ConfigurationManager.AppSettings("Url_Sitio")
Session("IPReportesBirt") = ConfigurationManager.AppSettings("IPReportes")
End If
Next
'If ipExterna = host Then
' Session("Url_Sitio") = ConfigurationManager.AppSettings("Url_Sitio_Externo")
' Session("IPReportesBirt") = ConfigurationManager.AppSettings("IPExternoReportes")
'Else
' Session("Url_Sitio") = ConfigurationManager.AppSettings("Url_Sitio")
' Session("IPReportesBirt") = ConfigurationManager.AppSettings("IPReportes")
'End If
Else
Session("Url_Sitio") = ConfigurationManager.AppSettings("Url_Sitio")
Session("IPReportesBirt") = ConfigurationManager.AppSettings("IPReportes")
End If
Session("template") = ConfigurationManager.AppSettings("Template")
Session("call") = Nothing
' Fires when the session is started
'Dim oDbCliente As New DbCliente
'Try
' Dim sql As String = ""
' Dim dsMA As DataSet
' Dim dsNivel1 As DataSet
' Dim fwkCfgFile As saeFwk_ConfigFileSettings
' Dim dbtype As String = ""
' Dim PathLocalArchivoConfiguracion As String = ConfigurationManager.AppSettings("PathLocalSitio")
' fwkCfgFile = New saeFwk_ConfigFileSettings 'instancia clase de lectura de archivo de configuracion
' dbtype = fwkCfgFile.returnKeyValue(PathLocalArchivoConfiguracion, "dbtype") 'dimensionamos variable que toma el tipo de base de datos que utilizaremos
' sql = "SELECT id,nombre "
' sql &= "FROM medios_atencion_ticket "
' sql &= "order by nombre"
' oDbCliente = New DbCliente(PathLocalArchivoConfiguracion, sql, dbtype)
' dsMA = DBMapping.getDataSet(oDbCliente, dbtype)
' Session("mediosAtencion") = dsMA
' dsMA = Nothing
' sql = "select id,nombre from nivel_1 order by nombre"
' DBMapping.changeCommandText(oDbCliente, dbtype, sql)
' dsNivel1 = DBMapping.getDataSet(oDbCliente, dbtype)
' Session("nivel1") = dsNivel1
' dsNivel1 = Nothing
'Catch ex As Exception
' Response.Write("Ha ocurrido el siguiente error al iniciar la session: " & ex.Message & "<br><br>Favor contacte al prooveedor.")
'Finally
' oDbCliente.Close()
' oDbCliente.Dispose()
'End Try
End Sub
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
' Fires at the beginning of each request
End Sub
Sub Application_AuthenticateRequest(ByVal sender As Object, ByVal e As EventArgs)
' Fires upon attempting to authenticate the use
End Sub
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
' Fires when an error occurs
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
Dim oUser As saefwk_ValidaUsuario = Session("oUser")
Dim oLogLogInOut As New saeFwk_LogLogInOut
oLogLogInOut.login = oUser.Login
oLogLogInOut.resolutor_id = oUser.Id
oLogLogInOut.fecha = DateTime.Now
oLogLogInOut.tipo = "O"
oLogLogInOut.guardar(PathLocalArchivoConfiguracion)
Try
Dim rutas() As String = IO.Directory.GetFiles(ConfigurationManager.AppSettings("pathDocumentos"), "temp_" & Session.SessionID & "*.*")
For Each ruta As String In rutas
IO.File.Delete(ruta)
Next
Catch
End Try
Session.RemoveAll()
' Fires when the session ends
End Sub
Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
' Fires when the application ends
End Sub
Protected Overrides Sub Finalize()
MyBase.Finalize()
End Sub
End Class
All googled solutions were tested on a windows 7 machine, a 2008 r2 machine (IIS 7.5), a 2008 machine (IIS 7) and a 2003 machine (IIS 6). When I started out I suspected the app would give us trouble and now I'm convinced the app has something that's messing with the uploading implementations we've come up with, hence the web.config and glbal.asax for the site. If you need anything else let me know
PS: I tried to include the upload site bits too but the post was to long. they are a standard implementation of uploadify over asp.net using request.files to get the files. web.config is default one created with new vs 2010 site.