I am getting deep trouble for by just changing web.config content. After so many traces, I have found that it causes because I have changed web.config.
When I change my web.config file, UseSSL parameter get "False". This cause so many issues like Payment Gateway.
Can anybody suggest me which thing make it false?
Following are new element that is not there in old web.config.
<configuration>
<system.web>
<compilation debug="false" strict="true" explicit="true" targetFramework="4.6.2" optimizeCompilations="true" enablePrefetchOptimization="true">
<assemblies>
</assemblies>
</compilation>
<trace enabled="false" localOnly="true"/>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" pageParserFilterType="BVSoftware.Bvc5.Core.Utilities.BVPageParserFilter">
<authentication mode="None"/>
<httpCookies httpOnlyCookies="true" requireSSL="false" />
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<httpErrors errorMode="Custom">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/Error.aspx" responseMode="ExecuteURL" />
<error statusCode="403" subStatusCode="14" path="/Error.aspx" responseMode="ExecuteURL" />
</httpErrors>
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
</staticContent>
<httpCookies httpOnlyCookies="true" requireSSL="false" />
</system.webServer>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="FirstDataGlobalGatewayE4">
<security mode="Transport" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://api.xxxxxxxxxx.firstdata.com/transaction/v11"
binding="basicHttpBinding" bindingConfiguration="FirstDataGlobalGatewayE4"
contract="FirstDataService.ServiceSoap" name="FirstDataGlobalGatewayE4" />
</client>
</system.serviceModel>
<runtime>
<NetFx40_LegacySecurityPolicy enabled="true" />
</runtime>
</configuration>
Related
i want to link my website to a woocomerce extension called shopmaster
but when insert my link and click on connect im getting this error i have tried everything
Forbidden
You do not have permission to access this document.
Web Server at shopalway.co.za
things i have tried!
making sure my post name is correct
enabled directory browsing
setting file and folder to 755 filezilla
i even created a folder called httacces
clearing coockies
contacting webhost they say nothing is wrong
made sure rest api is enabled
8.deleted all files reinstalled wordpress
even changed the web.config file in code
from false to true hope to let it make a difference
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="true" /> (<---was on false)
<httpErrors>
<remove statusCode="502" subStatusCode="-1" />
<remove statusCode="501" subStatusCode="-1" />
<remove statusCode="500" subStatusCode="-1" />
<remove statusCode="412" subStatusCode="-1" />
<remove statusCode="406" subStatusCode="-1" />
<remove statusCode="405" subStatusCode="-1" />
<remove statusCode="404" subStatusCode="-1" />
<remove statusCode="403" subStatusCode="-1" />
<remove statusCode="401" subStatusCode="-1" />
<remove statusCode="400" />
<error statusCode="400" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\bad_request.html" />
<remove statusCode="407" />
<error statusCode="407" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\proxy_authentication_required.html" />
<remove statusCode="414" />
<error statusCode="414" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\request-uri_too_long.html" />
<remove statusCode="415" />
<error statusCode="415" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\unsupported_media_type.html" />
<remove statusCode="503" />
<error statusCode="503" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\maintenance.html" />
<error statusCode="401" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\unauthorized.html" />
<error statusCode="403" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\forbidden.html" />
<error statusCode="404" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\not_found.html" />
<error statusCode="405" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\method_not_allowed.html" />
<error statusCode="406" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\not_acceptable.html" />
<error statusCode="412" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\precondition_failed.html" />
<error statusCode="500" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\internal_server_error.html" />
<error statusCode="501" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\not_implemented.html" />
<error statusCode="502" prefixLanguageFilePath="" path="E:\Inetpub\vhosts\shopalway.co.za\error_docs\bad_gateway.html" />
</httpErrors>
<rewrite>
<rules>
<rule name="WordPress: https://shopalway.co.za" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule></rules>
</rewrite>
</system.webServer>
</configuration>
i have installed ssl certificate let encrypt recently as well.
using plesk onyx17.8.11
windows shared hosting
img1
<--Click links for image errors
img2
<--Click links for image errors
img3
<--Click links for image errors
img4
<--Click links for image errors
Redirection issue:
https://shopalway.co.za/ is working
but the error is shown onely on http://shopalway.co.za/
* that mean that you have an SSL:
https://www.sslshopper.com/ssl-checker.html#hostname=https://shopalway.co.za/
SOLUTION: Add these lines on the .htaccess file:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Below give the web.config file in WCF service.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.diagnostics>
<sources>
<source propagateActivity="true" name="System.ServiceModel" switchValue="Warning,ActivityTracing">
<listeners>
<add type="System.Diagnostics.DefaultTraceListener" name="Default">
<filter type="" />
</add>
<add name="ServiceModelTraceListener">
<filter type="" />
</add>
</listeners>
</source>
</sources>
<sharedListeners>
<add initializeData="c:\tfslatest\entermarkets\project specific\psbd\trunk\smartincident\pss.web.services.internal\web_tracelog.svclog"
type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
name="ServiceModelTraceListener" traceOutputOptions="Timestamp">
<filter type="" />
</add>
</sharedListeners>
</system.diagnostics>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
<!-- -->
<!-- *** DATABASE *** -->
<!-- -->
<add key="Db Timeout Seconds" value="200" />
<add key="Enable SMS" value="true" />
<add key="Enable Notification" value="true" />
<add key="K2 Server" value="EM-K2" />
<add key="Forgot Password External Url" value="http://localhost/PSS.Web/ResetPassword.aspx?id=" />
<add key="Incident Mobile Download Url" value="http://localhost/PSS.Web/DownloadApp.aspx?id=" />
</appSettings>
<system.web>
<compilation targetFramework="4.5" debug="true" />
<httpRuntime maxRequestLength="2097151"
useFullyQualifiedRedirectUrl="true"
executionTimeout="14400" />
</system.web>
<system.serviceModel>
<bindings>
<webHttpBinding>
<binding name="AttachmentService"
maxReceivedMessageSize="2147483647"
maxBufferSize="2147483647" transferMode="Streamed" >
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/>
</binding>
</webHttpBinding>
<basicHttpBinding>
<binding name="BasicHttpBinding_INotificationService" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost/Utility.Notification.Service/NotificationService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_INotificationService" contract="INotificationService" name="BasicHttpBinding_INotificationService" />
<endpoint address="http://localhost/PSS.Web.Services.Internal/AttachmentService.svc" binding="basicHttpBinding"
bindingConfiguration="AttachmentService"
contract ="IAttachmentService">
</endpoint>
</client>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment minFreeMemoryPercentageToActivateService="0" aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<!--<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648" />
</requestFiltering>
</security>-->
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<!--
To browse web app root directory during debugging, set the value below to true.
Set to false before deployment to avoid disclosing web app folder information.
-->
<!--<directoryBrowse enabled="true" />
<security>
<authentication>
<windowsAuthentication enabled="true" />
</authentication>
</security>-->
<directoryBrowse enabled="true" />
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648" maxUrl="2147483648" maxQueryString="2147483648" />
</requestFiltering>
</security>
</system.webServer>
<connectionStrings>
<add name="Conn_PSBDDb" connectionString="DATA SOURCE=192.168.0.100:1521/orcl;USER ID=PSBD;Password=password*1;" providerName="Oracle.ManagedDataAccess.Client" />
</connectionStrings>
</configuration>
This is Server Side Config Files
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<appSettings>
<!-- -->
<!-- *** PLUG-IN CONFIGURATION *** -->
<!-- -->
<!-- Plug-In Collection -->
<!-- Format for each entry is <Type>#<Assembly> -->
<add key="AD Authentication PlugIn Evaluation List" value="PSS.AD.Adapters.NonMemberServer.NonMemberServerManager#PSS.AD.Adapters.NonMemberServer" />
<add key="Login Url" value="http://localhost/PSS.Web/Login.aspx" />
<add key="Forgot Password External Url" value="http://localhost/PSS.Web/ResetPassword.aspx?id=" />
<add key="Incident Mobile Download Url" value="http://localhost/PSS.Web/DownloadApp.aspx?id=" />
<add key="PSS Url" value="http://localhost/PSS.Web/" />
<!--<add key="Templates Url" value="C:\TFS\EnterMarkets\Project Specific\PSBD\Trunk\SmartIncident\PSS.Web.Services.Internal\bin\MessageTemplates" />-->
<add key="Templates Url" value="\\192.168.0.243\psbd\PSS.Web.Services.Internal\bin\MessageTemplates" />
<add key="Hyper Pay URL" value="https://test.oppwa.com/" />
<add key="Hyper Pay UserId" value="8a829417527905e80152794f55950197" />
<add key="Hyper Pay Password" value="e2XRrKJa" />
<add key="Hyper Pay EntityId" value="8a829417527905e80152794f8af10199" />
<add key="Hyper Pay PaymentType" value="DB" />
<!--For testing it must be 'EXTERNAL' else change to 'INTERNAL' as per documentation-->
<add key="Hyper Pay Test Mode" value="EXTERNAL" />
<!-- -->
<!-- *** DATABASE ** * -->
<!-- -->
<add key="Db Timeout Seconds" value="200" />
<!-- -->
<!-- *** LOGGING *** -->
<!-- -->
<add key="EnableLogging" value="false" />
<add key="LogFilePath" value="C:\Temp\Logs\PSS.Web.log" />
<add key="Enable SMS" value="true" />
<add key="Enable Notification" value="true" />
<add key="Domain Name" value="coruscant" />
<add key="EnableExamExecution" value="false" />
<!--
If "EnableLogging" is set to true, this integer
specifies the max size in bytes which the log file can be until it will
be purged on next write to the log file
Default value: 100000000
-->
<add key="Attachment Plug-In List" value="PSS.Core.Attachment.Adapters.FileServer.FileServerManager#PSS.Core.Attachment.Adapters.FileServer" />
<add key="MaxLogFileSize" value="100000000" />
<!-- Event Log Logging -->
<add key="EventLogSourceName" value="PSS.Web" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
<add key="language" value="ar" />
<add key="FilestorePath" value="C:\Filestore\" />
<!--Phisical Paths-->
<add key="C:\TFS\EnterMarkets\Project Specific\PSBD\Trunk\SmartIncident\PSS.Web" value="" />
<add key="UploadedFiles" value="C:\TFS\EnterMarkets\Project Specific\PSBD\Trunk\SmartIncident\PSS.Web\UploadedFiles\" />
<!--/Phisical Paths-->
</appSettings>
<system.web>
<customErrors mode="Off" defaultRedirect="~/ErrorPage.aspx" redirectMode="ResponseRewrite"></customErrors>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime maxRequestLength="2097150"/>
</system.web>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="2147483647" />
</webServices>
</scripting>
</system.web.extensions>
<connectionStrings>
<add name="Conn_PSBDDb" connectionString="DATA SOURCE=192.168.0.100:1521/ORCL;USER ID=PSBD;Password=password*1;" providerName="Oracle.ManagedDataAccess.Client" />
</connectionStrings><!---->
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648" maxUrl="2147483648" maxQueryString="2147483648" />
</requestFiltering>
</security>
<!--<modules runAllManagedModulesForAllRequests="true">
<remove name="BundleModule" />22
<add name="BundleModule" type="System.Web.Optimization.BundleModule" />
</modules>-->
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<remove name="OPTIONSVerbHandler" />
<remove name="TRACEVerbHandler" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
<staticContent>
<!--
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<remove fileExtension=".svgz" />
<mimeMap fileExtension=".svgz" mimeType="image/svg+xml" />
<remove fileExtension=".eot" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<remove fileExtension=".otf" />
<mimeMap fileExtension=".otf" mimeType="font/otf" /> -->
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="font/x-woff" />
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff2" mimeType="font/x-woff" />
<remove fileExtension=".mp4" />
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<!--
<mimeMap fileExtension=".apk" mimeType="application/vnd.android.package-archive" />
<mimeMap fileExtension=".ipa" mimeType="application/octet-stream" /> -->
</staticContent>
<directoryBrowse enabled="true" />
</system.webServer>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IADService" />
<binding name="BasicHttpBinding_IWorkFlowService" />
<binding name="BasicHttpBinding_INotificationService" />
<!--<binding name="BasicHttpBinding_IAttachmentService" />-->
<binding name="BasicHttpBinding_IAttachmentService" closeTimeout="04:01:00" openTimeout="04:01:00" receiveTimeout="04:10:00" sendTimeout="04:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" transferMode="Streamed" useDefaultWebProxy="true">
<readerQuotas maxDepth="128" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://192.168.0.245/PSS.AD.Web.Services/ADService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IADService" contract="ADWebService.IADService" name="BasicHttpBinding_IADService" />
<endpoint address="http://192.168.0.242/PSS.Web.Services.Internal/WorkFlowService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IWorkFlowService" contract="PSSWorkFlowService.IWorkFlowService" name="BasicHttpBinding_IWorkFlowService" />
<endpoint address="http://localhost/Utility.Notification.Service/NotificationService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_INotificationService" contract="INotificationService" name="BasicHttpBinding_INotificationService" />
<endpoint address="http://localhost/PSS.Web.Services.Internal/AttachmentService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IAttachmentService" contract="AttachmentsService.IAttachmentService" name="BasicHttpBinding_IAttachmentService" />
</client>
</system.serviceModel>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<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" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
I am unable to upload more the 50KB file, less than 50kb is working fine the exception I am getting is (The remote server returned an unexpected response: (400) Bad Request.). Any help could be appreciated. Thanks!!
I am getting bad request from ASP.Net website on submitting the large file 2GB using AJAX.
My HTTP runtime setting
<httpRuntime maxRequestLength="2147483647" executionTimeout="3600"/>
Please help.
Web.Config
`
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</configSections>
<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="" providerName="System.Data.SqlClient"/>
<add name="psDevDataConnectionString1" connectionString="" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="50000000" />
</webServices>
</scripting>
</system.web.extensions>
<system.web>
<authentication mode="Forms"/>
<compilation debug="true" targetFramework="4.5"/>
<httpRuntime maxRequestLength="2147483647" executionTimeout="3600"/>
<membership defaultProvider="xplProvider">
<providers>
<add name="xplProvider" 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="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="10" minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
</providers>
</membership>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
<customErrors mode="RemoteOnly" defaultRedirect="~/sysError.aspx">
<error statusCode="404" redirect="~/infoCollector.aspx"/>
</customErrors>
<pages controlRenderingCompatibilityVersion="4.0" clientIDMode="Static"/>
</system.web>
<system.webServer>
<handlers>
<add name="DocImage" verb="GET,POST" path="DocImage.axd" type="DotnetDaddy.DocumentViewer.DocImageHandler, DocumentViewer"/>
<add name="pngs" verb="*" path="ClientPortals/images/*" type="Project.UserInterface.ClientPortals.image" preCondition="managedHandler"/>
</handlers>
<modules>
<add name="UploadModule" type="RTE.UploadModule,RichTextEditor"/>
<add name="CuteEditor.UploadModule" type="CuteEditor.UploadModule,CuteEditor"/>
</modules>
<httpErrors errorMode="Custom" defaultResponseMode="ExecuteURL">
<remove statusCode="404"/>
<error statusCode="404" path="/scenter.aspx" responseMode="ExecuteURL"/>
</httpErrors>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4294967296"/>
</requestFiltering>
</security>
</system.webServer>
<appSettings>
<add key="PageInspector:ServerCodeMappingSupport" value="Disabled"/>
</appSettings>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="ServiceSoap">
<security mode="Transport"/>
</binding>
<binding name="ServiceSoap1"/>
<binding name="sms2SOAPbasicHttpBinding"/>
<binding name="sms2SOAPbasicHttpsBinding">
<security mode="Transport"/>
</binding>
</basicHttpBinding>
<wsHttpBinding>
<binding name="sms2wsHttpBinding">
<security mode="None"/>
</binding>
<binding name="sms2wsHttpBindingSecure">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="https://api.authorize.net/soap/v1/Service.asmx" binding="basicHttpBinding" bindingConfiguration="ServiceSoap" contract="ArbApiSoap.ServiceSoap" name="ServiceSoap"/>
<endpoint address="http://sms2.cdyne.com/sms.svc/Soap" binding="basicHttpBinding" bindingConfiguration="sms2SOAPbasicHttpBinding" contract="cdyneSMS.Isms" name="sms2SOAPbasicHttpBinding"/>
<endpoint address="https://sms2.cdyne.com/sms.svc/SecureSoap" binding="basicHttpBinding" bindingConfiguration="sms2SOAPbasicHttpsBinding" contract="cdyneSMS.Isms" name="sms2SOAPbasicHttpsBinding"/>
<endpoint address="http://sms2.cdyne.com/sms.svc/WS" binding="wsHttpBinding" bindingConfiguration="sms2wsHttpBinding" contract="cdyneSMS.Isms" name="sms2wsHttpBinding"/>
<endpoint address="https://sms2.cdyne.com/sms.svc/WS" binding="wsHttpBinding" bindingConfiguration="sms2wsHttpBindingSecure" contract="cdyneSMS.Isms" name="sms2wsHttpBindingSecure"/>
</client>
</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-6.0.0.0" newVersion="6.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="AWSSDK" publicKeyToken="9f476d3089b52be3" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-2.3.55.0" newVersion="2.3.55.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<microsoft.web.services3>
<messaging>
<executionTimeoutInSeconds value="300" />
<maxMessageLength value="524288000" />
</messaging>
</microsoft.web.services3>
</configuration>
`
maxRequestLength is in Kilobyte not byte so 2147483647 Kilobytes is about 2000 GB that's a lot. 2GB = 2097152 KB. Try to change it to 2097152
On the other hand, maxAllowedContentLength is in bytes.
It is recommended to place both those values in web.config.
The maxRequestLength indicates the maximum file upload size supported by ASP.NET, the maxAllowedContentLength specifies the maximum length of content in a request supported by IIS. Hence, we need to set both maxRequestLength and maxAllowedContentLength values to upload large files.
<system.web>
<httpRuntime maxRequestLength="2097152" executionTimeout="3600"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648" />
</requestFiltering>
</security>
</system.webServer>
I'v got this in my web.config file.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<customErrors mode="On" redirectMode="ResponseRewrite">
<error statusCode="404" redirect="/404.asp" />
<error statusCode="500" redirect="/500.asp" />
</customErrors>
</system.web>
<system.webServer>
<httpErrors errorMode="Custom">
<remove statusCode="404" />
<error statusCode="404" path="/404.asp" responseMode="ExecuteURL" />
<remove statusCode="500" />
<error statusCode="500" path="/500.asp" responseMode="ExecuteURL" />
</httpErrors>
<defaultDocument>
<files>
<add value="home.asp" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
The 404 redirect works fine but the 500 redirect does nothing. I'm completely baffled. Little help. Thanks.
I use the following. Note the subStatusCode
<system.webServer>
<httpErrors>
<error statusCode="500" subStatusCode="100" path="/errorpage500-100.asp" responseMode="ExecuteURL"/>
</httpErrors>
</system.webServer>
When I configure my Web.config file like this:
<configuration>
<system.web>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<customErrors mode="On" defaultRedirect="err_404.html">
<error statusCode="404" redirect="err_404.html" />
<error statusCode="403" redirect="err_403.html" />
</customErrors>
</system.web>
I get a 500.19 internal server error. How do I fix this?
try this
<system.web>
<customErrors mode="On" redirectMode="ResponseRewrite">
<error statusCode="500.19" redirect="~/Views/ErrorMessages/Oops.cshtml" />
</customErrors>
</system.web>
<system.webServer>
<httpErrors errorMode="Custom" existingResponse="Replace">
<remove statusCode="500.19" subStatusCode="-1" />
<error statusCode="500.19" prefixLanguageFilePath="" path="~/Views/ErrorMessages/Oops.cshtml"
responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>