Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Error creating new web server instance

Posted on by 165

Hello community,

a few days ago we were trying to create a new NAV web server instance linked to a NAV instance as always but suddenly we could not create it. The following error appears:

PS C:\Windows\system32> New-NAVWebServerInstance -ServerInstance $ServerInstance -WebServerInstance $ServerInstance -Server 'localhost'
New-NAVWebServerInstance : Microsoft Dynamics NAV Web Server Components have not been configured for multi-instance.
At line:1 char:1
+ New-NAVWebServerInstance -ServerInstance $ServerInstance -WebServerInstance $Ser ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-NAVWebServerInstance], NavCommandException
+ FullyQualifiedErrorId : WW0082_ADFS,Microsoft.Dynamics.Nav.Management.Cmdlets.NewNavWebServerInstance

 

We are use to create new NAV web server instances linked to NAV instances all the times through powershell, and we have never had any error.

Do you have any clue about why this error is preventing us to create new web server instances?

Many thanks and regards,

Carlos

*This post is locked for comments

  • MetaKa Profile Picture
    MetaKa on at
    RE: Error creating new web server instance

    (I got there for an 500 error of my webservice, but its better to answer correctly to this thread)

     

     Belarmino Vicenzo 

    The first error u was getting, was because u were not admin, so the IDE couldn't load the script.

    On the second error u didn't need all the url :

    Instead of

    -WebServerInstance '"http:/localhost:8080/(..)/Web_Client"
    use:

    -WebServerInstance  "Web Client"

    For the main error (of Carlos Herrando 

    the error was: "Microsoft Dynamics NAV Web Server Components have not been configured for multi-instance."

    The problem was the multi-instance on the service. This could be a problem on the ports (same ports for 2 webservices) on NAV SErvice or IIS

    It could be the property for multi-tenant in NAV web-service

    or another configuration.

    Since the reinstalation of NAV resolved the issue, the problem was in the NAV-Service.

  • RE: Error creating new web server instance

    I got those errors.

    Bro, I'm never used powershell, except to use it as cmd.
    Please tell me in a noob way, bro.

    The first one, after I click ShowDetais it showed that message

    Screenshot-_2800_257_2900_.pngScreenshot-_2800_258_2900_.png

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error creating new web server instance

    Hi Manish, parameter order is of no importance in shell scripts..

  • Verified answer
    Carlos Herrando Profile Picture
    Carlos Herrando 165 on at
    RE: Error creating new web server instance

    Hello community, finally I solved the problem by repairing NAV installation.

  • Carlos Herrando Profile Picture
    Carlos Herrando 165 on at
    RE: Error creating new web server instance

    Parameter order is not relevant in PowerShell scripts.

    By the way, I have also tested changing the order and the same error appears.

  • ManishS Profile Picture
    ManishS 6,578 on at
    RE: Error creating new web server instance

    New-NAVWebServerInstance -ServerInstance $ServerInstance -WebServerInstance $ServerInstance -Server 'localhost'

    New-NAVWebServerInstance -WebServerInstance $ServerInstance -Server localhost -ServerInstance $ServerInstance

    Both script are different,

    You have ServerInstance first were as mine is WebServerInstance.

  • Carlos Herrando Profile Picture
    Carlos Herrando 165 on at
    RE: Error creating new web server instance

    Thank you Manish, I am using the same script and getting the same error.

  • ManishS Profile Picture
    ManishS 6,578 on at
    RE: Error creating new web server instance

    New-NAVWebServerInstance -WebServerInstance ABC -Server localhost -ServerInstance ABC -ClientServicesCredentialType Windows

    We use above to create web services.

  • Carlos Herrando Profile Picture
    Carlos Herrando 165 on at
    RE: Error creating new web server instance

    Yes, I am running as administrator, and there is not any error when importing the module. The error appears when trying to create the Web Server Instance.

    PS C:\Windows\system32> New-NAVWebServerInstance -ServerInstance 'WW0105B' -WebServerInstance 'WW0105B' -Server 'useaddevxq001.us.ead.dev'

    New-NAVWebServerInstance : Microsoft Dynamics NAV Web Server Components have not been configured for multi-instance.

    At line:1 char:1

    + New-NAVWebServerInstance -ServerInstance 'WW0105B' -WebServerInstance 'WW0105B'  ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

       + CategoryInfo          : NotSpecified: (:) [New-NAVWebServerInstance], NavCommandException

       + FullyQualifiedErrorId : WW0105B,Microsoft.Dynamics.Nav.Management.Cmdlets.NewNavWebServerInstance

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Error creating new web server instance

    What error are you getting when you import the module ? are you running it as administrator ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,134 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,928 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans