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

Error: The type 'FileIOPermission' exists in both, System.Security.Permissions and mscorlib #244

Closed
scrapHandler opened this issue Dec 20, 2023 · 3 comments

Comments

@scrapHandler
Copy link

scrapHandler commented Dec 20, 2023

Hi,
after installing Amazaon GameLift Server SDK 5.1.0, I get the error:

Library\PackageCache\com.unity.services.core@1.12.0\Editor\Core\Configuration\ProjectConfigurationBuildInjectorWithPlayerProcessor.cs(51,50): error CS0433: The type 'FileIOPermission' exists in both 'System.Security.Permissions Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

System.Security.Permissions Version=7.0.0.0 is used by Amazaon GameLift Server SDK 5.1.0.
mscorlib Version=4.0.0.0 seems to be part of Unity or .Net
com.unity.services.core@1.12.0 is used by "com.unity.services.cloud-diagnostics 1.0.6" and "com.unity.purchasing 4.10.0"

What can I do? (Without removal of cloud-diagnostics and purchasing package)

@wenxiul
Copy link
Contributor

wenxiul commented Dec 20, 2023

Hi, @scrapHandler
are you using a compatible Unity editor (2021.3 LTS, 2022.3 LTS)? Please have Windows Dedicated Server Build Support module installed by going to Unity Hub -> Installs -> click on the gear button on the right of your editor -> Add modules and see if the issue resolves!

@scrapHandler
Copy link
Author

Hi @wenxiul , thx for your answer!

I'm using Unity 2022.3 LTS and want to build for Linux Server.
And I have all modules installed, including "Windows Dedicated Server Build".

But this did not solve my problem. What I did was, to setup it on my own, with downloading the required dll's from nuget and for System.Security.Permissions.dll I unchecked "Auto Reference", which did the trick.

@wenxiul wenxiul closed this as completed Dec 28, 2023
@JonghaShin
Copy link

Hello, I got a same problem.

How can I fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants