web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Error creating new web server instance

(0) ShareShare
ReportReport
Posted on by 171

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

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Please try like this replacing names appropiately

    New-NAVWebServerInstance -WebServerInstance MyWebApp -Server NAVServer -ServerInstance NAVServerInstance

    msdn.microsoft.com/.../jj551747(v=nav.90).aspx

  • Carlos Herrando Profile Picture
    171 on at

    Thank you Suresh but I don't understand your answer. Do you mean that I need to change the order of the parameters in the call?

    We are using the same powershell script since last year, and it has been working all the time until now. The problem seems to be something that has changed in the server, however I don't have any clue, and the event viewer does not say anything.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    I think it is not recognizing NAV Commands try to run Import-Module command to import

    Import-Module “C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client\Micro

    soft.Dynamics.Nav.Model.Tools.psd1” –force

  • Carlos Herrando Profile Picture
    171 on at

    Thank you Suresh but I have the same problem importing that module.

    As I said, we have been creating web server instances successfully for a long time with PowerShell, but suddenly it stopped working.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

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

  • Carlos Herrando Profile Picture
    171 on at

    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

  • ManishS Profile Picture
    86 on at

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

    We use above to create web services.

  • Carlos Herrando Profile Picture
    171 on at

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

  • ManishS Profile Picture
    86 on at

    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
    171 on at

    Parameter order is not relevant in PowerShell scripts.

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans