Asked by:
IHttpHandler and witing to IIS Logs

Question
-
User1525382536 posted
I am trying to do :
<%@ WebHandler Language="C#" Class="test1" %> using System; using System.Web; using System.Xml; using System.Net; using System.Xml.Linq; public class test1 : IHttpHandler { public void ProcessRequest(HttpContext context) { if (context.Request.InputStream != null) { System.IO.StreamReader stream = new System.IO.StreamReader(context.Request.InputStream); string result = stream.ReadToEnd(); context.response.AppendToLog(result);
the result is not written to the log.
should i change something?
Sunday, May 10, 2020 1:46 PM
All replies
-
User-158764254 posted
"To record the specified string in the log file, you must enable the URI Query option of the Extended Properties property sheet for the site whose activity you want to log."
https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms524861(v%3Dvs.90)
Sunday, May 10, 2020 2:10 PM -
User288213138 posted
Hi wanttolearn1,
the result is not written to the log.As Banavige said, to allow for the specified string to be recorded in the log file, you first must enable the URI Query option.
But Banavige is talking about iis6.
If you are using iis10, then you can set it in the logging component as below.
Best regards,
Sam
Monday, May 11, 2020 5:36 AM -
User1525382536 posted
it's was already checked, what else can I be missing?
Tuesday, May 12, 2020 6:44 AM -
User288213138 posted
Hi wanttolearn1,
System.IO.StreamReader stream = new System.IO.StreamReader(context.Request.InputStream); string result = stream.ReadToEnd(); context.response.AppendToLog(result);
Please set a breakpoint to see if the content in the result is empty, and please show me you config.
Best regards,
Sam
Wednesday, May 13, 2020 7:04 AM -
User1525382536 posted
Hi,
the result is not empty, I parse it later on in the code, and there is data.
what part of the config you want me to add?
Monday, May 18, 2020 4:32 PM -
User288213138 posted
Hi wanttolearn1,
the result is not empty, I parse it later on in the code, and there is data.
what part of the config you want me to add?
Please make sure the result is not empty and show me your web config file.
Best regards,
Sam
Tuesday, May 19, 2020 2:02 AM -
User1525382536 posted
<!--?xml version="1.0" encoding="utf-8"?-->this is the web.config
<?xml version="1.0" encoding="utf-8"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration> <configSections> <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <!-- <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" /> <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> </sectionGroup> </sectionGroup> </sectionGroup> --> </configSections> <appSettings> </appSettings> <location path="MYPage.ashx"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> <system.web> <webServices> <protocols> <add name="HttpPost" /> <add name="HttpGet" /> </protocols> </webServices> <roleManager enabled="true" /> <!-- <globalization culture="he-il" uiCulture="he-il" requestEncoding="windows-1255" responseEncoding="windows-1255"/>--> <globalization culture="he-il" uiCulture="he-il" requestEncoding="utf-8" responseEncoding="utf-8" /> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="System.Core, 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.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Xml.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.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <add assembly="System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> <!-- <add assembly="MailBee.NET, Version=5.0.2.125, Culture=neutral, PublicKeyToken=CD85B70FB26F9FC1"/>--> <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Web.DataVisualization.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add assembly="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> </assemblies> <buildProviders> <add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" /> </buildProviders> </compilation> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authentication mode="Forms"> <forms loginUrl="Default.aspx" protection="All" timeout="60" name=".mywebsite" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="Default.aspx" cookieless="UseCookies" enableCrossAppRedirects="true" /> </authentication> <authorization> <allow roles="User" /> <deny users="*" /> </authorization> <!-- 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> --> <customErrors mode="Off" defaultRedirect="~/Error.aspx" /> <pages clientIDMode="AutoID"> <namespaces> <add namespace="System.Web.Helpers" /> <add namespace="System.Web.Mvc" /> <add namespace="System.Web.Mvc.Ajax" /> <add namespace="System.Web.Mvc.Html" /> <add namespace="System.Web.Optimization" /> <add namespace="System.Web.Routing" /> <add namespace="System.Web.WebPages" /> </namespaces> <controls> <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" /> <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </controls> </pages> <httpHandlers> <remove path="*.asmx" verb="*" /> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" /> <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" /> <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" /> <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" /> <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" /> <!-- validate="false" /> --> </httpHandlers> <httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> </httpModules> <membership> <providers> <remove name="AspNetSqlMembershipProvider" /> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="false" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" passwordFormat="Hashed" maxInvalidPasswordAttempts="15" passwordAttemptWindow="10" passwordStrengthRegularExpression="" /> </providers> </membership> <profile> <properties> <add name="FirstName" /> <add name="LastName" /> </properties> </profile> <httpRuntime maxRequestLength="152400" executionTimeout="2000" requestValidationMode="2.0" /> </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="v4.0" /> <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="v4.0" /> <providerOption name="OptionInfer" value="true" /> <providerOption name="WarnAsError" value="false" /> </compiler> </compilers> </system.codedom> <system.webServer> <urlCompression doDynamicCompression="true" doStaticCompression="true"/> <caching enabled="true" enableKernelCache="true"> </caching> <staticContent> <remove fileExtension=".woff2" /> <mimeMap fileExtension=".woff2" mimeType="font/woff2" /> <remove fileExtension=".woff" /> <mimeMap fileExtension=".woff" mimeType="font/woff" /> </staticContent> <validation validateIntegratedModeConfiguration="false" /> <modules> <remove name="ScriptModule" /> <remove name="RadUploadModule" /> <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" /> </modules> <handlers accessPolicy="Read, Script"> <remove name="AXD-ISAPI-2.0" /> <remove name="AssemblyResourceLoader-Integrated" /> <remove name="WebServiceHandlerFactory-Integrated" /> <remove name="ScriptHandlerFactory" /> <remove name="ScriptHandlerFactoryAppServices" /> <remove name="ScriptResource" /> <remove name="ChartImage_axd" /> <remove name="Telerik_Web_UI_SpellCheckHandler_axd" /> <remove name="Telerik_Web_UI_DialogHandler_aspx" /> <remove name="Telerik_RadUploadProgressHandler_ashx" /> <remove name="Telerik_Web_UI_WebResource_axd" /> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.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=4.0.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=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <add name="AssemblyResourceLoader-Integrated" path="WebResource.axd" verb="*" type="System.Web.Handlers.AssemblyResourceLoader" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" /> <add name="AXD-ISAPI-2.0" path="*.axd" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" /> <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" /> <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" /> <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" /> <add name="ChartImg" verb="*" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler,System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <add name="ReportViewer" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler,Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" /> <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" /> <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /> <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" /> <remove name="ExtensionlessUrlHandler-Integrated-4.0" /> <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" /> <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" /> <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /> </handlers> <security> <requestFiltering> <requestLimits maxAllowedContentLength="1024000000" /> </requestFiltering> </security> <httpProtocol> <customHeaders> <add name="X-Frame-Options" value="SAMEORIGIN" /> </customHeaders> </httpProtocol> </system.webServer> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="BillingSettings" maxBufferPoolSize="20000000" maxBufferSize="20000000" maxReceivedMessageSize="20000000"> <readerQuotas maxDepth="32" maxStringContentLength="200000000" maxArrayLength="200000000" /> </binding> <binding name="SendMessageSoap" maxBufferPoolSize="20000000" maxBufferSize="20000000" maxReceivedMessageSize="20000000"> <readerQuotas maxDepth="32" maxStringContentLength="200000000" maxArrayLength="200000000" /> </binding> <binding name="SegmentDataServiceSoap" maxBufferPoolSize="20000000" maxReceivedMessageSize="20000000" /> <binding name="BasicHttpBinding_IWCFService" /> </basicHttpBinding> <customBinding> <binding name="SegmentDataServiceSoap12"> <textMessageEncoding messageVersion="Soap12" /> <httpTransport /> </binding> </customBinding> </bindings> </system.serviceModel> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.5.0.0" newVersion="8.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.0.0.0" newVersion="2.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="MailBee.NET" publicKeyToken="cd85b70fb26f9fc1" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.0.2.105" newVersion="4.0.2.105" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration>
<!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --><configuration> <configsections></configsections></configuration>
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"></section> <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"></section> <!-- <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" /> <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> </sectionGroup> </sectionGroup> </sectionGroup> --><appsettings> </appsettings> <location path="MYPage.ashx"> <system.web> <authorization> <allow users="*"></allow> </authorization> </system.web> </location> <system.web> <webservices> <protocols> <add name="HttpPost"></add> <add name="HttpGet"></add> </protocols> </webservices> <rolemanager enabled="true"></rolemanager> <!-- <globalization culture="he-il" uiCulture="he-il" requestEncoding="windows-1255" responseEncoding="windows-1255"/>--> <globalization responseencoding="utf-8" requestencoding="utf-8" uiculture="he-il" culture="he-il"></globalization> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <compilation targetframework="4.0" debug="true"> <assemblies> <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"></add> <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></add> <add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"></add> <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"></add> <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"></add> <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"></add> <add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"></add> <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"></add> <add assembly="System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"></add> <!-- <add assembly="MailBee.NET, Version=5.0.2.125, Culture=neutral, PublicKeyToken=CD85B70FB26F9FC1"/>--> <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"></add> <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"></add> <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></add> <add assembly="System.Web.DataVisualization.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></add> <add assembly="System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></add> <add assembly="System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></add> <add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></add> <add assembly="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></add> </assemblies> <buildproviders> <add type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" extension=".edmx"></add> </buildproviders> </compilation> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authentication mode="Forms"> <forms name=".mywebsite" path="/" enablecrossappredirects="true" cookieless="UseCookies" defaulturl="Default.aspx" slidingexpiration="true" requiressl="false" timeout="60" protection="All" loginurl="Default.aspx"> </forms></authentication> <authorization> <allow roles="User"></allow> <deny users="*"></deny> </authorization> <!-- 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> --> <customerrors mode="Off" defaultredirect="~/Error.aspx"> <pages clientidmode="AutoID"> <namespaces> <add namespace="System.Web.Helpers"></add> <add namespace="System.Web.Mvc"></add> <add namespace="System.Web.Mvc.Ajax"></add> <add namespace="System.Web.Mvc.Html"></add> <add namespace="System.Web.Optimization"></add> <add namespace="System.Web.Routing"></add> <add namespace="System.Web.WebPages"></add> </namespaces> <controls> <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.UI" tagprefix="asp"></add> <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.UI.WebControls" tagprefix="asp"></add> <add assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik"></add> <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp"></add> </controls> </pages> <httphandlers> <remove path="*.asmx" verb="*"></remove> <add type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" path="*.asmx" verb="*" validate="false"></add> <add type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" path="*_AppService.axd" verb="*" validate="false"></add> <add type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" path="ScriptResource.axd" verb="GET,HEAD" validate="false"></add> <add type="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" validate="false"></add> <add type="Telerik.Web.UI.ChartHttpHandler" path="ChartImage.axd" verb="*" validate="false"></add> <add type="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" validate="false"></add> <add type="Telerik.Web.UI.RadUploadProgressHandler" path="Telerik.RadUploadProgressHandler.ashx" verb="*" validate="false"></add> <add type="Telerik.Web.UI.SpellCheckHandler" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" validate="false"></add> <add type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" path="ChartImg.axd" verb="GET,HEAD,POST" validate="false"></add> <!-- validate="false" /> --> </httphandlers> <httpmodules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></add> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"></add> </httpmodules> <membership> <providers> <remove name="AspNetSqlMembershipProvider"></remove> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" passwordstrengthregularexpression="" passwordattemptwindow="10" maxinvalidpasswordattempts="15" passwordformat="Hashed" minrequirednonalphanumericcharacters="0" minrequiredpasswordlength="1" requiresuniqueemail="false" applicationname="/" requiresquestionandanswer="false" enablepasswordreset="true" enablepasswordretrieval="false" connectionstringname="LocalSqlServer"> </add></providers> </membership> <profile> <properties> <add name="FirstName"></add> <add name="LastName"></add> </properties> </profile> <httpruntime requestvalidationmode="2.0" executiontimeout="2000" maxrequestlength="152400"></httpruntime> </customerrors></system.web> <system.codedom> <compilers> <compiler language="c#;cs;csharp" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" extension=".cs" warninglevel="4"> <provideroption name="CompilerVersion" value="v4.0"></provideroption> <provideroption name="WarnAsError" value="false"></provideroption> </compiler> <compiler language="vb;vbs;visualbasic;vbscript" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" extension=".vb" warninglevel="4"> <provideroption name="CompilerVersion" value="v4.0"></provideroption> <provideroption name="OptionInfer" value="true"></provideroption> <provideroption name="WarnAsError" value="false"></provideroption> </compiler> </compilers> </system.codedom> <system.webserver> <urlcompression dostaticcompression="true" dodynamiccompression="true"></urlcompression> <caching enabled="true" enablekernelcache="true"> </caching> <staticcontent> <remove fileextension=".woff2"></remove> <mimemap fileextension=".woff2" mimetype="font/woff2"> <remove fileextension=".woff"></remove> <mimemap fileextension=".woff" mimetype="font/woff"> </mimemap></mimemap></staticcontent> <validation validateintegratedmodeconfiguration="false"></validation> <modules> <remove name="ScriptModule"></remove> <remove name="RadUploadModule"></remove> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" precondition="managedHandler"></add> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" precondition="integratedMode"></add> </modules> <handlers accesspolicy="Read, Script"> <remove name="AXD-ISAPI-2.0"></remove> <remove name="AssemblyResourceLoader-Integrated"></remove> <remove name="WebServiceHandlerFactory-Integrated"></remove> <remove name="ScriptHandlerFactory"></remove> <remove name="ScriptHandlerFactoryAppServices"></remove> <remove name="ScriptResource"></remove> <remove name="ChartImage_axd"></remove> <remove name="Telerik_Web_UI_SpellCheckHandler_axd"></remove> <remove name="Telerik_Web_UI_DialogHandler_aspx"></remove> <remove name="Telerik_RadUploadProgressHandler_ashx"></remove> <remove name="Telerik_Web_UI_WebResource_axd"></remove> <add name="ScriptHandlerFactory" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" path="*.asmx" verb="*" precondition="integratedMode"></add> <add name="ScriptHandlerFactoryAppServices" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" path="*_AppService.axd" verb="*" precondition="integratedMode"></add> <add name="ScriptResource" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" path="ScriptResource.axd" verb="GET,HEAD" precondition="integratedMode"></add> <add name="AssemblyResourceLoader-Integrated" type="System.Web.Handlers.AssemblyResourceLoader" path="WebResource.axd" verb="*" precondition="integratedMode" requireaccess="Script" resourcetype="Unspecified"></add> <add name="AXD-ISAPI-2.0" path="*.axd" verb="*" precondition="classicMode,runtimeVersionv2.0,bitness32" requireaccess="Script" resourcetype="Unspecified" responsebufferlimit="0" scriptprocessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" modules="IsapiModule"></add> <add name="Telerik_Web_UI_WebResource_axd" type="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*"></add> <add name="Telerik_Web_UI_DialogHandler_aspx" type="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*"></add> <add name="ChartImage_axd" type="Telerik.Web.UI.ChartHttpHandler" path="ChartImage.axd" verb="*"></add> <add name="ChartImg" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler,System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" path="ChartImg.axd" verb="*"></add> <add name="ReportViewer" type="Microsoft.Reporting.WebForms.HttpHandler,Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" path="Reserved.ReportViewerWebControl.axd" verb="*"></add> <add name="Telerik_RadUploadProgressHandler_ashx" type="Telerik.Web.UI.RadUploadProgressHandler" path="Telerik.RadUploadProgressHandler.ashx" verb="*"></add> <add name="Telerik_Web_UI_SpellCheckHandler_axd" type="Telerik.Web.UI.SpellCheckHandler" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*"></add> <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit"></remove> <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit"></remove> <remove name="ExtensionlessUrlHandler-Integrated-4.0"></remove> <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" precondition="classicMode,runtimeVersionv4.0,bitness32" responsebufferlimit="0" scriptprocessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" modules="IsapiModule"></add> <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" precondition="classicMode,runtimeVersionv4.0,bitness64" responsebufferlimit="0" scriptprocessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" modules="IsapiModule"></add> <add name="ExtensionlessUrlHandler-Integrated-4.0" type="System.Web.Handlers.TransferRequestHandler" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" precondition="integratedMode,runtimeVersionv4.0"></add> </handlers> <security> <requestfiltering> <requestlimits maxallowedcontentlength="1024000000"></requestlimits> </requestfiltering> </security> <httpprotocol> <customheaders> <add name="X-Frame-Options" value="SAMEORIGIN"></add> </customheaders> </httpprotocol> </system.webserver> <system.servicemodel> <bindings> <basichttpbinding> <binding name="BillingSettings" maxreceivedmessagesize="20000000" maxbuffersize="20000000" maxbufferpoolsize="20000000"> <readerquotas maxarraylength="200000000" maxstringcontentlength="200000000" maxdepth="32"></readerquotas> </binding> <binding name="SendMessageSoap" maxreceivedmessagesize="20000000" maxbuffersize="20000000" maxbufferpoolsize="20000000"> <readerquotas maxarraylength="200000000" maxstringcontentlength="200000000" maxdepth="32"></readerquotas> </binding> <binding name="SegmentDataServiceSoap" maxreceivedmessagesize="20000000" maxbufferpoolsize="20000000"></binding> <binding name="BasicHttpBinding_IWCFService"></binding> </basichttpbinding> <custombinding> <binding name="SegmentDataServiceSoap12"> <textmessageencoding messageversion="Soap12"></textmessageencoding> <httptransport></httptransport> </binding> </custombinding> </bindings> </system.servicemodel> <runtime> <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentassembly> <assemblyidentity name="Newtonsoft.Json" culture="neutral" publickeytoken="30ad4fe6b2a6aeed"></assemblyidentity> <bindingredirect newversion="8.0.0.0" oldversion="0.0.0.0-4.5.0.0"></bindingredirect> </dependentassembly> <dependentassembly> <assemblyidentity name="System.Web.Helpers" publickeytoken="31bf3856ad364e35"></assemblyidentity> <bindingredirect newversion="2.0.0.0" oldversion="1.0.0.0-2.0.0.0"></bindingredirect> </dependentassembly> <dependentassembly> <assemblyidentity name="System.Web.Mvc" publickeytoken="31bf3856ad364e35"></assemblyidentity> <bindingredirect newversion="4.0.0.0" oldversion="1.0.0.0-4.0.0.0"></bindingredirect> </dependentassembly> <dependentassembly> <assemblyidentity name="System.Web.WebPages" publickeytoken="31bf3856ad364e35"></assemblyidentity> <bindingredirect newversion="2.0.0.0" oldversion="1.0.0.0-2.0.0.0"></bindingredirect> </dependentassembly> <dependentassembly> <assemblyidentity name="WebGrease" culture="neutral" publickeytoken="31bf3856ad364e35"></assemblyidentity> <bindingredirect newversion="1.5.2.14234" oldversion="0.0.0.0-1.5.2.14234"></bindingredirect> </dependentassembly> <dependentassembly> <assemblyidentity name="System.Net.Http" culture="neutral" publickeytoken="b03f5f7f11d50a3a"></assemblyidentity> <bindingredirect newversion="2.0.0.0" oldversion="0.0.0.0-1.0.0.0"></bindingredirect> </dependentassembly> <dependentassembly> <assemblyidentity name="MailBee.NET" culture="neutral" publickeytoken="cd85b70fb26f9fc1"></assemblyidentity> <bindingredirect newversion="4.0.2.105" oldversion="0.0.0.0-4.0.2.105"></bindingredirect> </dependentassembly> </assemblybinding> </runtime>
Wednesday, May 20, 2020 8:14 AM -
User288213138 posted
Hi wanttolearn1,
you can try to add below code to your web.config. and this is for IIS integrated application pools.
<system.webServer> <handlers> <add verb="*" path="*.aspx" name="PassThroughAspxHandler" type="YourNameSpaceHere.PassThroughAspxHandler"/> </handlers> </system.webServer>
Best regards,
Sam
Thursday, May 21, 2020 3:16 AM -
User1525382536 posted
this is setting that I have :
in handlers section : <add name="test1" verb="*" path="*.ashx" type="test1"/> and under configuration : <location path="test1.ashx"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location>
and i get the next error :
<!DOCTYPE html> <html dir="rtl"> <head> <title>Could not load type 'test1'.</title> <meta name="viewport" content="width=device-width" /> <style> body { font-family: "Verdana"; font-weight: normal; font-size: .7em; color: black; } p { font-family: "Verdana"; font-weight: normal; color: black; margin-top: -5px } b { font-family: "Verdana"; font-weight: bold; color: black; margin-top: -5px } H1 { font-family: "Verdana"; font-weight: normal; font-size: 18pt; color: red } H2 { font-family: "Verdana"; font-weight: normal; font-size: 14pt; color: maroon } pre { font-family: "Consolas", "Lucida Console", Monospace; font-size: 11pt; margin: 0; padding: 0.5em; line-height: 14pt } .marker { font-weight: bold; color: black; text-decoration: none; } .version { color: gray; } .error { margin-bottom: 10px; } .expandable { text-decoration: underline; font-weight: bold; color: navy; cursor: hand; } @media screen and (max-width: 639px) { pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; } } @media screen and (max-width: 479px) { pre { width: 280px; } } </style> </head> <body bgcolor="white"> <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1> <h2> <i>Could not load type 'test1'.</i> </h2></span> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br><br> <b> Exception Details: </b>System.Web.HttpException: Could not load type 'test1'.<br><br> <b>Source Error:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code> An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code> </td> </tr> </table> <br> <b>Stack Trace:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre> <div dir="ltr">[HttpException (0x80004005): Could not load type 'test1'.] System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +12495353 System.Web.Configuration.HandlerFactoryCache.GetTypeWithAssert(String type) +47 System.Web.Configuration.HandlerFactoryCache.GetHandlerType(String type) +18 System.Web.Configuration.HandlerFactoryCache..ctor(String type) +27 System.Web.HttpApplication.GetFactory(String type) +94 System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +375 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288 </div></pre></code> </td> </tr> </table> <br> <hr width=100% size=1 color=silver> <b>Version Information:</b> Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009 </font> </body> </html> <!-- [HttpException]: Could not load type 'test1'. at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at System.Web.Configuration.HandlerFactoryCache.GetTypeWithAssert(String type) at System.Web.Configuration.HandlerFactoryCache.GetHandlerType(String type) at System.Web.Configuration.HandlerFactoryCache..ctor(String type) at System.Web.HttpApplication.GetFactory(String type) at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --> <!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
Thursday, June 25, 2020 3:16 PM