René's URL Explorer Experiment


Title: Unexpected exception is thrown in PropertyAccessor.cs, line 138. · Issue #2205 · PowerShell/PowerShell · GitHub

Open Graph Title: Unexpected exception is thrown in PropertyAccessor.cs, line 138. · Issue #2205 · PowerShell/PowerShell

X Title: Unexpected exception is thrown in PropertyAccessor.cs, line 138. · Issue #2205 · PowerShell/PowerShell

Description: Steps to reproduce In CentOS7, Setup and run PSRP remote scenario by following instructions at https://github.com/powershell/psl-omi-provider. Expected behavior No exception is thrown. If needed, return a proper error. Actual behavior Hi...

Open Graph Description: Steps to reproduce In CentOS7, Setup and run PSRP remote scenario by following instructions at https://github.com/powershell/psl-omi-provider. Expected behavior No exception is thrown. If needed, r...

X Description: Steps to reproduce In CentOS7, Setup and run PSRP remote scenario by following instructions at https://github.com/powershell/psl-omi-provider. Expected behavior No exception is thrown. If needed, r...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2205

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unexpected exception is thrown in PropertyAccessor.cs, line 138. ","articleBody":"\u003c!--\n\nIf it is a bug report:\n- make sure you are able to repro it on the latest released version. \nYou can install the latest version from https://github.com/PowerShell/PowerShell/releases\n- Search the existing issues.\n- Refer to the [FAQ](../docs/FAQ.md).\n- Refer to the [known issues](../docs/KNOWNISSUES.md).\n- Fill out the following repro template\n\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\n-->\n## Steps to reproduce\n\nIn CentOS7, Setup and run PSRP remote scenario by following instructions at https://github.com/powershell/psl-omi-provider. \n## Expected behavior\n\nNo exception is thrown. If needed, return a proper error.   \n## Actual behavior\n\nHit exception as below when trying to login remotely from a windows client, \n PS C:\\windows\\system32> Enter-PSSession -ComputerName li-cent7 -Credential $cred -Authentication neg\notiate -SessionOption $o\nEnter-PSSession : The type initializer for 'System.Management.Automation.ConfigPropertyAccessor'\nthrew an exception.\nAt line:1 char:1\n- Enter-PSSession -ComputerName li-cent7 -Credential $cred -Authenticat ...\n- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n  - CategoryInfo          : NotSpecified: (:) [Enter-PSSession], TypeInitializationException\n  - FullyQualifiedErrorId : RemoteRunspaceStateInfoReason\n## Environment data\n\n\u003c!-- provide the output of $PSVersionTable -->\n\n``` powershell\n> $PSVersionTable\nName                           Value\n----                           -----\nPSVersion                      6.0.0-alpha\nPSEdition                      Core\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\nBuildVersion                   3.0.0.0\nGitCommitId                    v6.0.0-alpha.9\nCLRVersion\nWSManStackVersion              3.0\nPSRemotingProtocolVersion      2.3\nSerializationVersion           1.1.0.1\n```\n\nAfter debugging, the exception is thrown in PropertyAccessor.cs, line 138.  When PSRP tries to CreatDirectory /root/.config/powershell under root at GetCurrentUserConfigDirectory(). It is inconsistent that the logic catches the exception at JsonConfigFileAccessor(), but not GetCurrentUserConfigDirectory(). \n\n```\n    internal JsonConfigFileAccessor()\n    {\n        //\n        // Sets the system-wide configuration directory\n        //\n        Assembly assembly = typeof(PSObject).GetTypeInfo().Assembly;\n        psHomeConfigDirectory = Path.GetDirectoryName(assembly.Location);\n\n        //\n        // Sets the per-user configuration directory\n        //\n        appDataConfigDirectory = Utils.GetUserConfigurationDirectory();\n        if (!Directory.Exists(appDataConfigDirectory))\n        {\n            try\n            {\n                Directory.CreateDirectory(appDataConfigDirectory);\n            }\n            catch (UnauthorizedAccessException)\n            {\n                // Do nothing now. This failure shouldn't block initialization\n                appDataConfigDirectory = null;\n            }\n        }\n    }\n\n    /// \u003csummary>\n    /// Enables delayed creation of the user settings directory so it does \n    /// not interfere with PowerShell initialization\n    /// \u003c/summary>\n    /// \u003creturns>Returns the directory if present or creatable. Throws otherwise.\u003c/returns>\n    private string GetCurrentUserConfigDirectory()\n    {\n        if (null == appDataConfigDirectory)\n        {\n            string tempAppDataConfigDir = Utils.GetUserConfigurationDirectory();\n            if (!Directory.Exists(tempAppDataConfigDir))\n            {\n                Directory.CreateDirectory(tempAppDataConfigDir);\n                // Only assign it if creation succeeds. It will throw if it fails.\n                appDataConfigDirectory = tempAppDataConfigDir;\n            }\n            // Do not catch exceptions here. Let them flow up.\n        }\n        return appDataConfigDirectory;\n    }\n```\n\ntempAppDataConfigDir is /root/.config/powershell at the failure case.\n","author":{"url":"https://github.com/lilyfang","@type":"Person","name":"lilyfang"},"datePublished":"2016-09-07T23:29:21Z","url":"https://github.com/PowerShell/PowerShell/issues/2205"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c0912be0-a846-9493-dc63-b9a4938f5305
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE004:178F0E:244641:349DCE:6AFD7A73
html-safe-noncec551f8b9058df08c3988855572d5a50bec5ef5a0c57e2e1aecb665661af7dd3c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDA0OjE3OEYwRToyNDQ2NDE6MzQ5RENFOjZBRkQ3QTczIiwidmlzaXRvcl9pZCI6IjU5MjA0NDcxNDg5ODk0NDY3NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1f15efc292265cbef9f4a95b9a74b3bd2a08ef7155959ad41c05f9008a425797
hovercard-subject-tagissue:175630636
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/2205/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e09ac2de9a72a52a73166165e12f88455fe6adc0368a489a4354efac244c8c32/PowerShell/PowerShell/issues/2205
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e09ac2de9a72a52a73166165e12f88455fe6adc0368a489a4354efac244c8c32/PowerShell/PowerShell/issues/2205
og:image:altSteps to reproduce In CentOS7, Setup and run PSRP remote scenario by following instructions at https://github.com/powershell/psl-omi-provider. Expected behavior No exception is thrown. If needed, r...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelilyfang
hostnamegithub.com
expected-hostnamegithub.com
None544ff6b59bd215c4609120f6e334dbd0b00d34fb6f8bc03a476f72256998887e
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release71c92f8b27ec5e9aa6f6477b4e067a4727fc9edb
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/2205#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F2205
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F2205
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/2205
Reloadhttps://github.com/PowerShell/PowerShell/issues/2205
Reloadhttps://github.com/PowerShell/PowerShell/issues/2205
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests366 (366)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/2205
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/2205
Unexpected exception is thrown in PropertyAccessor.cs, line 138. https://github.com/PowerShell/PowerShell/issues/2205#top
https://github.com/mirichmo
Area-SideBySiderelated to ability to run PS7 side-by-side with WinPS or different versions of PS7https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Area-SideBySide%22
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
OS-Linuxhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22OS-Linux%22
6.0.0-alpha.11https://github.com/PowerShell/PowerShell/milestone/18
https://github.com/lilyfang
Li Li (lilyfang)https://github.com/lilyfang
on Sep 7, 2016https://github.com/PowerShell/PowerShell/issues/2205#issue-175630636
https://github.com/powershell/psl-omi-providerhttps://github.com/powershell/psl-omi-provider
Joey Aiello (joeyaiello)https://github.com/joeyaiello
WG-RemotingPSRP issues with any transport layerhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Remoting%22
on Sep 12, 2016https://github.com/PowerShell/PowerShell/issues/2205#event-786746002
https://github.com/andyleejordan
Andy Jordan (andyleejordan)https://github.com/andyleejordan
on Sep 19, 2016https://github.com/PowerShell/PowerShell/issues/2205#issuecomment-248064790
Andy Jordan (andyleejordan)https://github.com/andyleejordan
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
WG-RemotingPSRP issues with any transport layerhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Remoting%22
on Sep 19, 2016https://github.com/PowerShell/PowerShell/issues/2205#event-794408219
Andy Jordan (andyleejordan)https://github.com/andyleejordan
Mike Richmond (mirichmo)https://github.com/mirichmo
on Sep 19, 2016https://github.com/PowerShell/PowerShell/issues/2205#event-794408556
https://github.com/andyleejordan
Andy Jordan (andyleejordan)https://github.com/andyleejordan
on Sep 19, 2016https://github.com/PowerShell/PowerShell/issues/2205#issuecomment-248064898
Mike Richmond (@mirichmo)https://github.com/mirichmo
Joey Aiello (joeyaiello)https://github.com/joeyaiello
WG-RemotingPSRP issues with any transport layerhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Remoting%22
on Sep 19, 2016https://github.com/PowerShell/PowerShell/issues/2205#event-794410837
Andy Jordan (andyleejordan)https://github.com/andyleejordan
6.0.0-alpha.11https://github.com/PowerShell/PowerShell/milestone/18
on Sep 19, 2016https://github.com/PowerShell/PowerShell/issues/2205#event-794411647
Joey Aiello (joeyaiello)https://github.com/joeyaiello
OS-Linuxhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22OS-Linux%22
Area-SideBySiderelated to ability to run PS7 side-by-side with WinPS or different versions of PS7https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Area-SideBySide%22
WG-RemotingPSRP issues with any transport layerhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Remoting%22
on Sep 19, 2016https://github.com/PowerShell/PowerShell/issues/2205#event-794415049
https://github.com/damon-atkins
Damon Atkins (damon-atkins)https://github.com/damon-atkins
on Sep 19, 2016https://github.com/PowerShell/PowerShell/issues/2205#issuecomment-248070252
https://github.com/andyleejordan
Andy Jordan (andyleejordan)https://github.com/andyleejordan
on Sep 19, 2016https://github.com/PowerShell/PowerShell/issues/2205#issuecomment-248083412
Mike Richmond (mirichmo)https://github.com/mirichmo
3 - Workinghttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%223%20-%20Working%22
on Sep 29, 2016https://github.com/PowerShell/PowerShell/issues/2205#event-807645905
https://github.com/daxian-dbw
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
on Oct 8, 2016https://github.com/PowerShell/PowerShell/issues/2205#issuecomment-252402700
#2387https://github.com/PowerShell/PowerShell/pull/2387
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 8, 2016https://github.com/PowerShell/PowerShell/issues/2205#event-816993658
https://github.com/vinodc
Vinod Chandru (vinodc)https://github.com/vinodc
on Jan 11, 2017https://github.com/PowerShell/PowerShell/issues/2205#issuecomment-271790518
Andy Jordan (@andschwa)https://github.com/andschwa
Mike Richmond (@mirichmo)https://github.com/mirichmo
#2387https://github.com/PowerShell/PowerShell/pull/2387
https://github.com/mirichmo
Mike Richmond (mirichmo)https://github.com/mirichmo
on Jan 11, 2017https://github.com/PowerShell/PowerShell/issues/2205#issuecomment-272031367
Vinod Chandru (@vinodc)https://github.com/vinodc
offending linehttps://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs#L237
https://github.com/andyleejordan
Andy Jordan (andyleejordan)https://github.com/andyleejordan
on Jan 12, 2017https://github.com/PowerShell/PowerShell/issues/2205#issuecomment-272040823
#1794https://github.com/PowerShell/PowerShell/issues/1794
https://github.com/vinodc
Vinod Chandru (vinodc)https://github.com/vinodc
on Jan 12, 2017https://github.com/PowerShell/PowerShell/issues/2205#issuecomment-272042785
Mike Richmond (@mirichmo)https://github.com/mirichmo
https://github.com/mirichmo
Mike Richmond (mirichmo)https://github.com/mirichmo
on Jan 12, 2017https://github.com/PowerShell/PowerShell/issues/2205#issuecomment-272044650
#1794https://github.com/PowerShell/PowerShell/issues/1794
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/2205
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/2205
Mike Richmond (mirichmo)https://github.com/mirichmo
Area-SideBySiderelated to ability to run PS7 side-by-side with WinPS or different versions of PS7https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Area-SideBySide%22
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
OS-Linuxhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22OS-Linux%22
6.0.0-alpha.11https://github.com/PowerShell/PowerShell/milestone/18
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.