Title: System.ArgumentException: Illegal characters in path · Issue #2376 · pythonnet/pythonnet · GitHub
Open Graph Title: System.ArgumentException: Illegal characters in path · Issue #2376 · pythonnet/pythonnet
X Title: System.ArgumentException: Illegal characters in path · Issue #2376 · pythonnet/pythonnet
Description: Environment Pythonnet version: 3.0.3 Python version: 3.10.11 Operating System: Windows 10 .NET Runtime: 4.5 Details Trying to load DLL using AddReference. import clr clr.AddReference("C:\MyProject\TestFolder_Dependencies\MyDLLProject\Tes...
Open Graph Description: Environment Pythonnet version: 3.0.3 Python version: 3.10.11 Operating System: Windows 10 .NET Runtime: 4.5 Details Trying to load DLL using AddReference. import clr clr.AddReference("C:\MyProject\...
X Description: Environment Pythonnet version: 3.0.3 Python version: 3.10.11 Operating System: Windows 10 .NET Runtime: 4.5 Details Trying to load DLL using AddReference. import clr clr.AddReference("C:\MyPro...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/2376
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"System.ArgumentException: Illegal characters in path","articleBody":"### Environment\r\n\r\n- Pythonnet version: 3.0.3\r\n- Python version: 3.10.11\r\n- Operating System: Windows 10\r\n- .NET Runtime: 4.5\r\n\r\n### Details\r\n\r\n- Trying to load DLL using AddReference. \r\n\r\nimport clr\r\nclr.AddReference(\"C:\\MyProject\\TestFolder\\_Dependencies\\MyDLLProject\\Test.TA.MyVersion.Test.dll\")\r\n \r\nSystem.ArgumentException: Illegal characters in path.\r\n at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)\r\n at System.IO.Path.Combine(String path1, String path2)\r\n at Python.Runtime.AssemblyManager.\u003cFindAssemblyCandidates\u003ed__15.MoveNext()\r\n at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)\r\n at Python.Runtime.AssemblyManager.LoadAssemblyPath(String name)\r\n at Python.Runtime.CLRModule.AddReference(String name)\r\n\r\n\r\nDLL is not a new implementation. Same DLL and same path was working fine with python 3.7 and PythonNET 2.4.0. This issue started happening when we upgraded python and Pythonnet versions. \r\n","author":{"url":"https://github.com/manju1847","@type":"Person","name":"manju1847"},"datePublished":"2024-05-07T20:30:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/2376/pythonnet/issues/2376"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f6891ac6-a257-81ed-2207-c5a7e98d6abd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D55A:3BF22F:12A60D4:1A22B8C:6970CC8D |
| html-safe-nonce | 51ebb611e157b9a9986c59fa7194fb73e46155b324142dc1b3b019b59aff1fb7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTVBOjNCRjIyRjoxMkE2MEQ0OjFBMjJCOEM6Njk3MENDOEQiLCJ2aXNpdG9yX2lkIjoiODY3MTE5NzQ3NTI0ODMyNzgyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d705961918c2f39008f823787b8ea322599f7b4e25326bea5d1982a732b9c4fa |
| hovercard-subject-tag | issue:2284176512 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pythonnet/pythonnet/2376/issue_layout |
| twitter:image | https://opengraph.githubassets.com/81105175b0139a80a6092502bac2d1ae2d0acb5bf2c9722bc063ff0487f9b21d/pythonnet/pythonnet/issues/2376 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/81105175b0139a80a6092502bac2d1ae2d0acb5bf2c9722bc063ff0487f9b21d/pythonnet/pythonnet/issues/2376 |
| og:image:alt | Environment Pythonnet version: 3.0.3 Python version: 3.10.11 Operating System: Windows 10 .NET Runtime: 4.5 Details Trying to load DLL using AddReference. import clr clr.AddReference("C:\MyProject\... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | manju1847 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 721764876e433c894814212f8100f6610f1dde78a987acc2e385d8be8e170e9c |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6ff3d08f4ee1c3f89ebedf4df8fc8fe851190294 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width