This project is read-only.

How to include the SilverlightLogging services into your server project

For Developers:
When opening the project in Visual Studio 2010 you will be asked to create a virtual directory in IIS.
You can change it to use the Development Webserver if you like, but the AppFabric logging will not work.

The provided sample client applications are configured to look for the services on localhost.

For more details about the AppFabric logging sink: AppFabric Sink

Using the services

You can choose to copy & paste the services and code into your own project, or you can simply add a reference to the VXCompany.SilverlightLogging.Services.DLL file.

Fileless Activation
If you choose the second option you can configure the LoggingService endpoint for fileless activation using this configuration in your web.config file.
First configure the service in the section <system.serviceModel>:

<service behaviorConfiguration="ServiceBehavior" name="VXCompany.SilverlightLogging.Services.LoggingService">
<endpoint binding="basicHttpBinding" bindingConfiguration="SecureBinding"
name="LoggingService" contract="VXCompany.SilverlightLogging.Services.ServiceContracts.ILoggingService" />

Then make sure it can be activated without the .svc file in your own services project, also in <system.serviceModel>:

<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true">
<add relativeAddress="./LoggingService.svc" service="VXCompany.SilverlightLogging.Services.LoggingService"
factory="System.ServiceModel.Activation.ServiceHostFactory" />

Don't forget to update the ServiceReferences.ClientConfig file when changing the location of the logging service.

Last edited Feb 1, 2011 at 12:38 PM by lduys, version 5


No comments yet.