Advertisement
Guest User

web config

a guest
May 21st, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.34 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. For more information on how to configure your ASP.NET application, please visit
  4. http://go.microsoft.com/fwlink/?LinkId=169433
  5. -->
  6. <configuration>
  7. <configSections>
  8. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  9. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  10.  
  11. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  12. <sectionGroup name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection, DotNetOpenAuth.Core">
  13. <section name="messaging" type="DotNetOpenAuth.Configuration.MessagingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
  14. <section name="reporting" type="DotNetOpenAuth.Configuration.ReportingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
  15. <section name="openid" type="DotNetOpenAuth.Configuration.OpenIdElement, DotNetOpenAuth.OpenId" requirePermission="false" allowLocation="true" />
  16. <section name="oauth" type="DotNetOpenAuth.Configuration.OAuthElement, DotNetOpenAuth.OAuth" requirePermission="false" allowLocation="true" />
  17. </sectionGroup>
  18.  
  19. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  20. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  21. <sectionGroup name="elmah">
  22. <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
  23. <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
  24. <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
  25. <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
  26. </sectionGroup>
  27. </configSections>
  28. <connectionStrings>
  29. <!--<clear />
  30. <add name="LocalSqlServer" connectionString="Data Source=.\sqlexpress;Initial Catalog=OfficeCentralMVC;Integrated Security=SSPI;multipleactiveresultsets=true;" providerName="System.Data.SqlClient" />-->
  31. <!-- Rename initialcatalog kalau nak tukar nama. Yang ni officecentralmvcuser -->
  32.  
  33. <add name="DefaultConnection" connectionString="Data Source=.\;Initial Catalog=officecentralmvc-stg;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />
  34. <add name="ElmahConnection" connectionString="Data Source=.\;Initial Catalog=officecentralmvc-elmah;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />
  35. <add name="hangfire" connectionString="Data Source=.\;Initial Catalog=officecentralmvc-stg;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />
  36. <add name="testconnection" connectionString="Data Source=.\;Initial Catalog=officecentralmvc-stg;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />
  37.  
  38. <!-- Bawah ni untuk database officecentralmvc -->
  39. <add name="OfficeCentralMVCInfrastructure.EFDataContext" connectionString="Data Source=.\;Initial Catalog=officecentralmvc-stg;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />
  40. <add name="oldaccounting" connectionString="Data Source=.\;Initial Catalog=eAccount-Betul_betul;Integrated Security=SSPI;multipleactiveresultsets=true;" providerName="System.Data.SqlClient" />
  41. <!--<add name="elmah-sqlserver" connectionString="Data Source=****;User ID=****;Password=****;Initial Catalog=****;" providerName="System.Data.SqlClient" />-->
  42. </connectionStrings>
  43. <appSettings>
  44.  
  45. <add key="webpages:Version" value="3.0.0.0" />
  46. <add key="webpages:Enabled" value="false" />
  47. <add key="PreserveLoginUrl" value="true" />
  48. <add key="ClientValidationEnabled" value="true" />
  49. <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  50. <add key="attendancemanagementurl" value="http://localhost:54432" />
  51. <add key="emailfromaddress" value="''OfficeCentral.com.my'' &lt;noreply@officecentral.asia&gt;" />
  52. <add key="emailhost" value="smtp.officecentral.asia" />
  53. <add key="emailport" value="587" />
  54. <add key="emailusername" value="noreply@officecentral.asia" />
  55. <add key="emailpassword" value="QIkgVWy5" />
  56. <add key="emailenablessl" value="false" />
  57. <add key="enablebackgroundjob" value="false" />
  58. <add key="enablelicensebackgroundjob" value="false" />
  59. <add key="uploadpath" value="~/content/Users/Uploads/" />
  60. <add key="officecentralaccounting" value="http://localhost:60882/OfficeCentralAccountingGST" />
  61. <add key="smscost" value="0.14" />
  62. <add key="emailcost" value="0" />
  63. <add key="generatedfilepath" value="~/content/users/files/" />
  64. <add key="custompages_maraids_str" value="3060,3170" />
  65. <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
  66.  
  67. <add key="gafuploadpath" value="~/content/users/uploads/gaf/" />
  68. <add key="gafdownloadurl" value="https://officecentral.blob.core.windows.net/users/" />
  69. <!--<add key="gafuploadpath" value="~/content/users/uploads/gaf/" />-->
  70. <add key="AzureStorageConnectionString" value="DefaultEndpointsProtocol=https;AccountName=officecentral;AccountKey=tTRLp+rKORC3rHHj781OFe3ZpX8tFlGKO1Em+cat9tgZf8ed0Kzv5jYwZu0adRnTkLB7TMQ9Im4/8djBPCcxfQ==" />
  71. <add key="AzureAccountName" value="officecentral" />
  72. <add key="AzureContainer" value="users" />
  73. <add key="AzureAuditLogContainer" value="localauditlogs" />
  74.  
  75. <add key="hangfireusedefaultpath" value="true" />
  76. <add key="hangfirecustompath" value="E:/BackgroundJobUat/publish/" />
  77.  
  78. <add key="setashangfireserver" value="true" />
  79. <add key="hangfire_invisibilitytimeout_minutes" value="720" />
  80.  
  81. <add key="CurrentDomain" value="https://localhost:44300" />
  82. <add key="VenturePay2Host" value="http://localhost:51107" />
  83. <add key="VenturePay2SecretKey" value="I98T6IUhinJ778KJ" />
  84.  
  85. <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>
  86. <!--
  87. For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
  88.  
  89. The following attributes can be set on the <httpRuntime> tag.
  90. <system.Web>
  91. <httpRuntime targetFramework="4.5.1"/>
  92. </system.Web>
  93. -->
  94. <system.web>
  95. <httpRuntime executionTimeout="14400" maxRequestLength="1048576" />
  96. <compilation debug="true" targetFramework="4.5.1">
  97. <buildProviders>
  98. <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
  99. </buildProviders>
  100. <assemblies>
  101. <add assembly="Microsoft.ReportViewer.Common, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
  102. <add assembly="Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
  103. </assemblies>
  104. </compilation>
  105. <sessionState timeout="4880" />
  106. <authentication mode="Forms">
  107. <forms loginUrl="~/Account/Login" timeout="4880" />
  108. </authentication>
  109. <pages controlRenderingCompatibilityVersion="4.0">
  110. <namespaces>
  111. <add namespace="System.Web.Helpers" />
  112. <add namespace="System.Web.Mvc" />
  113. <add namespace="System.Web.Mvc.Ajax" />
  114. <add namespace="System.Web.Mvc.Html" />
  115. <add namespace="System.Web.Optimization" />
  116. <add namespace="System.Web.Routing" />
  117. <add namespace="System.Web.WebPages" />
  118. </namespaces>
  119. </pages>
  120. <!--<globalization uiCulture="auto" culture="auto" />-->
  121. <globalization uiCulture="en-MY" culture="en-MY" />
  122. <httpHandlers>
  123. <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" />
  124. </httpHandlers>
  125. <httpModules>
  126. <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
  127. <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
  128. <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
  129. </httpModules>
  130. </system.web>
  131. <system.webServer>
  132.  
  133. <modules runAllManagedModulesForAllRequests="true">
  134. <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
  135. <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
  136. <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
  137. </modules>
  138.  
  139. <handlers>
  140. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  141. <remove name="OPTIONSVerbHandler" />
  142. <remove name="TRACEVerbHandler" />
  143. <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  144. <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" />
  145. </handlers>
  146.  
  147. <security>
  148. <requestFiltering>
  149. <requestLimits maxAllowedContentLength="1073741824" />
  150. <fileExtensions>
  151. <add fileExtension=".woff" allowed="true" />
  152. <add fileExtension=".woff2" allowed="true" />
  153. </fileExtensions>
  154. </requestFiltering>
  155. </security>
  156.  
  157. <staticContent>
  158. <remove fileExtension=".woff" />
  159. <!-- In case IIS already has this mime type -->
  160. <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
  161. <remove fileExtension=".woff2" />
  162. <!-- In case IIS already has this mime type -->
  163. <mimeMap fileExtension=".woff2" mimeType="application/x-font-woff2" />
  164. </staticContent>
  165. <validation validateIntegratedModeConfiguration="false" />
  166. </system.webServer>
  167. <runtime>
  168. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  169. <dependentAssembly>
  170. <assemblyIdentity name="Microsoft.Build.Framework" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
  171. <bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" />
  172. </dependentAssembly>
  173. <dependentAssembly>
  174. <assemblyIdentity name="EnvDTE" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
  175. <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
  176. </dependentAssembly>
  177. <dependentAssembly>
  178. <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  179. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  180. </dependentAssembly>
  181. <dependentAssembly>
  182. <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  183. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  184. </dependentAssembly>
  185. <dependentAssembly>
  186. <assemblyIdentity name="WebMatrix.Data" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  187. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  188. </dependentAssembly>
  189. <dependentAssembly>
  190. <assemblyIdentity name="DotNetOpenAuth.AspNet" publicKeyToken="2780ccd10d57b246" culture="neutral" />
  191. <bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
  192. </dependentAssembly>
  193. <dependentAssembly>
  194. <assemblyIdentity name="DotNetOpenAuth.Core" publicKeyToken="2780ccd10d57b246" culture="neutral" />
  195. <bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
  196. </dependentAssembly>
  197. <dependentAssembly>
  198. <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  199. <bindingRedirect oldVersion="0.0.0.0-5.2.2.0" newVersion="5.2.2.0" />
  200. </dependentAssembly>
  201. <dependentAssembly>
  202. <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  203. <bindingRedirect oldVersion="0.0.0.0-5.1.0.0" newVersion="5.2.2.0" />
  204. </dependentAssembly>
  205. <dependentAssembly>
  206. <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
  207. <bindingRedirect oldVersion="0.0.0.0-4.4.0.0" newVersion="6.0.0.0" />
  208. </dependentAssembly>
  209. <dependentAssembly>
  210. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  211. <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
  212. </dependentAssembly>
  213. <dependentAssembly>
  214. <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
  215. <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
  216. </dependentAssembly>
  217. <dependentAssembly>
  218. <assemblyIdentity name="Ninject" publicKeyToken="c7192dc5380945e7" culture="neutral" />
  219. <bindingRedirect oldVersion="0.0.0.0-3.2.0.0" newVersion="3.2.0.0" />
  220. </dependentAssembly>
  221. <dependentAssembly>
  222. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  223. <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
  224. </dependentAssembly>
  225. <dependentAssembly>
  226. <assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  227. <bindingRedirect oldVersion="0.0.0.0-5.8.3.0" newVersion="5.8.3.0" />
  228. </dependentAssembly>
  229. <!--<dependentAssembly>
  230. <assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  231. <bindingRedirect oldVersion="0.0.0.0-5.5.0.0" newVersion="5.5.0.0" />
  232. </dependentAssembly>-->
  233. <dependentAssembly>
  234. <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
  235. <bindingRedirect oldVersion="0.0.0.0-2.0.8.0" newVersion="2.0.8.0" />
  236. </dependentAssembly>
  237. <dependentAssembly>
  238. <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  239. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  240. </dependentAssembly>
  241. <dependentAssembly>
  242. <assemblyIdentity name="Microsoft.ReportViewer.ProcessingObjectModel" publicKeyToken="89845dcd8080cc91" culture="neutral" />
  243. <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
  244. </dependentAssembly>
  245. <dependentAssembly>
  246. <assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  247. <bindingRedirect oldVersion="0.0.0.0-5.8.3.0" newVersion="5.8.3.0" />
  248. </dependentAssembly>
  249. <dependentAssembly>
  250. <assemblyIdentity name="System.Spatial" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  251. <bindingRedirect oldVersion="0.0.0.0-5.8.3.0" newVersion="5.8.3.0" />
  252. </dependentAssembly>
  253. <dependentAssembly>
  254. <assemblyIdentity name="MiniProfiler" publicKeyToken="b44f9351044011a3" culture="neutral" />
  255. <bindingRedirect oldVersion="0.0.0.0-3.1.1.140" newVersion="3.1.1.140" />
  256. </dependentAssembly>
  257. <dependentAssembly>
  258. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  259. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  260. </dependentAssembly>
  261. <dependentAssembly>
  262. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  263. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  264. </dependentAssembly>
  265. <dependentAssembly>
  266. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  267. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  268. </dependentAssembly>
  269. <dependentAssembly>
  270. <assemblyIdentity name="Microsoft.ReportViewer.DataVisualization" publicKeyToken="89845dcd8080cc91" culture="neutral" />
  271. <bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" />
  272. </dependentAssembly>
  273. <dependentAssembly>
  274. <assemblyIdentity name="Microsoft.SqlServer.Types" publicKeyToken="89845dcd8080cc91" culture="neutral" />
  275. <bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" />
  276. </dependentAssembly>
  277. <dependentAssembly>
  278. <assemblyIdentity name="Microsoft.ReportViewer.WebForms" publicKeyToken="89845dcd8080cc91" culture="neutral" />
  279. <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
  280. </dependentAssembly>
  281. <dependentAssembly>
  282. <assemblyIdentity name="Microsoft.ReportViewer.Common" publicKeyToken="89845dcd8080cc91" culture="neutral" />
  283. <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
  284. </dependentAssembly>
  285. </assemblyBinding>
  286.  
  287.  
  288. <!-- When targeting ASP.NET MVC 3, this assemblyBinding makes MVC 1 and 2 references relink
  289. to MVC 3 so libraries such as DotNetOpenAuth that compile against MVC 1 will work with it.
  290. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  291. <dependentAssembly>
  292. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
  293. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  294. </dependentAssembly>
  295. </assemblyBinding>
  296. -->
  297. <!-- This prevents the Windows Event Log from frequently logging that HMAC1 is being used (when the other party needs it). -->
  298. <legacyHMACWarning enabled="0" />
  299. <!-- When targeting ASP.NET MVC 3, this assemblyBinding makes MVC 1 and 2 references relink
  300. to MVC 3 so libraries such as DotNetOpenAuth that compile against MVC 1 will work with it.
  301. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  302. <dependentAssembly>
  303. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
  304. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  305. </dependentAssembly>
  306. </assemblyBinding>
  307. -->
  308. </runtime>
  309. <entityFramework>
  310. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
  311. <providers>
  312. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  313. </providers>
  314. <contexts>
  315. <context type="Elmah.SqlServer.EFInitializer.ElmahContext, Elmah.SqlServer.EFInitializer">
  316. <databaseInitializer type="Elmah.SqlServer.EFInitializer.ElmahDatabaseInitializer, Elmah.SqlServer.EFInitializer" />
  317. </context>
  318. </contexts></entityFramework>
  319.  
  320.  
  321.  
  322. <system.net>
  323. <defaultProxy enabled="true" />
  324. <settings>
  325. <!-- This setting causes .NET to check certificate revocation lists (CRL)
  326. before trusting HTTPS certificates. But this setting tends to not
  327. be allowed in shared hosting environments. -->
  328. <!--<servicePointManager checkCertificateRevocationList="true"/>-->
  329. </settings>
  330. </system.net>
  331. <dotNetOpenAuth>
  332. <messaging>
  333. <untrustedWebRequest>
  334. <whitelistHosts>
  335. <!-- Uncomment to enable communication with localhost (should generally not activate in production!) -->
  336. <!--<add name="localhost"/>-->
  337. </whitelistHosts>
  338. </untrustedWebRequest>
  339. </messaging>
  340. <!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. -->
  341. <reporting enabled="true" />
  342. <!-- This is an optional configuration section where aspects of dotnetopenauth can be customized. -->
  343. <!-- For a complete set of configuration options see http://www.dotnetopenauth.net/developers/code-snippets/configuration-options/ -->
  344. <openid>
  345. <relyingParty>
  346. <security requireSsl="false">
  347. <!-- Uncomment the trustedProviders tag if your relying party should only accept positive assertions from a closed set of OpenID Providers. -->
  348. <!--<trustedProviders rejectAssertionsFromUntrustedProviders="true">
  349. <add endpoint="https://www.google.com/accounts/o8/ud"/>
  350. </trustedProviders>-->
  351. </security>
  352. <behaviors>
  353. <!-- The following OPTIONAL behavior allows RPs to use SREG only, but be compatible
  354. with OPs that use Attribute Exchange (in various formats). -->
  355. <add type="DotNetOpenAuth.OpenId.RelyingParty.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth.OpenId.RelyingParty" />
  356. </behaviors>
  357. </relyingParty>
  358. </openid>
  359. </dotNetOpenAuth>
  360. <!--<uri>-->
  361. <!-- The uri section is necessary to turn on .NET 3.5 support for IDN (international domain names),
  362. which is necessary for OpenID urls with unicode characters in the domain/host name.
  363. It is also required to put the Uri class into RFC 3986 escaping mode, which OpenID and OAuth require. -->
  364. <!--<idn enabled="All"/>
  365. <iriParsing enabled="true"/>
  366. </uri>-->
  367. <system.serviceModel>
  368. <bindings>
  369. <basicHttpBinding>
  370. <binding name="BasicHttpBinding_IServiceVenturePayment" />
  371. </basicHttpBinding>
  372. </bindings>
  373. <client>
  374. <endpoint address="http://pay.officecentral.asia/ws/ServiceVenturePayment.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IServiceVenturePayment" contract="VenturePayServiceReference.IServiceVenturePayment" name="BasicHttpBinding_IServiceVenturePayment" />
  375. </client>
  376. </system.serviceModel>
  377. <system.web.extensions>
  378. <scripting>
  379. <webServices>
  380. <jsonSerialization maxJsonLength="2147483644" />
  381. </webServices>
  382. </scripting>
  383. </system.web.extensions>
  384.  
  385. <elmah>
  386. <!--
  387. See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
  388. more information on remote access and securing ELMAH.
  389. -->
  390. <security allowRemoteAccess="false" />
  391. <errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="ElmahConnection" /></elmah>
  392. <location path="elmah.axd" inheritInChildApplications="false">
  393. <system.web>
  394. <httpHandlers>
  395. <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
  396. </httpHandlers>
  397. <!--
  398. See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
  399. more information on using ASP.NET authorization securing ELMAH.
  400.  
  401. <authorization>
  402. <allow roles="admin" />
  403. <deny users="*" />
  404. </authorization>
  405. -->
  406. </system.web>
  407.  
  408. <!--
  409. ELMAH
  410. ref: https://www.devcurry.com/2012/05/error-handling-elmah-in-aspnet-mvc.html
  411.  
  412. -->
  413. <system.webServer>
  414. <handlers>
  415. <add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
  416. </handlers>
  417. </system.webServer>
  418. </location>
  419. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement