Changeset 9527
- Timestamp:
- 05/24/13 15:12:40 (12 years ago)
- Location:
- branches/HiveStatistics/sources/HeuristicLab.Services.Hive.SelfHost/3.3
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.SelfHost/3.3/App.config
r9434 r9527 1 <?xml version="1.0"?>1 <?xml version="1.0"?> 2 2 <configuration> 3 3 <configSections> … … 6 6 </sectionGroup> 7 7 </configSections> 8 9 8 <appSettings> 10 9 <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" /> 10 <add key="ClientSettingsProvider.ServiceUri" value="" /> 11 11 </appSettings> 12 12 <applicationSettings> … … 21 21 </applicationSettings> 22 22 <connectionStrings> 23 <add name="HeuristicLab.Authentication" connectionString="data source=localhost;Integrated Security=SSPI;Initial Catalog=HeuristicLab.Authentication"/> 24 <add name="HeuristicLab.Services.Hive.DataAccess.Settings.HeuristicLab_Hive_LinqConnectionString" 25 connectionString="Data Source=localhost;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;" 26 providerName="System.Data.SqlClient" /> 23 <add name="HeuristicLab.Authentication" connectionString="data source=localhost;Integrated Security=SSPI;Initial Catalog=HeuristicLab.Authentication" /> 24 <add name="HeuristicLab.Services.Hive.DataAccess.Settings.HeuristicLab_Hive_LinqConnectionString" connectionString="Data Source=localhost;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;" providerName="System.Data.SqlClient" /> 27 25 </connectionStrings> 28 26 <system.web> … … 30 28 <compilation debug="true" targetFramework="4.0"> 31 29 <assemblies> 32 <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />30 <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 33 31 </assemblies> 34 32 </compilation> 35 <membership >33 <membership defaultProvider="ClientAuthenticationMembershipProvider"> 36 34 <providers> 37 <clear/> 38 <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"/> 35 <clear /> 36 <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" /> 37 <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" /> 39 38 </providers> 40 39 </membership> 41 <roleManager enabled="true" >40 <roleManager enabled="true" defaultProvider="ClientRoleProvider"> 42 41 <providers> 43 <clear/> 44 <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="HeuristicLab.Authentication" applicationName="HeuristicLab.Authentication"/> 42 <clear /> 43 <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="HeuristicLab.Authentication" applicationName="HeuristicLab.Authentication" /> 44 <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" /> 45 45 </providers> 46 46 </roleManager> 47 47 <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> 48 48 <controls> 49 <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" 50 assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 49 <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 51 50 </controls> 52 51 </pages> 53 <httpRuntime maxRequestLength="1048576" />52 <httpRuntime maxRequestLength="1048576" /> 54 53 </system.web> 55 54 <system.serviceModel> 56 55 <diagnostics performanceCounters="All"> 57 <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxMessagesToLog="3000" />56 <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxMessagesToLog="3000" /> 58 57 </diagnostics> 59 58 <bindings> … … 62 61 <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> 63 62 <security mode="Message"> 64 <transport clientCredentialType="Certificate" />65 <message clientCredentialType="UserName" />63 <transport clientCredentialType="Certificate" /> 64 <message clientCredentialType="UserName" /> 66 65 </security> 67 66 </binding> … … 72 71 <behavior name="ServiceBehaviour_IHiveService"> 73 72 <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --> 74 <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />73 <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" /> 75 74 <!-- 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 --> 76 <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true" />77 <serviceAuthorization principalPermissionMode="UseAspNetRoles" roleProviderName="AspNetSqlRoleProvider" />75 <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true" /> 76 <serviceAuthorization principalPermissionMode="UseAspNetRoles" roleProviderName="AspNetSqlRoleProvider" /> 78 77 <serviceCredentials> 79 <serviceCertificate findValue="localhost" x509FindType="FindBySubjectName" />80 <userNameAuthentication userNamePasswordValidationMode="MembershipProvider" membershipProviderName="AspNetSqlMembershipProvider" />78 <serviceCertificate findValue="localhost" x509FindType="FindBySubjectName" /> 79 <userNameAuthentication userNamePasswordValidationMode="MembershipProvider" membershipProviderName="AspNetSqlMembershipProvider" /> 81 80 </serviceCredentials> 82 <serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="false" messageAuthenticationAuditLevel="SuccessOrFailure" />83 <serviceThrottling maxConcurrentCalls="100" />84 <dataContractSerializer maxItemsInObjectGraph="2147483647" />81 <serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="false" messageAuthenticationAuditLevel="SuccessOrFailure" /> 82 <serviceThrottling maxConcurrentCalls="100" /> 83 <dataContractSerializer maxItemsInObjectGraph="2147483647" /> 85 84 </behavior> 86 85 </serviceBehaviors> … … 88 87 <services> 89 88 <service behaviorConfiguration="ServiceBehaviour_IHiveService" name="HeuristicLab.Services.Hive.HiveService"> 90 <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="" name="MexEndpoint" contract="IMetadataExchange" />91 <endpoint binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IHiveService" name="WSHttpBinding_IHiveService" contract="HeuristicLab.Services.Hive.ServiceContracts.IHiveService" />89 <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="" name="MexEndpoint" contract="IMetadataExchange" /> 90 <endpoint binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IHiveService" name="WSHttpBinding_IHiveService" contract="HeuristicLab.Services.Hive.ServiceContracts.IHiveService" /> 92 91 </service> 93 92 </services> 94 <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />93 <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> 95 94 </system.serviceModel> 96 95 <system.webServer> … … 98 97 <handlers> 99 98 <remove name="ChartImageHandler" /> 100 <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" 101 path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 99 <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 102 100 </handlers> 103 101 </system.webServer> 102 <startup> 103 <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> 104 </startup> 104 105 </configuration> -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.SelfHost/3.3/HeuristicLab.Services.Hive.SelfHost-3.3.csproj
r9434 r9527 6 6 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 7 7 <ProjectGuid>{DAACE3EB-5D88-419D-9EEC-5707E273491A}</ProjectGuid> 8 <OutputType> Exe</OutputType>8 <OutputType>WinExe</OutputType> 9 9 <AppDesignerFolder>Properties</AppDesignerFolder> 10 10 <RootNamespace>HeuristicLab.Services.Hive.SelfHost</RootNamespace> 11 11 <AssemblyName>HeuristicLab.Services.Hive.SelfHost-3.3</AssemblyName> 12 <TargetFrameworkVersion>v4. 0</TargetFrameworkVersion>12 <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> 13 13 <FileAlignment>512</FileAlignment> 14 <IsWebBootstrapper>false</IsWebBootstrapper> 14 15 <PublishUrl>publish\</PublishUrl> 15 16 <Install>true</Install> … … 24 25 <ApplicationRevision>0</ApplicationRevision> 25 26 <ApplicationVersion>1.0.0.%2a</ApplicationVersion> 26 <IsWebBootstrapper>false</IsWebBootstrapper>27 27 <UseApplicationTrust>false</UseApplicationTrust> 28 28 <BootstrapperEnabled>true</BootstrapperEnabled> 29 <TargetFrameworkProfile /> 29 30 </PropertyGroup> 30 31 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> … … 37 38 <ErrorReport>prompt</ErrorReport> 38 39 <WarningLevel>4</WarningLevel> 40 <Prefer32Bit>false</Prefer32Bit> 39 41 </PropertyGroup> 40 42 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> … … 46 48 <ErrorReport>prompt</ErrorReport> 47 49 <WarningLevel>4</WarningLevel> 50 <Prefer32Bit>false</Prefer32Bit> 51 </PropertyGroup> 52 <PropertyGroup> 53 <StartupObject /> 48 54 </PropertyGroup> 49 55 <ItemGroup> 50 56 <Reference Include="System" /> 57 <Reference Include="System.Configuration" /> 51 58 <Reference Include="System.Core" /> 59 <Reference Include="System.Data" /> 60 <Reference Include="System.Drawing" /> 52 61 <Reference Include="System.ServiceModel" /> 62 <Reference Include="System.Web.Extensions" /> 63 <Reference Include="System.Windows.Forms" /> 64 <Reference Include="System.Xml" /> 53 65 </ItemGroup> 54 66 <ItemGroup> 67 <Compile Include="JanitorActivatorForm.cs"> 68 <SubType>Form</SubType> 69 </Compile> 70 <Compile Include="JanitorActivatorForm.Designer.cs"> 71 <DependentUpon>JanitorActivatorForm.cs</DependentUpon> 72 </Compile> 55 73 <Compile Include="Program.cs" /> 56 74 <None Include="App.config" /> … … 86 104 </BootstrapperPackage> 87 105 </ItemGroup> 106 <ItemGroup> 107 <EmbeddedResource Include="JanitorActivatorForm.resx"> 108 <DependentUpon>JanitorActivatorForm.cs</DependentUpon> 109 </EmbeddedResource> 110 </ItemGroup> 88 111 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 89 112 <PropertyGroup> -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.SelfHost/3.3/Program.cs
r9434 r9527 21 21 22 22 using System; 23 using System.ServiceModel; 23 using System.Windows.Forms; 24 24 25 namespace HeuristicLab.Services.Hive.SelfHost { 25 class Program { 26 static void Main(string[] args) { 27 var baseAdress = new Uri(@"http://localhost/Hive-3.3/HiveService.svc"); 28 29 using (var host = new ServiceHost(typeof(HiveService), baseAdress)) { 30 host.Open(); 31 32 Console.WriteLine("Service is ready at {0}", baseAdress); 33 Console.WriteLine("Press <Enter> to stop the service."); 34 35 Console.ReadLine(); 36 37 host.Close(); 38 } 26 internal class Program { 27 [STAThread] 28 private static void Main(string[] args) { 29 Application.Run(new JanitorActivatorForm()); 39 30 } 40 31 }
Note: See TracChangeset
for help on using the changeset viewer.