Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Optimization.Web/Web.config @ 8802

Last change on this file since 8802 was 8506, checked in by fschoepp, 12 years ago

#1888:

  • Web project now creates custom html for each type we want to enter / display
  • Added endpointConfigurationName to HiveServiceLocator (because Web Project contains more than one endpoint configuration)
  • Removed logging statement from ConfigurationService to prevent exception during failure of loading ConfigurationSettings
  • ApplicationManager: Changed default implementation to WebApplicationManager (instead of LightWeight) for testing purposes within Web Project
  • WebApplicationManager: The application manager which returns plugin descriptors from the currently loaded assemblies (instead of LightweightAppManager)
  • HiveService: Fixed a transaction bug
  • IControllerService: Created a method to dispatch Scenarios to certain IScenarioManager (in this case HiveScenarioManager)
  • Added more mappable types to ControllerModel
  • PlaceholderControllerService dispatches all Scenarios to the HiveScenarioManager
  • Web project now dispatches the scenario to the controller after pressing "Run Job"
File size: 10.9 KB
Line 
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=152368
5  -->
6<configuration>
7  <system.diagnostics>
8    <trace>
9      <listeners>
10        <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics">
11          <filter type="" />
12        </add>
13      </listeners>
14    </trace>
15    <sources>
16      <source name="System.ServiceModel"
17              switchValue="Information, ActivityTracing"
18              propagateActivity="true" >
19        <listeners>
20          <add name="xml"/>
21        </listeners>
22      </source>
23      <source name="System.ServiceModel.MessageLogging">
24        <listeners>
25          <add name="xml"/>
26        </listeners>
27      </source>
28      <source name="myUserTraceSource"
29              switchValue="Information, ActivityTracing">
30        <listeners>
31          <add name="xml"/>
32        </listeners>
33      </source>
34    </sources>
35    <sharedListeners>
36      <add name="xml"
37           type="System.Diagnostics.XmlWriterTraceListener"
38                 initializeData="C:\logs\Traces.svclog" />
39    </sharedListeners>
40  </system.diagnostics>
41 
42 
43  <connectionStrings>
44    <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
45      providerName="System.Data.SqlClient" />
46    <add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=aspnet_eb6c1a930dad4e2e9eaf3dcd73e6f924;Integrated Security=True;MultipleActiveResultSets=True"
47      providerName="System.Data.SqlClient" />
48    <add name="HeuristicLab.Authentication" connectionString="ADJUST_ME"/>
49  </connectionStrings>
50  <appSettings>
51    <add key="webpages:Version" value="1.0.0.0" />
52    <add key="ClientValidationEnabled" value="true" />
53    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
54  </appSettings>
55  <system.web>
56    <compilation debug="true" targetFramework="4.0">
57      <assemblies>
58        <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
59        <add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
60        <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
61        <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
62        <add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
63      </assemblies>
64    </compilation>
65    <authentication mode="Forms">
66      <forms loginUrl="~/Account/LogOn" timeout="2880" />
67    </authentication>
68    <membership>
69      <providers>
70        <clear/>
71        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="HeuristicLab.Authentication" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="HeuristicLab.Authentication"/>
72      </providers>
73    </membership>
74    <profile defaultProvider="DefaultProfileProvider">
75      <providers>
76        <clear />
77        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
78        <add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
79      </providers>
80    </profile>
81    <roleManager enabled="true">
82      <providers>
83        <clear />
84        <add connectionStringName="HeuristicLab.Authentication" applicationName="HeuristicLab.Authentication"
85          name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" />
86      </providers>
87    </roleManager>
88    <pages>
89      <namespaces>
90        <add namespace="System.Web.Helpers" />
91        <add namespace="System.Web.Mvc" />
92        <add namespace="System.Web.Mvc.Ajax" />
93        <add namespace="System.Web.Mvc.Html" />
94        <add namespace="System.Web.Routing" />
95        <add namespace="System.Web.WebPages" />
96      </namespaces>
97    </pages>
98    <sessionState mode="InProc" customProvider="DefaultSessionProvider">
99      <providers>
100        <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
101      </providers>
102    </sessionState>
103  </system.web>
104  <system.webServer>
105    <validation validateIntegratedModeConfiguration="false" />
106    <modules runAllManagedModulesForAllRequests="true" />
107  </system.webServer>
108  <runtime>
109    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
110      <dependentAssembly>
111        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
112        <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
113      </dependentAssembly>
114    </assemblyBinding>
115  </runtime>
116  <!--system.serviceModel>
117    <behaviors>
118      <serviceBehaviors>
119        <behavior name="">
120          <serviceMetadata httpGetEnabled="true" />
121          <serviceDebug includeExceptionDetailInFaults="false" />
122        </behavior>
123      </serviceBehaviors>
124    </behaviors>
125    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
126  </system.serviceModel-->
127
128  <system.serviceModel>
129    <diagnostics>
130      <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxMessagesToLog="3000"/>
131    </diagnostics>
132    <bindings>
133      <wsHttpBinding>
134        <binding name="WSHttpBinding_IControllerService" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
135          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
136          <security mode="Message">
137            <transport clientCredentialType="Certificate"/>
138            <message clientCredentialType="UserName"/>
139          </security>
140        </binding>
141        <binding name="WSHttpBinding_IHiveService" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
142          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
143          <security mode="Message">
144            <transport clientCredentialType="Certificate"/>
145            <message clientCredentialType="UserName"/>
146          </security>
147        </binding>
148      </wsHttpBinding>
149    </bindings>
150    <behaviors>
151      <serviceBehaviors>
152        <behavior name="ServiceBehaviour_IControllerService">
153          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
154          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false"/>
155          <!-- 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 -->
156          <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true"/>
157          <serviceAuthorization principalPermissionMode="UseAspNetRoles" roleProviderName="AspNetSqlRoleProvider"/>
158          <serviceCredentials>
159            <serviceCertificate findValue="localhost" x509FindType="FindBySubjectName"/>
160            <userNameAuthentication userNamePasswordValidationMode="MembershipProvider" membershipProviderName="AspNetSqlMembershipProvider"/>
161          </serviceCredentials>
162          <serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="false" messageAuthenticationAuditLevel="SuccessOrFailure"/>
163          <serviceThrottling maxConcurrentCalls="100"/>
164          <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
165        </behavior>
166      </serviceBehaviors>
167      <endpointBehaviors>
168        <behavior name="LocalCertValidation">
169          <clientCredentials>
170            <serviceCertificate>
171              <authentication certificateValidationMode="None" />
172            </serviceCertificate>
173          </clientCredentials>
174          <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
175        </behavior>
176      </endpointBehaviors>
177    </behaviors>
178    <services>
179      <service behaviorConfiguration="ServiceBehaviour_IControllerService" name="HeuristicLab.Services.Optimization.ControllerService.PlaceholderControllerService">
180        <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="" name="MexEndpoint" contract="IMetadataExchange"/>
181        <endpoint binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IControllerService" name="WSHttpBinding_IControllerService" contract="HeuristicLab.Services.Optimization.ControllerService.IControllerService"/>
182      </service>
183    </services>
184    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
185    <client>
186      <endpoint address="http://localhost:8080/ControllerService.svc" behaviorConfiguration="LocalCertValidation"
187          binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IControllerService"
188          contract="HeuristicLab.Services.Optimization.ControllerService.IControllerService" name="WSHttpBinding_IControllerService">
189        <identity>
190          <certificate encodedValue="ADJUST_ME" />
191        </identity>
192      </endpoint>
193      <endpoint address="http://127.0.0.1:81/HiveService.svc" behaviorConfiguration="LocalCertValidation"
194         binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IHiveService" contract="HeuristicLab.Clients.Hive.IHiveService" name="WSHttpBinding_IHiveService">
195        <identity>
196          <certificate encodedValue="ADJUST_ME" />
197        </identity>
198      </endpoint>
199      <!--
200      <endpoint address="http://optimization.cloudapp.net/HiveService.svc" behaviorConfiguration="LocalCertValidation"
201         binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IHiveService" contract="HeuristicLab.Clients.Hive.IHiveService" name="WSHttpBinding_IHiveService">
202        <identity>
203          <certificate encodedValue="ADJUST_ME" />
204        </identity>
205      </endpoint>
206      -->
207    </client>
208  </system.serviceModel>
209</configuration>
Note: See TracBrowser for help on using the repository browser.