Giter Site home page Giter Site logo

bramdejager / spcb Goto Github PK

View Code? Open in Web Editor NEW
163.0 16.0 46.0 521 KB

The SharePoint Client Browser (SPCB) uses the CSOM to connect to a remote SharePoint site collection and shows the site structure with related properties and values.

License: GNU General Public License v2.0

sharepoint sharepoint-online sharepoint-2013 sharepoint-2016 office-365 office365 csom sharepoint-2019 sharepoint-2010

spcb's Introduction

SharePoint Client Browser (SPCB)

by Bram de Jager (@bramdejager).

Summary

The SharePoint Client Browser (SPCB) uses the SharePoint API (a.k.a. CSOM) to connect to a remote SharePoint site collection and shows the site structure with related properties and values.

Support for

  • SharePoint Online (Office 365 Multi Tenant & Office 365 Dedicated)
  • SharePoint Server 2019 on-premises
  • SharePoint Server 2016 on-premises
  • SharePoint Server 2013 on-premises
  • SharePoint Server 2010 on-premises

Releases & Downloads

You can find the latests releases (downloads) under releases: https://github.com/bramdejager/spcb/releases. When selecting the release, download the release which is corresponding your target system. Each target system has a separate download. By downloading and using the SharePoint Client Browser tool you agree to the privacy policy.

Target system Client Version Latest Release
SharePoint Online SharePoint Online Client Browser v4.x download
SharePoint 2019 SharePoint 2019 Client Browser v3.x download
SharePoint 2016 SharePoint 2016 Client Browser v2.x download
SharePoint 2013 SharePoint 2013 Client Browser v1.x download
SharePoint 2010 SharePoint 2010 Client Browser v0.x download

Screenshot

Home Screen

Prerequisites

Below system requirements are recommended, other system configurations might work too... (not validated)

  • Windows 7, 8, 8.1, 10
  • Windows Server 2012, 2016
  • Microsoft .NET Framework 4 or higher

Getting Started

Coming soon...

Disclaimer

THIS SOLUTION IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

spcb's People

Contributors

bramdejager avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spcb's Issues

PowerShell not load assembly

Hello,

i get this error, a have installed SDK (online, 2013). Please help.

Add-Type : Could not load file or assembly 'file:///D:\Install\SharePoint Online Client Browser v2.2\Microsoft.SharePoi
nt.Client.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
At C:\Users\jirka\AppData\Local\Temp\SPCB_PowerShell_OpenSite.ps1:24 char:9

Add-Type -Path (Resolve-Path $assemblyName)


CategoryInfo          : NotSpecified: (:) [Add-Type], FileLoadException
FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.AddTypeCommand





#### This work item was migrated from CodePlex
CodePlex work item ID: '65581'
Assigned to: 'BdeJager'
Vote count: '2'

Unable to add new Tenant

I have been using the client browser for some time but replaced my machine and am now unable to add a ne tenant, the machine was built from the same image so is identical, when trying to add a new tenant I get the following: The specific module could not be found. (Exception from HRESULT:0x8007007E) I am able to add a site without issue.

Attachments

Tenant Capture.JPG

This work item was migrated from CodePlex

CodePlex work item ID: '57579'
Assigned to: 'BdeJager'
Vote count: '1'

Missing external Users

The external user node under our Tenant only shows one person, we have many more external users than this. How can we see a complete listing of these users?

Attachments

SPCB - External Users.png

This work item was migrated from CodePlex

CodePlex work item ID: '25944'
Assigned to: 'BdeJager'
Vote count: '1'

Login to SharePoint Online failed

After Installation of SP Client Browser I tried to add my SharePoint Online Website. But it failed with the message:

For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.

What's wrong? What can I do?

This work item was migrated from CodePlex

CodePlex work item ID: '63605'
Assigned to: 'BdeJager'
Vote count: '1'

Incorrect browse to, or browse setting - when loading tenant

I notice when I load a tenant, then second click over a list 'open default browser', and also 'Browse settings page' of object, it defaults to https://name-admin.sharepoint.com, instead of name.sharepoint.com (e.g. should be RootSiteUrl in Tenant Object).
Maybe loading a site is OK, but only tested loading a tenant.
Hope this helps.
Nice tool!

This work item was migrated from CodePlex

CodePlex work item ID: '63994'
Vote count: '2'

'The property or field 'IsSiteAdmin' has not been initialized. It has not been requested or the request has not beenexecuted. It may need to be explicitly requested.'

Thank you for sharing this awsome tool! It holds great promise for any SharePoint Admin or Developer.
When trying to connect to an on-premises SP 2010 site collection with v2.1, I get the error "The property or field 'IsSiteAdmin' has not been initialized. It has not been requested or the request has not beenexecuted. It may need to be explicitly requested." The associated log file is attached.

Attachments

SPCB-D200GJL3VR1-20160215.log

This work item was migrated from CodePlex

CodePlex work item ID: '65091'
Vote count: '1'

how to connect to a tenant with adfs

with adfs to go to my https://xxxx-admin.sharepoint.com/ site as soon as I add my account it redirect (no need for password). but when I try setting the tenant in the tool it must have the password. which results "Identity Client Runtime Library (IDCRL) did not get a response from login server)
any one know how to connect

This work item was migrated from CodePlex

CodePlex work item ID: '65130'
Vote count: '1'

Stuck on the "whats new" window

Unable to get rid of this window at startup, no button to close it, did I miss something ?

This work item was migrated from CodePlex

CodePlex work item ID: '65552'
Vote count: '1'

Could not load file or assembly

Just downloaded the latest version and when I start the application, I get a popup stating that it cannot load Microsoft.SharePoint.Client.Runtime version 15.0.0.0.

The message continues with Strong name validation failed.

I've tried this on a virtual machine without SharePoint and a virtual machine with SharePoint.

Microsoft.SharePoint.Client.Runtime is in the same folder as the application.

Any ideas what the problem could be?

Thanks

This work item was migrated from CodePlex

CodePlex work item ID: '65062'
Vote count: '1'

Error on startup

v1.5.1 crashes on the start up and it is not usable.
as a reference v1.4.0 was working without any hiccups.

This work item was migrated from CodePlex

CodePlex work item ID: '25939'
Assigned to: 'BdeJager'
Vote count: '1'

Refresh button disabled on list

Everytime I want to see new results in a list I have to click another list and come back to the list because the refresh button is always disabled.

This work item was migrated from CodePlex

CodePlex work item ID: '25371'
Assigned to: 'BdeJager'
Vote count: '1'

Support for taxonomy columns

I am using version 1.2. In a list I have configured a managed metadata column and I would like to inspect the data in this column. The tool currently shows the value Microsoft.SharePoint.Client.Taxonomy.TaxonomyFieldValueCollection in the Raw List Data tab.
Can the tool be enhanced to show the contents of this collection?

This work item was migrated from CodePlex

CodePlex work item ID: '25140'
Assigned to: 'BdeJager'
Vote count: '2'

Constant request to relogin with Office 365

Here are the steps to reproduce the issue:

Click Add Site
Enter the Office 365 site URL
Click OK
I couldn't log in as I forgot the password, so I closed the Office 365 login dialog
Once I closed it, it opened again, and I was stuck in that loop (close, open, close, open)

This work item was migrated from CodePlex

CodePlex work item ID: '24464'
Assigned to: 'BdeJager'
Vote count: '1'

Unable to start PowerShell

When i right click on an SPO site collection, and choose Open Powershell with CSOM, i get the following error:

Object reference not set to an instance of an object

This work item was migrated from CodePlex

CodePlex work item ID: '63889'
Assigned to: 'BdeJager'
Vote count: '1'

'Object reference not set to an instance of an object' message when viewing a 'web'

Hi. Thanks for providing this great tool.

When I try to view a 'web' I get a message saying 'Object reference not set to an instance of an object'.

It worked fine in version 1.7 so reverted back until this issue has been fixed.

I'm using NTLM to connect to an Office 365D environment.

Again - awesome tool.

This work item was migrated from CodePlex

CodePlex work item ID: '65090'
Assigned to: 'BdeJager'
Vote count: '1'

Cannot connect to SP Farms Using ADFS 3.0 Authentication

I have all of our farms configured to authenticate using ADFS, but neither the default option or the forms based options seem to work in this scenario I am just getting a 403 Forbidden error message. After looking at the logs for ADFS and SP the app seems to bypass the ADFS authentication and tries immediately to authenticate using the integrated authentication (which is technically made available on our web apps to allow search to crawl). If I select Forms Based, it tells me that the it is not configured for claims form based authentication.

Has anyone got this tool to work with ADFS authentication set up?

This work item was migrated from CodePlex

CodePlex work item ID: '25973'
Assigned to: 'BdeJager'
Vote count: '2'

Setting height/width of loginform doesn't work

public ClaimsWebAuth(string targetSiteUrl, int popUpWidth, int popUpHeight)
{
if (string.IsNullOrEmpty(targetSiteUrl)) throw new ArgumentException(Constants.MSG_REQUIRED_SITE_URL);
this.fldTargetSiteUrl = targetSiteUrl;

    // set login page url and success url from target site
    this.GetClaimParams(this.fldTargetSiteUrl, out this.fldLoginPageUrl, out  this.fldNavigationEndUrl);

// The two lines below are incorrect
this.PopUpHeight = PopUpHeight;
this.PopUpWidth = PopUpWidth;

    this.webBrowser = new WebBrowser();
    this.webBrowser.Navigated += new WebBrowserNavigatedEventHandler(ClaimsWebBrowser_Navigated);
    this.webBrowser.ScriptErrorsSuppressed = true;
    this.webBrowser.Dock = DockStyle.Fill;
}

This work item was migrated from CodePlex

CodePlex work item ID: '25415'
Assigned to: 'BdeJager'
Vote count: '1'

Saved credentials for opening a tenant

We would like to use "SharePoint Online Client Browser" (SPOLCB) for developers that do not have tenant admin access.

Can you please confirm two points:

  1. SPOLCB provides read-only access, right? I.e.. There is no way changes can me made using it.
  2. Where and how the password is stored? Is there a way a user can "reveal" the password? Please see attached screenshot.

Attachments

SNAGHTML5200a33.png

This work item was migrated from CodePlex

CodePlex work item ID: '65159'
Vote count: '1'

AppCrash on startup

I just installed the 2013 version on Windows Server 2012 and it crashes on startup:

Problem signature:
Problem Event Name: APPCRASH
Application Name: SPCB2013.exe
Application Version: 1.5.1.0
Application Timestamp: 54b37560
Fault Module Name: clr.dll
Fault Module Version: 4.0.30319.34209
Fault Module Timestamp: 5348a1ef
Exception Code: c00000fd
Exception Offset: 0000000000006f63
OS Version: 6.2.9200.2.0.0.272.7
Locale ID: 1033
Additional Information 1: 921d
Additional Information 2: 921d7defe22d987b9247be061201b3a2
Additional Information 3: 60c6
Additional Information 4: 60c661e9928e3462c06a1f0962de0042

This work item was migrated from CodePlex

CodePlex work item ID: '25997'
Assigned to: 'BdeJager'
Vote count: '1'

edit property of a site collection

How can I edit a property of a site collection?

Ex- _auditlogtrimmingretention, _auditlogreportstoragelocation

Do I also have option to archive a SharePoint online site using SharePoint 2010/2013 client browser?

Thanks in advance !

This work item was migrated from CodePlex

CodePlex work item ID: '25100'
Assigned to: 'BdeJager'
Vote count: '1'

Unable to open list

When I right click and choose Open in Default Browser I get a page not found, the url is wrong, it includes tenant-admin.sharepoint.com instead of tenant.sharepoint.com

This work item was migrated from CodePlex

CodePlex work item ID: '57736'
Assigned to: 'BdeJager'
Vote count: '1'

Error when adding new site

When I try to add a site I get
"Error creating the Web Proxy specified in the 'system.net/defaultProxy. configuration section."

This work item was migrated from CodePlex

CodePlex work item ID: '25885'
Vote count: '1'

Error connecting to SharePoint Online

There is an error when I try to connect to SharePoint Online:

For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.

Attachments

SPCB-UX31E-20160726.log

This work item was migrated from CodePlex

CodePlex work item ID: '65089'
Vote count: '2'

SharePoint Online Client Browser v2.1 SPCB.exe infected?

May be a false positive but AVG is detecting Luhe.Fiha.A infection in "SPCB.exe" file of SharePoint Online Client Browser v2.1. Only this .exe seems to be affected. SharePoint 2013 Client Browser v1.8 "SPCB.exe" does not seem to have a problem.

This work item was migrated from CodePlex

CodePlex work item ID: '65111'
Assigned to: 'BdeJager'
Vote count: '2'

Uncomplete profile list

When node "Other profiles" is expended, only 330 of my 661 existants profiles are shown. With the row limit of 500, i should see 500 profiles.
After digging into code i found that setting keywordQuery.TrimDuplicates=false resolve this issue.

This work item was migrated from CodePlex

CodePlex work item ID: '25735'
Assigned to: 'BdeJager'
Vote count: '1'

The Remote Server returned an Error: 403 forbidden

Hi,

When i am trying to add Site i am getting the 403 forbidden error, I am using this for my onpremise farm, In Authentication selected default and provided farm account

This work item was migrated from CodePlex

CodePlex work item ID: '25653'
Assigned to: 'BdeJager'
Vote count: '1'

Problems with Resolution/Text Scaling

Hey,

I have a display issue where everything is overlapping, I'm guessing it has something to do with the scaling feature on windows 8.1 perhaps? See the attached image :)

Overall, loving your tool mate, it has saved me countless times! Keep it up!

Cheers.

Attachments

SPCB1_7.PNG

This work item was migrated from CodePlex

CodePlex work item ID: '65006'
Assigned to: 'BdeJager'
Vote count: '3'

Problem on Windows 7 SP1

Good day,

The application does not want to open on Windows 7. It gives this error message: "SharePoint 2013 Client Browser has stopped working"... Please help.

Problem signature:
Problem Event Name: APPCRASH
Application Name: SPCB2013.exe
Application Version: 1.5.1.0
Application Timestamp: 54b37560
Fault Module Name: clr.dll
Fault Module Version: 4.0.30319.17929
Fault Module Timestamp: 4ffa59b1
Exception Code: c00000fd
Exception Offset: 00000000000063f7
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 7177
Additional Information 1: 911e
Additional Information 2: 911e48f5c618ab9757fee9b961077af6
Additional Information 3: 5b2d
Additional Information 4: 5b2d1e5ae444b81d2669d1b0d2a251d3

This work item was migrated from CodePlex

CodePlex work item ID: '25907'
Assigned to: 'BdeJager'
Vote count: '2'

msoidclil.dll error while connecting to SP online site.

I am trying to connect to my SharePointOnline Site using 'SharePoint Client Browser2013' , when i was trying to add site , i was giving my site collection url. i.e. https://myciphercloud.sharepoint.com ( This is my temp site as i am using trail version of O365). I am not sure what username and what password i should give. Is it my o365 site login name? I don't keep any special username/admin name for SharePoint Site. However I gave my O365 site username and password but it was throwing an error saying "MSOIDCLiL.DLL' I am not sure what is this dll. I am trying to run the .exe from my laptop. I don't have .net framework. I don't have any other s/ws. Please let me know , how to connect remotly to my site collection and request you to help me in resolving this issue.

regards
cnivass.

This work item was migrated from CodePlex

CodePlex work item ID: '24605'
Assigned to: 'BdeJager'
Vote count: '1'

Code generation

Hi, I have used your project to create a code generator, if you are interested I can share with you the code, it is very simple. I think it can be interesting, for example you can use it to create the CRUD code for your lists, imagine that you always have to create the same code for getting items in your lists with CSOM, why do you repeat it again if you can generate it? I attach an example of creating the code to get a listitemcollection and convert them to a model from mine.

Attachments

codeGeneration.png
spBrowserPatch.docx
spBrowserPatch.docx
spBrowser.zip

This work item was migrated from CodePlex

CodePlex work item ID: '28368'
Assigned to: 'BdeJager'
Vote count: '1'

Proxy support

Hey everyone,

I was wondering if there could be proxy support for connections?

Greetings,
Pieter

This work item was migrated from CodePlex

CodePlex work item ID: '63592'
Vote count: '1'

Client Assembly Reference Issue

When using SPCB on a SP 2013 Server it always pulls the client assemblies off the GAC and I do not see any way to change this (e.g. by setting a property in the .config file).

My issue is that I just want to unzip the SPCB package to test new things, like the SPWeb.AlternateCSS property. To access this property I need a certain build of the client components and I expected that SPCB is using those provided in its own directory not requiring me to update the server first.

Currently I have to fire up another VM with Windows client, without SP server, to run SPCB with the latest client components and test my stuff. That's a real PITA just for running some test against the REST api with the SP2013 client components.

Would be great if I could either put a checkbox to always use the local client components (those in the same directory as SPCB.exe) or the globally deployed assemblies in the GAC.

Thanks for listening!

Cheers,

Sig

This work item was migrated from CodePlex

CodePlex work item ID: '63924'
Assigned to: 'BdeJager'
Vote count: '1'

Problems with high resolution

The SP client browser is not displaying correct for a computer with high resolution. Text is extremly small(unusally against other applications) and lines are mixed together.
I am running Wndows 10, I hope that is not the issue.

Best regards,
Ove Bristrand

Attachments

snip_20151215171034.png

This work item was migrated from CodePlex

CodePlex work item ID: '63851'
Assigned to: 'BdeJager'
Vote count: '1'

The system cannot find the file specified

Hi,

I was trying to open a power shell console from my sharepoint online site and the error is:

"the system cannot find the file specified"

the action was: "Open Power shell with CSOM" doing right mouse button over the site collection.

what's missing?

Kind regards,
Ramon

Attachments

screenshot01.jpg

This work item was migrated from CodePlex

CodePlex work item ID: '24967'
Assigned to: 'BdeJager'
Vote count: '1'

Raw Data tab shows Type instead of value

When a list is selected the Raw data tab wil show the Type for several columns instead of value

Microsoft.SharePoint.Client.FieldUserValue
Microsoft.SharePoint.Client.FieldLookValue
Microsoft.SharePoint.Client.FieldUrlValue

This work item was migrated from CodePlex

CodePlex work item ID: '24494'
Assigned to: 'BdeJager'
Vote count: '1'

Authentication to on-prem SP using multiple auth types

Attempting to authenticate to on-prem SharePoint (2013 or 2016) doesn't seem to work if web application is configured to use multiple authentication types (Windows + SAML in our case).

I believe SPCB code should include ("X-FORMS_BASED_AUTH_ACCEPTED", "f") header as discussed here: https://msdn.microsoft.com/en-us/library/office/hh124553(v=office.14).aspx.

This work item was migrated from CodePlex

CodePlex work item ID: '65179'
Assigned to: 'BdeJager'
Vote count: '1'

Add the Client Libraries

Such as UserProfiles and Taxonomy.

Just add them to the package. Makes it easier for none SharePoint people to use it

This work item was migrated from CodePlex

CodePlex work item ID: '24873'
Assigned to: 'BdeJager'
Vote count: '1'

Cannot Add Site Collection

I am attempting to connect to SPOnline using standard login (ie. [email protected]) but the following error shows up. Earlier versions of the app usually worked not problem. I am using 1.5.1.0
Add Site Collection
The Application ID (AppID) for which the service ticket is requested does not exist on the system.
OK

This work item was migrated from CodePlex

CodePlex work item ID: '25986'
Vote count: '1'

Trojan Alert Simda.B_17

Getting a Trojan warning from this project. I want to hope this isn't deliberate, and I'm sorry I'm unable to use this, but I'm not going to risk installing something that my antivirus clearly warns has a Trojan in it

This work item was migrated from CodePlex

CodePlex work item ID: '65225'
Vote count: '1'

Null reference exception on startup

When launching application I can see message "Loading recent tenants and sites..." then null reference exception is thrown.

here is the log file:
Time;Machine;Process;Version;Category;EventId;Level;Correlation;Message
23-08-2015 11:04:59.415;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3;Error while retrieving default browser setting.
23-08-2015 11:04:59.431;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3;System.NullReferenceException: Object reference not set to an instance of an object.
23-08-2015 11:04:59.431;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Utils.BrowserUtil.GetBrowsers()
23-08-2015 11:04:59.431;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Utils.BrowserUtil.GetSystemDefaultBrowser()
23-08-2015 11:04:59.431;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3;Object reference not set to an instance of an object.
23-08-2015 11:04:59.431;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3;System.NullReferenceException: Object reference not set to an instance of an object.
23-08-2015 11:04:59.431;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Utils.BrowserUtil.GetBrowsers()
23-08-2015 11:04:59.431;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Utils.BrowserUtil.GetBrowser(String name)
23-08-2015 11:04:59.431;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Configuration..ctor()
23-08-2015 11:04:59.431;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Configuration.get_Current()
23-08-2015 11:04:59.431;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Utils.LogUtil.TruncateLogFiles()
23-08-2015 11:04:59.447;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3;Error while retrieving default browser setting.
23-08-2015 11:04:59.447;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3;System.NullReferenceException: Object reference not set to an instance of an object.
23-08-2015 11:04:59.447;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Utils.BrowserUtil.GetBrowsers()
23-08-2015 11:04:59.447;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Utils.BrowserUtil.GetSystemDefaultBrowser()
23-08-2015 11:05:13.362;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3;Object reference not set to an instance of an object.
23-08-2015 11:05:13.362;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3;System.NullReferenceException: Object reference not set to an instance of an object.
23-08-2015 11:05:13.362;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Utils.BrowserUtil.GetBrowsers()
23-08-2015 11:05:13.362;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Utils.BrowserUtil.GetBrowser(String name)
23-08-2015 11:05:13.362;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Configuration..ctor()
23-08-2015 11:05:13.362;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Configuration.get_Current()
23-08-2015 11:05:13.362;SP2013DEV;SPCB.exe;1.7.0.0;General;0;Exception;73cdc001-4954-4e67-bead-b2aeae5b02d3; at SPBrowser.Program.Main(String[] args)

I looked into the code for method GetBrowsers, trying to run it on my environment and find that it fails under line
RegistryKey browserKeyPath = browserKey.OpenSubKey(@"shell\open\command");
var Path = (string)browserKeyPath.GetValue(null).ToString();

browserKeyPath is null, that's why null reference is thrown. I looked into my regedit and find that I have mystic Tourch browser installed without shell\open\command subtree. (see attach). After deleting all works fine. I think it will be good if you can include additional check in your code to prevent such situations.

Thanks!

Attachments

2015-08-23_1154.png

This work item was migrated from CodePlex

CodePlex work item ID: '63930'
Assigned to: 'BdeJager'
Vote count: '1'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.