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

[BUG] Toolbox creates fresh connection for each request #1375

Open
skfd opened this issue Dec 19, 2024 · 1 comment
Open

[BUG] Toolbox creates fresh connection for each request #1375

skfd opened this issue Dec 19, 2024 · 1 comment
Labels

Comments

@skfd
Copy link
Contributor

skfd commented Dec 19, 2024

Describe the bug
Toolbox started popping up login dialog while doing some operations, and after some time this causes a 2FA to pop up. I think CRM is rate limiting the session.

To Reproduce
It's definitely something with my installation, I can reproduce it by just refreshing Plugin Registration Tool 10 times.

Expected behavior
It should not popup 2FA dialogue however long I use Toolbox.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • XrmToolbox Version: 1.2024.9.69
  • Tool version: not a tool issue

Additional context
It's something to do with my job provided computer that limits which paths I am able to write to. I found this in logs. Is this something I can fix?

Microsoft.Xrm.Tooling.Connector.CrmServiceClient	Error	2	12/19/2024 4:44:48 PM  Error occurred in CrmServiceClientTokenCache.AfterAccessNotification(). 
Exception Details : System.UnauthorizedAccessException: Access to the path 'C:\Users\__\AppData\Local\Temp\{25287241-e0ca-4bd0-8b68-030987967f2b}' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at Microsoft.Xrm.Tooling.Connector.CrmServiceClientTokenCache.AfterAccessNotification(TokenCacheNotificationArgs args)
Microsoft.Xrm.Tooling.Connector.CrmServiceClient	Error	2	12/19/2024 4:44:48 PM  Error occurred in CrmServiceClientTokenCache.AfterAccessNotification(). 
Exception Details : System.UnauthorizedAccessException: Access to the path 'C:\Users\__\AppData\Local\Temp\{25287241-e0ca-4bd0-8b68-030987967f2b}' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at Microsoft.Xrm.Tooling.Connector.CrmServiceClientTokenCache.AfterAccessNotification(TokenCacheNotificationArgs args)
Source	: Not Provided
Method	: Not Provided
Date	: 12/19/2024
Time	: 4:44:48 PM
Error	: Error occurred in CrmServiceClientTokenCache.AfterAccessNotification(). 
Exception Details : System.UnauthorizedAccessException: Access to the path 'C:\Users\__\AppData\Local\Temp\{25287241-e0ca-4bd0-8b68-030987967f2b}' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at Microsoft.Xrm.Tooling.Connector.CrmServiceClientTokenCache.AfterAccessNotification(TokenCacheNotificationArgs args)
Stack Trace	: Not Provided
@skfd skfd added the bug label Dec 19, 2024
@MscrmTools
Copy link
Owner

Unfortunately not...

I'm using the user Temp folder, so it's not configurable so far.

This is something I could change for a next release

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