Guest User

Untitled

a guest
Jul 15th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. <configuration>
  2. <appSettings>
  3. <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
  4. </appSettings>
  5. <system.web>
  6. <compilation debug="true" targetFramework="4.8" />
  7. <httpRuntime targetFramework="4.8" />
  8. </system.web>
  9. <system.serviceModel>
  10. <extensions>
  11. <behaviorExtensions>
  12. <add name="corsBehavior" type="WebHttpBehaviorExtensions.Cors.EnableCorsBehavior, WebHttpBehaviorExtensions, Version=1.0.0.0, Culture=neutral"/>
  13. </behaviorExtensions>
  14. </extensions>
  15. <bindings>
  16. <webHttpBinding>
  17. <binding name="webHttpBindingWithJsonP" crossDomainScriptAccessEnabled="true" />
  18. </webHttpBinding>
  19. </bindings>
  20. <behaviors>
  21. <serviceBehaviors>
  22. <behavior name="Accesio.WebApi.WebScanner.WebBehavior">
  23. <serviceMetadata httpGetEnabled="true" />
  24. <serviceDebug includeExceptionDetailInFaults="false" />
  25. </behavior>
  26. </serviceBehaviors>
  27. <endpointBehaviors>
  28. <behavior name="webHttpServiceBehavior">
  29. <corsBehavior/>
  30. <webHttp/>
  31. </behavior>
  32. </endpointBehaviors>
  33. </behaviors>
  34. <services>
  35. <service behaviorConfiguration="Accesio.WebApi.WebScanner.WebBehavior" name="Accesio.WebApi.WebScanner.ScanService">
  36. <host>
  37. <baseAddresses>
  38. <add baseAddress="http://localhost:7890/WebScanning/service" />
  39. </baseAddresses>
  40. </host>
  41. <endpoint address="" binding="webHttpBinding" contract="Accesio.WebApi.WebScanner.IScanService" bindingConfiguration="webHttpBindingWithJsonP" behaviorConfiguration="webHttpServiceBehavior" />
  42. </service>
  43. </services>
  44. <protocolMapping>
  45. <add binding="basicHttpsBinding" scheme="https" />
  46. </protocolMapping>
  47. <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  48. </system.serviceModel>
  49. <system.webServer>
  50. <modules runAllManagedModulesForAllRequests="true" />
  51. <directoryBrowse enabled="true" />
  52. </system.webServer>
  53. <runtime>
  54. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  55. <dependentAssembly>
  56. <assemblyIdentity name="RabbitMQ.Client" publicKeyToken="89e7d7c5feba84ce" culture="neutral" />
  57.  
  58. <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
  59. </dependentAssembly>
  60. <dependentAssembly>
  61. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  62. <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
  63. </dependentAssembly>
  64. </assemblyBinding>
  65. </runtime>
  66. </configuration>
Add Comment
Please, Sign In to add comment