Changes between Version 8 and Version 9 of Documentation/DevelopmentCenter/Develop Services
- Timestamp:
- 08/21/10 00:50:57 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/DevelopmentCenter/Develop Services
v8 v9 31 31 32 32 === 3. Allow Read Access to the Certificate's Private Key === 33 Network services must have read access to the private key of the certificate created in the previous step. Therefore, you have to locate the private key file on your hard disk first and then you have to grant read access to it for the `Network Service` account of your machine:33 Your Windows user must have read access to the private key of the certificate created in the previous step. Therefore, you have to locate the private key file on your hard disk first and then you have to grant read access to it for your user: 34 34 1. Start the Visual Studio Command Prompt again and run it with Administrator privileges (choose `Run as administrator` in the context menu). 35 35 2. Execute the following command (please note that the console application `findprivatekey.exe` is [attachment:FindPrivateKey.exe attached to this page], if you do not have it on your system): … … 45 45 fef2c81190d59a105313d83fb ... eb8c6a 46 46 }}} 47 4. Allow read access to this file for the `Network Service` account of your machine(in the context menu of the file choose `Properties` -> `Security` -> `Edit` -> `Add`).47 4. Allow read access to this file for your user (in the context menu of the file choose `Properties` -> `Security` -> `Edit` -> `Add`). 48 48 49 49 == Development == … … 54 54 1. Open the `HeuristicLabServicesDemo.sln` solution file. 55 55 2. Update the service reference of the project `HeuristicLab.DemoClient`. 56 3. Add the attribute `behaviorConfiguration="DefaultEndpointBehavior"` to the `endpoint` specification of the `client` section in the `app.config` file of the client project (please note that updating the service reference of the client overwrites the whole `client` section each time; therefore adding the behavior configuration has to be done everytime after updating the service reference). The `client` section should look like this:57 {{{#!xml58 <client>59 <endpoint address="http://localhost:34825/Service.svc" binding="wsHttpBinding" behaviorConfiguration="DefaultEndpointBehavior"60 bindingConfiguration="WSHttpBinding_IService" contract="Services.DemoService.IService"61 name="WSHttpBinding_IService">62 <identity>63 <certificate encodedValue="AwAAAAEAAAAUAAAA ... B+3eQE6Y8inFygk=" />64 </identity>65 </endpoint>66 </client>67 }}}68 56 69 57 === 2. Create Users and Roles ===