Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

SmartsheetBuilder.Build() fails - "Invalid Class" #121

Open
dapug opened this issue Jun 1, 2020 · 0 comments
Open

SmartsheetBuilder.Build() fails - "Invalid Class" #121

dapug opened this issue Jun 1, 2020 · 0 comments
Labels

Comments

@dapug
Copy link

dapug commented Jun 1, 2020

SmartsheetBuilder.Build() throws a System.Management.Management.ManagementException "Invalid Class" at runtime.

Steps:

  • Fire up a new project (console, etc)
  • Add NuGet package for smartsheet-csharp-sdk (2.93.1)
  • Run the following:
         var accessToken = "YOUR_TOKEN";
            var foo = new SmartsheetBuilder()
                .SetAccessToken(accessToken)
                .Build(); 

The error is thrown in Utils.cs GetOSFriendlyName() line 55. I have no idea why it is doing this. It was working fine, and then suddenly no longer. I wonder if a Windows 10 update changed some system thing this is trying to call? That is the only thing that happened on my system between the time my project was working, and not.

OS: Windows 10 x64, v1903 (Build 18362,836)
VS: v16.5.0 Preview 1.0
Project Target Type: .Net Framework 4.7.2

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

No branches or pull requests

2 participants