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
AmazonS3Client constructor in .Net Core throws when running on Service Fabric (windows only) #1097
Comments
Looks like you have uncovered an issue with a new feature that was added to version 3.3.26 of AWSSDK.Core which AWSSDK.S3 uses. I'll take a look at getting that fixed but I believe you can work around the issue now by using version I'll work on getting the fix out for the latest AWSSDK.Core so nobody is forced to use older versions. |
Same on CloudWatch with Core on latest SDK. |
This was resolved in AWSSDK.Core 3.3.27.3. |
Tested with AWSSDK.CloudWatch v3.3.8.4 which has dependency core 3.3.27.3. Still occurs:
Checked properties of awssdk.cloudwatch.dll in use: file version 3.3.8.4. AWSSDK.Core: file version .3.3.27.3. |
re-opening. |
Looking into it |
Hi @monty241 . Thank you for getting back to us. I tried to replicate this scenario by creating a windows service application on .NET461 and tested it against latest Cloudwatch nuget package. I set a profile location that doesnt exist and it resulted in an UnauthorizedAccessException which was caught by the code here and the service application executed successfully. Could you provide more details so that we could repro your issue?
Additionally could you clean all your nuget packages and try rerunning the application? https://stackoverflow.com/questions/30933277/how-to-clear-nuget-package-cache-using-command-line |
Tested on Microsoft .NET 4.7.2, Windows 2012R2 (6.2.9200.0) with all updates, starting from service running as "SYSTEM" account, x64. !! First chance exception handling of type 'UnauthorizedAccessException': Call stack was:
|
When I should add verbose logging please let me know how to enable. |
Could you provide a sample windows service for which you were able to repro this issue? |
Also, could you confirm that you cleaned all your local Nuget packages? |
Closing issue due to lack of activity. Please reopen if you are still facing the same issue. |
I need to upload data to S3 from dotnet core service on Service Fabric cluster.
Expected behavior:
I should be able to use aswsdk.s3 nuget and upload data.
Actual behavior:
The following code throws:
Context
The code only throws when running on windows Service Fabric cluster + dotnet core.
It runs OK in these environments:
My Environment
The text was updated successfully, but these errors were encountered: