new local virtual directoryRSS

1 reply

Last post Apr 16, 2019 06:00 AM by Jalpa Panchal

  • new local virtual directory

    Apr 15, 2019 03:03 PM|tippet|LINK


    I need to create a new virtual directory on the local C:\

    this is what i have:

    Name = 'test'
    PhysicalPath = 'C:\\test\\www'
    Ensure = 'Present'
    IISAnonymousAuth = 'Enabled'
    IISAnonymousUser = ''

    ERROR that I'm getting.

    VERBOSE: [WEBserver]: [[cVirtualDirectory]intranet.123.com_test_VirtualDirectory] Creating new virtual directory test in site to path C:\\test\\www
    VERBOSE: [WEBserver]: [[cVirtualDirectory]intranet.123.com_test_VirtualDirectory] Removing UserName from Virtual Directory simplesaml in site to set Pass-Through Authentication.
    Cannot find path 'IIS:\Sites\\test' because it does not exist.
    + CategoryInfo : ObjectNotFound: (IIS:\Sites\\test:) [], CimException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand
    + PSComputerName : WEBserver

    EDIT: THinking i have to someone create the folder structure first on the OS side

  • Re: new local virtual directory

    Apr 16, 2019 06:00 AM|Jalpa Panchal|LINK

    Hi tippet,

    Firstly just try to access path 'IIS:\Sites\\test' and check that folder exists or not by using Powershell or manually.



    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.