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
Created a Windows Service Account
Created an App Pool (the one created in step 1)
Extracted the PSU zip file to a folder for that instance
Updated web.config the arguments parameter to point Universal.Server.dll in the location I extracted the zip file to (step 2)
Updated appsettings.json - RepositoryPath & ConnectionString to point to a folder for that instance
Updated appsettings.json - Logging -> Path to point to a folder for that instance
Updated appsettings.json - UniversalDashboard -> AssetsFolder to a folder for that instance
Granted the service account full control on the 4 folders referenced in steps 3-7
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!
The first was self inflected as I accidently installed WebDAV due to a typo in my PS command. Below is the working command to install the IIS requirements
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\1.0.0.1\PSModule.psm1:1561 char:21
$null = PackageManagement\Save-Package @PSBoundParameters
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power…ets.SavePackage:SavePackage) [Save-Package], Exceptio
n
+ 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.