Cannot install components from the market place

I am having a problem installing components from the market place with PSU in IIS. Based on the error it looks like I need to add a method to IIS but I cannot find the full error in any of the logs.


Full Background
I have installed two instances of PSU on the same server hosting them in IIS

For each instance I have

  1. Created a Windows Service Account
  2. Created an App Pool (the one created in step 1)
  3. Extracted the PSU zip file to a folder for that instance
  4. Updated web.config the arguments parameter to point Universal.Server.dll in the location I extracted the zip file to (step 2)
  5. Updated appsettings.json - RepositoryPath & ConnectionString to point to a folder for that instance
  6. Updated appsettings.json - Logging -> Path to point to a folder for that instance
  7. Updated appsettings.json - UniversalDashboard -> AssetsFolder to a folder for that instance
  8. Granted the service account full control on the 4 folders referenced in steps 3-7
  9. Created an IIS Web Site linked to the App Pool for that instance and the folder the zip was extracted into. (the websites are on the same port but use host headers in the binding)

With this config, neither instance should try and use the same resources. If I have found all the references!

Thanks in advance

Just found the call


Calling that manually displays the HTTP ERROR 405

The PowerShell Gallery is down so you won’t be able to install any modules at this time.

Ah! that might explain it! As it is a fresh install and first time hosting PSU in IIS I assumed I missed something!

It sounds like you’ve got the configuration correct. I bet later today you can give it another shot.

It looks like two issues.

The first was self inflected as I accidently installed WebDAV :man_facepalming: due to a typo in my PS command. Below is the working command to install the IIS requirements :slight_smile:

Install-WindowsFeature Web-Server, Web-WebSockets, Web-Windows-Auth -Restart -IncludeManagementTools

It looks like I am now getting hit with the PowerShell Gallery issue as I am now seeing a 400 error and get the following in the log directory within the inetpub (extracted zip) directory (Logging changed to Debug level within appsettings.json)

info: Universal.Server.Services.DashboardAssetManager[0]
Saving module UniversalDashboard.Calendar
PackageManagement\Save-Package : No match was found for the specified search criteria and module name
‘UniversalDashboard.Calendar’. Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\\PSModule.psm1:1561 char:21
$null = PackageManagement\Save-Package @PSBoundParameters
+ CategoryInfo : ObjectNotFound: (Microsoft.Power…ets.SavePackage:SavePackage) [Save-Package], Exceptio
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.SavePackage

dbug: Universal.Server.Services.DashboardAssetManager[0]
The specified module ‘PathToInstanceFolder\Assets\Components\UniversalDashboard.Calendar\1.0.0*.psd1’ was not loaded because no valid module file was found in any module directory.
fail: Universal.Server.Services.DashboardAssetManager[0]
Failed to save module
System.NullReferenceException: Object reference not set to an instance of an object.