Silverlight pages and Windows authentication

Silverlight
Q. Will both the Interactive Gantt and Activities (Silverlight) pages work for my EP account configured for using Windows (Active Directory) authentication?

A. Yes. Please first check if your server has all pre-requisites installed using the instructions of this article.
Then make the following modifications to enable support for Windows authentication in the Web.Config file using Notepad only (the file is in the EP working folder, 'c:\inetpub\wwwroot\easyprojects' by default):

If you are still on the EP version 7.0 or older then please follow the instructions of the different article at http://support.myeasyprojects.net/KB/a112/silverlight-pages-windows-authentication-ep-version-70-older.aspx



Please disable Anonymous access for your EP site or virtual directory and make the changes in your Web.Config file as follows:


Comment out 3 strings with <endpoint address="mex"..

      <!-- GANTT Services-->
      <service name="LogicSoftware.EasyProjects.Wcf.Services.UserService" behaviorConfiguration="EasyProjectBehavior">
        <endpoint contract="LogicSoftware.EasyProjects.Wcf.Interfaces.IUser" binding="customBinding" bindingConfiguration="SlHttpBinaryEncodingBinding" behaviorConfiguration="SilverlightFaultBehavior" />
     <!--<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />-->
      </service>
      <service name="LogicSoftware.EasyProjects.Wcf.Services.ActivityService" behaviorConfiguration="EasyProjectBehavior">
        <endpoint contract="LogicSoftware.EasyProjects.Wcf.Interfaces.IActivity" binding="customBinding" bindingConfiguration="SlHttpBinaryEncodingBinding" behaviorConfiguration="SilverlightFaultBehavior" />
     <!--<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />-->
      </service>
      <service name="LogicSoftware.EasyProjects.Wcf.Services.ProjectService" behaviorConfiguration="EasyProjectBehavior">
        <endpoint contract="LogicSoftware.EasyProjects.Wcf.Interfaces.IProject" binding="customBinding" bindingConfiguration="SlHttpBinaryEncodingBinding" behaviorConfiguration="SilverlightFaultBehavior" />
     <!--<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />-->
      </service>


Comment out 2 strings for Forms auth and uncomment 2 strings for Windows auth:

<customBinding>
        <!-- GANTT Services-->
        <binding name="SlHttpBinaryEncodingBinding">
          <binaryMessageEncoding />
          <!-- For Forms authentication -->
          <!--<httpTransport />-->
          <!-- For Windows authentication  -->
          <httpTransport authenticationScheme="Negotiate" />
        </binding>
        <binding name="SlHttpsBinaryEncodingBinding">
          <binaryMessageEncoding />
          <!-- For Forms authentication -->
          <!--<httpsTransport />-->
          <!-- For Windows authentication  -->
          <httpsTransport authenticationScheme="Negotiate"/>
        </binding>
</customBinding>


Once the modifications are done please check if the service is running OK by opening the URL like
http://[ApplicationPath]/Services/UserService.svc

You should not see any errors but the screen like that.
If you see the error "Security settings of this service require Windows Authentication but it is not enabled for the IIS application that hosts this service" see this article for the instructions on how to resolve the error.