none
WCF on Windows 2008 R2 Server Core

    Question

  • Hello,

    I am deploying some WCF services to 2k8R2 core that are hosted in IIS 7.5. I have successfully deployed these same services on 2k5R2 Enterprise and tested against them w/o any issues. However, on core, I go through the same deplyment script and I am not able to load the services or even navigate to the info page. Since you have to install everything manually on core, I was wondering what dependencies there might be that I may have missed. this is what I have installed:

    • IIS (w/ remote management tools)
    • IIS Re-write module
    • Application Request Routing

    I have also configured the box with the permissions I did on the non-core box.

    Any help of guidance would be greatly aprpeciated. I'm under a bit of a time crunch.

    Thanks,

    Ryan

    Tuesday, September 07, 2010 3:39 PM

Answers

  • Hi Ryan,

    For your case, you want to host a WCF service on windows server 2008 server core machine, I think the first thing to do is verify that you've the .NET framework 3.0 and 3.5 components(for WCF activation) installed(selectable during server core installatino):

    #What's New in the Server Core Installation Option
    http://technet.microsoft.com/en-us/library/dd883268(WS.10).aspx

    Then, together with IIS server, the WCF activation components(correspond to the service extensions mappings in IIS) will help handle WCF .svc requests. And the ServiceModelReg.exe tool is used to manually register the extension mappings if you find the .svc request cannot be processed in IIS.

    #ServiceModel Registration Tool (ServiceModelReg.exe)
    http://msdn.microsoft.com/en-us/library/ms732012.aspx

    Btw, have you tried first putting an ASP.NET web page in the IIS virtual directory to see whether it can work, this can ensure whether the .NET framework/ASP.NET has been installed correctly.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Marked as answer by Mog Liang Wednesday, September 15, 2010 2:41 AM
    Thursday, September 09, 2010 8:04 AM
    Moderator

All replies

  • Ok, I figured one problem out. I needed to open the port I was using. Now I have noticed the *.svc path is not mapped in the Handler Mappings. When I try to add it manually, I do not get the option for any System.ServiceModel handlers. I tried the servicemodelreg command and received:

    Error: Value cannot be null.
    Parameter name: path

    Please help! I need to get these mappings added.

    Best regards,

    Ryan brown

    Tuesday, September 07, 2010 5:51 PM
  • Hi Ryan,

    For your case, you want to host a WCF service on windows server 2008 server core machine, I think the first thing to do is verify that you've the .NET framework 3.0 and 3.5 components(for WCF activation) installed(selectable during server core installatino):

    #What's New in the Server Core Installation Option
    http://technet.microsoft.com/en-us/library/dd883268(WS.10).aspx

    Then, together with IIS server, the WCF activation components(correspond to the service extensions mappings in IIS) will help handle WCF .svc requests. And the ServiceModelReg.exe tool is used to manually register the extension mappings if you find the .svc request cannot be processed in IIS.

    #ServiceModel Registration Tool (ServiceModelReg.exe)
    http://msdn.microsoft.com/en-us/library/ms732012.aspx

    Btw, have you tried first putting an ASP.NET web page in the IIS virtual directory to see whether it can work, this can ensure whether the .NET framework/ASP.NET has been installed correctly.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Marked as answer by Mog Liang Wednesday, September 15, 2010 2:41 AM
    Thursday, September 09, 2010 8:04 AM
    Moderator