net.pipe protocol error

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by Profile photo of Vifill Sigurdsson Vifill Sigurdsson 2 years, 3 months ago.

  • Author
    Posts
  • #18290
    Profile photo of Vifill Sigurdsson
    Vifill Sigurdsson
    Participant

    I´m trying to use DSC to deplo web with net.pipe protocol but get errror:

    xWebAdministration\MSFT_xWebBindingInformation : 'net.pipe' is not a valid value for property 'Protocol' on class 'MSFT_xWebBindingInformation'. Please change the value
    to one of the following strings: http, https.

    Are there any secret way to add net.pipe as valid binging protocol for websites?

    Best regards
    Vífill

  • #18291
    Profile photo of Dave Wyatt
    Dave Wyatt
    Moderator

    The resource does not currently support net.pipe bindings. There's a community modification of that resource on the PowerShell.org DSC GitHub repository: https://github.com/PowerShellOrg/DSC/tree/master/Resources/cWebAdministration/DSCResources/PSHOrg_cWebsite . If you know how to get net.pipe bindings working, you could submit a modification for the cWebsite resource.

  • #18297
    Profile photo of Vifill Sigurdsson
    Vifill Sigurdsson
    Participant

    Is it as easy as change this file:
    PSHOrg_cWebsite.schema.mof

    line 5 would be
    [Write,ValueMap{"http", "https", "net.pipe"},Values{"http", "https", "net.pipe"}] string Protocol;
    instead of
    [Write,ValueMap{"http", "https"},Values{"http", "https"}] string Protocol;

    ?
    and of course enabling net.pipe protocol on the OS.

  • #18298
    Profile photo of Dave Wyatt
    Dave Wyatt
    Moderator

    All that would do is allow you to pass a value of "net.pipe" as a parameter to the resource. That's the easy part.

    There would also need to be new code inside the resource's module to actually do something when the configuration passes in a value of "net.pipe". I haven't personally used this type of binding in IIS before, but based on a quick web search on the topic, there are several prerequisites for this. (Windows features that need to be installed, services that need to be running, an IIS server configuration option, and then finally creating the binding.)

  • #18307
    Profile photo of Vifill Sigurdsson
    Vifill Sigurdsson
    Participant

    This works fine, if its done after installation of the site:
    C:\Windows\System32\inetsrv\appcmd.exe set config -section:system.applicationHost/sites /+"[name='SiteName'].bindings.[protocol='net.pipe',bindingInformation='*']" /commit:apphost
    But I would rather use native dsc functions then appcmd command line tool if net.pipe where supported.
    Thanks any way

You must be logged in to reply to this topic.