Select Page

SolarWinds Network Performance Monitor v12.x & Custom Coded Resources

by 19, Jun, 2015Blog Posts, Network Management, Useful Information

Since SolarWinds® released SolarWinds Network Performance Monitor (NPM) v12, you may experience trouble to get your custom code working again. If you came across this:
Wireless Per SSID (Insight Image) - Prosperon Networks
Or this:
Unexpected Website Error (Insight Image) - Prosperon Networks
Don’t worry, a solution exists for both issues but first let’s get an understanding what happened here.

SolarWinds have decided to do some changes in the Website deployment, as part of their inner upgrade process which is triggered by the well-known Configuration Wizard:

  1. Clean build of the Orion website: This will create a new website folder under \inetpub\SolarWinds and, luckily, a backup of your previous site will be in place under the name \inetpub\SolarWinds.backup.RandomSequenceOfCharacters. So, all your custom code files still exist, that’s a relief!
  2. Pre-compilation of the code files: (.aspx, .ascx, etc) This allows to speed up the web optimisation process as most of the website ASP and .NET files now are pre-compiled!

These are significant changes; however we need to find a way of preserving any custom code developed for Orion.

The Solution

The first step is to edit the “/inetpub/SolarWinds/PrecompiledApp.config” file as follows:

Before:
[code]<precompiledapp version="2" updatable="false"></precompiledapp>[/code]

After:
[code]<precompiledapp version="2" updatable="true"></precompiledapp>[/code]

Please note: the above file may not exist in all installations. In such case, do not create it or the web console will not run.

Those changes will allow custom code to run, i.e. no more “has not been pre-compiled, and cannot be requested” error messages.

Next goal is to maintain the custom code files in the working Website folder. We will be using a Windows scheduled task along with the old, well-known robocopy utility.

Step 1: Create a well-known directory which will host your custom code files. We will be using C:\inetpub\SolarWindsCustomResources in this article. Notice how we preserve the folder structure.

Folder Directory (Insight Image) - Prosperon Networks
Step 2: Create a scheduled task to run daily (or at any interval you wish) which will copy the files from: C:\inetpub\SolarWindsCustomResources to the: C:\inetpub\SolarWinds\Orion\NetPerfMon\Resources folder. In the actions tab enter ‘robocopy’ in the program/script field, and the following arguments:
‘/E C:\inetpub\SolarWindsCustomResources\Orion\NetPerfMon\Resources\ C:\inetpub\SolarWinds\Orion\NetPerfMon\Resources\’
Sync Orion Custom Code Files (Insight Image) - Prosperon Networks
Sync Orion Custom Code Files Properties (Local Computer) 2 (Insight Image) - Prosperon Networks
Now all the resource files should be synchronised with the Orion website folder.

Step 3: Last step is to rebuild the cached web resources file in the Orion platform. Navigate to c:\ProgramData\SolarWinds\Orion\ and rename the WebResourceCache.xml file to WebResourceCacheOLD.xml.

Folder Directory 2 (Insight Image) - Prosperon Networks
Then, open IIS Manager and select the SolarWinds Orion Application Pool under Application Pools. Hit the Recycle button. This process will force the resource files to be refreshed.

Training Course: SolarWinds Training Courses

Internet Information Services (IIS) Manager) (Insight Image) - Prosperon Networks
All your custom resources should now be visible under the ‘classic category’ dropdown when adding a resource to a view:
Customise Wireless Per SSID Add Resource (Insight Image) - Prosperon Networks
Our resource is now back on the web console!
Wireless Per SSID Report (Insight Image) - Prosperon Networks
Make sure to check our future posts for more tips and tricks in the Orion platform!
Antonis Athanasiou

Antonis Athanasiou

Snr. Systems Engineer

Antonis Athanasiou is a Snr. Systems Engineer at Prosperon Networks. As a SolarWinds Engineer for over four years, Antonis has helped hundreds of customers meet their IT monitoring requirements with SolarWinds.

Training Course: SolarWinds Training Courses

Related Insights From The Prosperon Blog

Share This