cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 10

Error editing a View - An unexpected error occurred: Object reference not set to an instance of an object

Jump to solution

I'm having problems in the Orion Web Console when I try to edit or customize a View.
"An unexpected error occurred: Object reference not set to an instance of an object."
This error occurs when I try to edit or add the resources available in a View.


How I can solve it?

1 Solution
Level 10

THE PROBLEM WAS SOLVED !

Recreate the Orion website by following the steps below:


1. Stop all Orion Services using Orion Service Manager
2. Open C:\Inetpub
3. Rename the Solarwinds folder to Solarwinds_OLD
4. Open IIS
5. Delete the Solarwinds Orion Website


** Please note that all settings are stored in the database so by deleting the website you will not lose any data


6. Open the Orion Configuration wizard
7. Run all 3 portions of the Configuration Wizard - Database, Website & Services

**If you want to enable automatic login for web console accounts using Windows Authentication, configure the Orion Web Console as shown in the following steps:

(1) Please launch IIS Manager, expand Sites and select the SolarWinds website.
(2) Look for the "Authentication" option and double-click it. From there, make sure that Windows Authentication is enabled.
(3) Click Start > All Programs > SolarWinds Orion > Configuration and Auto-Discovery > Configuration Wizard.
(4) Check Website, and then click Next.
(5) After providing the appropriate IP Address, Port, and Website Root Directory, select Yes – Enable automatic login using Windows Authentication.
(6) Click Next, and then complete the Configuration Wizard.

View solution in original post

11 Replies
Level 9

I did almost the same thing, except instead of renaming the Solarwinds folder, I simply deleted it (this was a fresh install, there was nothing that needed to be saved), then deleted the Orion website in IIS, and re-installed the application. When re-installing, make sure to "Run as administrator," it made a difference for me, even though I was logged in as an Administrator on the server (2008 R2).

Thanks for the post Taina!

0 Kudos
Level 16

In general these are all caused by bugs in the solarwinds installer or application, and people should open tickets with solarwinds support.

I get this all of the time because some interfaces have NULL values in either the interfacetypedescription or interfacetypename and the Views by Device Type setting control crashed because it wasn't coded to cope with NULLS, and the database allows them in the columns. (I do not yet understand why this data gets into the database, but it should not crash the webUI.)

0 Kudos
Level 9

Have the same error here, will check with support if this fix is ok, but thanks for posting.

0 Kudos
Level 10

THE PROBLEM WAS SOLVED !

Recreate the Orion website by following the steps below:


1. Stop all Orion Services using Orion Service Manager
2. Open C:\Inetpub
3. Rename the Solarwinds folder to Solarwinds_OLD
4. Open IIS
5. Delete the Solarwinds Orion Website


** Please note that all settings are stored in the database so by deleting the website you will not lose any data


6. Open the Orion Configuration wizard
7. Run all 3 portions of the Configuration Wizard - Database, Website & Services

**If you want to enable automatic login for web console accounts using Windows Authentication, configure the Orion Web Console as shown in the following steps:

(1) Please launch IIS Manager, expand Sites and select the SolarWinds website.
(2) Look for the "Authentication" option and double-click it. From there, make sure that Windows Authentication is enabled.
(3) Click Start > All Programs > SolarWinds Orion > Configuration and Auto-Discovery > Configuration Wizard.
(4) Check Website, and then click Next.
(5) After providing the appropriate IP Address, Port, and Website Root Directory, select Yes – Enable automatic login using Windows Authentication.
(6) Click Next, and then complete the Configuration Wizard.

View solution in original post

excellent, thank you for posting the fix!

0 Kudos
Level 12

I'm not sure if this will help you at all.  But we had a custom (corporate colored) scheme.  After Installing NPM and re-running the config wizard due to some other issues I guess it reset this/removed it?  Not sure.  Our WebSettings table was referencing a StyleSheet that no longer existed.  I changed the SettingValue to one of the default styles ie SlateGray.css.  Ran the query and no longer experience the error message.  Is it possible you set up a custom view somewhere?  I have seen this on another occasion where we had a custom interface set up in NPM and it would throw an error message.  We had to delete the item causing the error out of the viewsbydevicetype table.  It may help if you post the error in its entirety.  Thanks.

0 Kudos
Level 8

I am experiencing the same error when I try to customize the a customized home screen. I have not recently upgraded NPM, but did some hotfix updates for NCM, NTA, and UDT.

0 Kudos
Anonymous
Not applicable

What version is this occurring with?

0 Kudos
Level 12

Yes please post results if you have a ticket open.  We are experiencing the same error message.  Even when trying to change the color scheme under settings. 

0 Kudos
Level 16

As says: open a support ticket.

Have you done an NPM upgrade recently? The last time I had this, the only way to get it fixed was for someone from SolarWinds support to set a variable in the XML file that drives the configuration to force it to re-install everything. Attempting to repair the install of various components didn't fix it.

0 Kudos
Level 17

does it do this for any view you try to edit?

perhaps try copying another view (not one you are currently having troubles with) and try adding resources to the new copy of view.

Might be that view you are trying to edit got corrupted or something.

Also, I'd suggest opening a ticket; and please post results/info here!

Thx

0 Kudos