Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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>
- <configSections>
- <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
- <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
- <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
- <sectionGroup name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection, DotNetOpenAuth.Core">
- <section name="messaging" type="DotNetOpenAuth.Configuration.MessagingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
- <section name="reporting" type="DotNetOpenAuth.Configuration.ReportingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
- <section name="openid" type="DotNetOpenAuth.Configuration.OpenIdElement, DotNetOpenAuth.OpenId" requirePermission="false" allowLocation="true" />
- <section name="oauth" type="DotNetOpenAuth.Configuration.OAuthElement, DotNetOpenAuth.OAuth" requirePermission="false" allowLocation="true" />
- </sectionGroup>
- <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
- <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
- <sectionGroup name="elmah">
- <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
- <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
- <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
- <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
- </sectionGroup>
- </configSections>
- <connectionStrings>
- <!--<clear />
- <add name="LocalSqlServer" connectionString="Data Source=.\sqlexpress;Initial Catalog=OfficeCentralMVC;Integrated Security=SSPI;multipleactiveresultsets=true;" providerName="System.Data.SqlClient" />-->
- <!-- Rename initialcatalog kalau nak tukar nama. Yang ni officecentralmvcuser -->
- <add name="DefaultConnection" connectionString="Data Source=.\;Initial Catalog=officecentralmvc-stg;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />
- <add name="ElmahConnection" connectionString="Data Source=.\;Initial Catalog=officecentralmvc-elmah;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />
- <add name="hangfire" connectionString="Data Source=.\;Initial Catalog=officecentralmvc-stg;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />
- <add name="testconnection" connectionString="Data Source=.\;Initial Catalog=officecentralmvc-stg;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />
- <!-- Bawah ni untuk database officecentralmvc -->
- <add name="OfficeCentralMVCInfrastructure.EFDataContext" connectionString="Data Source=.\;Initial Catalog=officecentralmvc-stg;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />
- <add name="oldaccounting" connectionString="Data Source=.\;Initial Catalog=eAccount-Betul_betul;Integrated Security=SSPI;multipleactiveresultsets=true;" providerName="System.Data.SqlClient" />
- <!--<add name="elmah-sqlserver" connectionString="Data Source=****;User ID=****;Password=****;Initial Catalog=****;" providerName="System.Data.SqlClient" />-->
- </connectionStrings>
- <appSettings>
- <add key="webpages:Version" value="3.0.0.0" />
- <add key="webpages:Enabled" value="false" />
- <add key="PreserveLoginUrl" value="true" />
- <add key="ClientValidationEnabled" value="true" />
- <add key="UnobtrusiveJavaScriptEnabled" value="true" />
- <add key="attendancemanagementurl" value="http://localhost:54432" />
- <add key="emailfromaddress" value="''OfficeCentral.com.my'' <noreply@officecentral.asia>" />
- <add key="emailhost" value="smtp.officecentral.asia" />
- <add key="emailport" value="587" />
- <add key="emailusername" value="noreply@officecentral.asia" />
- <add key="emailpassword" value="QIkgVWy5" />
- <add key="emailenablessl" value="false" />
- <add key="enablebackgroundjob" value="false" />
- <add key="enablelicensebackgroundjob" value="false" />
- <add key="uploadpath" value="~/content/Users/Uploads/" />
- <add key="officecentralaccounting" value="http://localhost:60882/OfficeCentralAccountingGST" />
- <add key="smscost" value="0.14" />
- <add key="emailcost" value="0" />
- <add key="generatedfilepath" value="~/content/users/files/" />
- <add key="custompages_maraids_str" value="3060,3170" />
- <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
- <add key="gafuploadpath" value="~/content/users/uploads/gaf/" />
- <add key="gafdownloadurl" value="https://officecentral.blob.core.windows.net/users/" />
- <!--<add key="gafuploadpath" value="~/content/users/uploads/gaf/" />-->
- <add key="AzureStorageConnectionString" value="DefaultEndpointsProtocol=https;AccountName=officecentral;AccountKey=tTRLp+rKORC3rHHj781OFe3ZpX8tFlGKO1Em+cat9tgZf8ed0Kzv5jYwZu0adRnTkLB7TMQ9Im4/8djBPCcxfQ==" />
- <add key="AzureAccountName" value="officecentral" />
- <add key="AzureContainer" value="users" />
- <add key="AzureAuditLogContainer" value="localauditlogs" />
- <add key="hangfireusedefaultpath" value="true" />
- <add key="hangfirecustompath" value="E:/BackgroundJobUat/publish/" />
- <add key="setashangfireserver" value="true" />
- <add key="hangfire_invisibilitytimeout_minutes" value="720" />
- <add key="CurrentDomain" value="https://localhost:44300" />
- <add key="VenturePay2Host" value="http://localhost:51107" />
- <add key="VenturePay2SecretKey" value="I98T6IUhinJ778KJ" />
- <add key="elmah.mvc.disableHandler" value="false" /><add key="elmah.mvc.disableHandleErrorFilter" value="false" /><add key="elmah.mvc.requiresAuthentication" value="false" /><add key="elmah.mvc.IgnoreDefaultRoute" value="false" /><add key="elmah.mvc.allowedRoles" value="*" /><add key="elmah.mvc.allowedUsers" value="*" /><add key="elmah.mvc.route" value="elmah" /><add key="elmah.mvc.UserAuthCaseSensitive" value="true" /></appSettings>
- <!--
- 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.1"/>
- </system.Web>
- -->
- <system.web>
- <httpRuntime executionTimeout="14400" maxRequestLength="1048576" />
- <compilation debug="true" targetFramework="4.5.1">
- <buildProviders>
- <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
- </buildProviders>
- <assemblies>
- <add assembly="Microsoft.ReportViewer.Common, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
- <add assembly="Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
- </assemblies>
- </compilation>
- <sessionState timeout="4880" />
- <authentication mode="Forms">
- <forms loginUrl="~/Account/Login" timeout="4880" />
- </authentication>
- <pages controlRenderingCompatibilityVersion="4.0">
- <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>
- </pages>
- <!--<globalization uiCulture="auto" culture="auto" />-->
- <globalization uiCulture="en-MY" culture="en-MY" />
- <httpHandlers>
- <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" validate="false" />
- </httpHandlers>
- <httpModules>
- <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
- <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
- <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
- </httpModules>
- </system.web>
- <system.webServer>
- <modules runAllManagedModulesForAllRequests="true">
- <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
- <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
- <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
- </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" />
- <add name="ReportViewerWebControlHandler" verb="*" path="Reserved.ReportViewerWebControl.axd" preCondition="integratedMode" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
- </handlers>
- <security>
- <requestFiltering>
- <requestLimits maxAllowedContentLength="1073741824" />
- <fileExtensions>
- <add fileExtension=".woff" allowed="true" />
- <add fileExtension=".woff2" allowed="true" />
- </fileExtensions>
- </requestFiltering>
- </security>
- <staticContent>
- <remove fileExtension=".woff" />
- <!-- In case IIS already has this mime type -->
- <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
- <remove fileExtension=".woff2" />
- <!-- In case IIS already has this mime type -->
- <mimeMap fileExtension=".woff2" mimeType="application/x-font-woff2" />
- </staticContent>
- <validation validateIntegratedModeConfiguration="false" />
- </system.webServer>
- <runtime>
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.Build.Framework" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="EnvDTE" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="WebMatrix.Data" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="DotNetOpenAuth.AspNet" publicKeyToken="2780ccd10d57b246" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="DotNetOpenAuth.Core" publicKeyToken="2780ccd10d57b246" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.2.0" newVersion="5.2.2.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.1.0.0" newVersion="5.2.2.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.4.0.0" newVersion="6.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Ninject" publicKeyToken="c7192dc5380945e7" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-3.2.0.0" newVersion="3.2.0.0" />
- </dependentAssembly>
- <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="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.8.3.0" newVersion="5.8.3.0" />
- </dependentAssembly>
- <!--<dependentAssembly>
- <assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.5.0.0" newVersion="5.5.0.0" />
- </dependentAssembly>-->
- <dependentAssembly>
- <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-2.0.8.0" newVersion="2.0.8.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.ReportViewer.ProcessingObjectModel" publicKeyToken="89845dcd8080cc91" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.8.3.0" newVersion="5.8.3.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Spatial" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.8.3.0" newVersion="5.8.3.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="MiniProfiler" publicKeyToken="b44f9351044011a3" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-3.1.1.140" newVersion="3.1.1.140" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.ReportViewer.DataVisualization" publicKeyToken="89845dcd8080cc91" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.SqlServer.Types" publicKeyToken="89845dcd8080cc91" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.ReportViewer.WebForms" publicKeyToken="89845dcd8080cc91" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.ReportViewer.Common" publicKeyToken="89845dcd8080cc91" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
- </dependentAssembly>
- </assemblyBinding>
- <!-- When targeting ASP.NET MVC 3, this assemblyBinding makes MVC 1 and 2 references relink
- to MVC 3 so libraries such as DotNetOpenAuth that compile against MVC 1 will work with it.
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
- <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
- </dependentAssembly>
- </assemblyBinding>
- -->
- <!-- This prevents the Windows Event Log from frequently logging that HMAC1 is being used (when the other party needs it). -->
- <legacyHMACWarning enabled="0" />
- <!-- When targeting ASP.NET MVC 3, this assemblyBinding makes MVC 1 and 2 references relink
- to MVC 3 so libraries such as DotNetOpenAuth that compile against MVC 1 will work with it.
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
- <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
- </dependentAssembly>
- </assemblyBinding>
- -->
- </runtime>
- <entityFramework>
- <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
- <providers>
- <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
- </providers>
- <contexts>
- <context type="Elmah.SqlServer.EFInitializer.ElmahContext, Elmah.SqlServer.EFInitializer">
- <databaseInitializer type="Elmah.SqlServer.EFInitializer.ElmahDatabaseInitializer, Elmah.SqlServer.EFInitializer" />
- </context>
- </contexts></entityFramework>
- <system.net>
- <defaultProxy enabled="true" />
- <settings>
- <!-- This setting causes .NET to check certificate revocation lists (CRL)
- before trusting HTTPS certificates. But this setting tends to not
- be allowed in shared hosting environments. -->
- <!--<servicePointManager checkCertificateRevocationList="true"/>-->
- </settings>
- </system.net>
- <dotNetOpenAuth>
- <messaging>
- <untrustedWebRequest>
- <whitelistHosts>
- <!-- Uncomment to enable communication with localhost (should generally not activate in production!) -->
- <!--<add name="localhost"/>-->
- </whitelistHosts>
- </untrustedWebRequest>
- </messaging>
- <!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. -->
- <reporting enabled="true" />
- <!-- This is an optional configuration section where aspects of dotnetopenauth can be customized. -->
- <!-- For a complete set of configuration options see http://www.dotnetopenauth.net/developers/code-snippets/configuration-options/ -->
- <openid>
- <relyingParty>
- <security requireSsl="false">
- <!-- Uncomment the trustedProviders tag if your relying party should only accept positive assertions from a closed set of OpenID Providers. -->
- <!--<trustedProviders rejectAssertionsFromUntrustedProviders="true">
- <add endpoint="https://www.google.com/accounts/o8/ud"/>
- </trustedProviders>-->
- </security>
- <behaviors>
- <!-- The following OPTIONAL behavior allows RPs to use SREG only, but be compatible
- with OPs that use Attribute Exchange (in various formats). -->
- <add type="DotNetOpenAuth.OpenId.RelyingParty.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth.OpenId.RelyingParty" />
- </behaviors>
- </relyingParty>
- </openid>
- </dotNetOpenAuth>
- <!--<uri>-->
- <!-- The uri section is necessary to turn on .NET 3.5 support for IDN (international domain names),
- which is necessary for OpenID urls with unicode characters in the domain/host name.
- It is also required to put the Uri class into RFC 3986 escaping mode, which OpenID and OAuth require. -->
- <!--<idn enabled="All"/>
- <iriParsing enabled="true"/>
- </uri>-->
- <system.serviceModel>
- <bindings>
- <basicHttpBinding>
- <binding name="BasicHttpBinding_IServiceVenturePayment" />
- </basicHttpBinding>
- </bindings>
- <client>
- <endpoint address="http://pay.officecentral.asia/ws/ServiceVenturePayment.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IServiceVenturePayment" contract="VenturePayServiceReference.IServiceVenturePayment" name="BasicHttpBinding_IServiceVenturePayment" />
- </client>
- </system.serviceModel>
- <system.web.extensions>
- <scripting>
- <webServices>
- <jsonSerialization maxJsonLength="2147483644" />
- </webServices>
- </scripting>
- </system.web.extensions>
- <elmah>
- <!--
- See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
- more information on remote access and securing ELMAH.
- -->
- <security allowRemoteAccess="false" />
- <errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="ElmahConnection" /></elmah>
- <location path="elmah.axd" inheritInChildApplications="false">
- <system.web>
- <httpHandlers>
- <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
- </httpHandlers>
- <!--
- See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
- more information on using ASP.NET authorization securing ELMAH.
- <authorization>
- <allow roles="admin" />
- <deny users="*" />
- </authorization>
- -->
- </system.web>
- <!--
- ELMAH
- ref: https://www.devcurry.com/2012/05/error-handling-elmah-in-aspnet-mvc.html
- -->
- <system.webServer>
- <handlers>
- <add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
- </handlers>
- </system.webServer>
- </location>
- </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement