-
Notifications
You must be signed in to change notification settings - Fork 300
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
Assembly loading - PlatformNotSupportedException #761
Comments
Hi @Benjiinator Is it possible to wrap a repro application and upload it here to take a closer look? |
I will attempt creating one and get back to you. |
Hi @cheenamalhotra When publishing the exe itself i used the following settings:
|
Hi @Benjiinator If you specify "RuntimeIdentifier" in your I now see correct DLL being referenced in |
After setting the "RuntimeIdentifier", cleaning, rebuilding and publishing the application the issue is still present. |
This resolved my issue. Many thanks for the help - it is much appreciated. |
After implementing your solution i now am getting the following error: "Unable to load DLL 'Microsoft.Data.SqlClient.SNI.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)" when i attempt running it on my production environment. |
Hi @Benjiinator We depend on native runtime library "Microsoft.Data.SqlClient.SNI.dll" which could usually be found on runtimes directly from where all runtime DLLs are loaded. If you haven't provided Execute permissions there (common possibility in Production env), it might be the reason your application will have issues. Please take a look at #385 (comment) and related discussion for more details. |
I'm not quite sure how to proceed with this issue, my application is not running on iis - it is a windows service running on an administrator account. |
Runtime native DLLs are fetched from NuGet Cache location in .NET Core, so you will need to verify permissions to that folder too. |
A NuGet cache is not present on my production environment - i looked for it under "%localappdata%" + "/NuGet/Cache" but the NuGet folder is not present. |
Hi @Benjiinator You may find your NuGet cache location by running this tool and verify if you have required permissions: |
After running the tool i got found out the following:
|
Any ideas what else could be wrong when the cache locations either does not exist on the production environment or exists and has the proper permissions? |
Any updates on this issue? - it is the last thing keeping us from fully migrating to .Net Core. |
@cheenamalhotra After upgrading from .Net Core 3.1 to .Net 5.0 the issue disappeared. |
I am in the middle of migrating a large project from .net framework -> .net core 3.1 and during the process i am encountering "Microsoft.Data.SqlClient is not supported on this platform".
My project solution consists of the following:
I have read the FAQ point 11 which refers to what sounds like my problem - however, i am still oblivious as to how i am to solve the problem.
The text was updated successfully, but these errors were encountered: