Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewing settings view causes null reference exception #3

Open
shadeon opened this issue Oct 25, 2017 · 1 comment
Open

Viewing settings view causes null reference exception #3

shadeon opened this issue Oct 25, 2017 · 1 comment
Assignees
Labels

Comments

@shadeon
Copy link

shadeon commented Oct 25, 2017

Issue

When clicking on the settings view under Management Packs (community) the error message below is shown:

image

This is then followed by a JIT exception (below). Clicking continue allows the SCOM console to continue functioning, clicking quit causes it to crash.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Community.ManagementPackCatalog.UI.DataConnectors.ConfigurationPackConnector.GetPackUpdateMonitorSetting()
   at Community.ManagementPackCatalog.UI.CommunityCatalogSettings.CheckCurrentConfiguration()
   at Community.ManagementPackCatalog.UI.CommunityCatalogSettings..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Microsoft.EnterpriseManagement.ConsoleFramework.Wpf.GenericWpfViewConstructor.CreateView(Object parent, Type viewType, IViewParameters viewParameters)
   at Microsoft.EnterpriseManagement.ConsoleFramework.ViewConstructor.BeginShow(ShowViewContext showViewContext, AsyncCallback callback, Object state)

Environment

SCOM 2012 R2 console version 7.1.10226.1360

@P2P-Nathan P2P-Nathan self-assigned this Oct 25, 2017
@P2P-Nathan P2P-Nathan added the bug label Oct 25, 2017
@P2P-Nathan P2P-Nathan added this to the 1.0.2.x bugfixes milestone Oct 25, 2017
@P2P-Nathan
Copy link
Member

A new test build has been created that should resolve this issue.

In addition to the updated error handling settings for a proxy can be configured via 3 registry keys. A final key configures a direct URL to be used for connection to GitHub, without the use of the MPCatalog.net redirect.

The keys can be seen in my branch at: https://github.com/MPCatalog/scom-community-catalog-ui/blob/work/1.0.2.x-bug-fixes/Community.ManagementPackCatalog.UI/Models/GitHubRepository.cs#L114

Proxy configuration has a key for each of the following:

  • proxyAddress
  • proxyUserName
  • proxyPassword

Repo URL configuration has a single key of:

  • GitHubRepoBase

The updated version of the pack can be found here:
Community.ManagementPackCatalog.zip

Both registry configuration examples are available here:
Registry Key Configurations.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants