Open PlanetRenox-zz opened 2 years ago
Confirmed on one of the latest 1.0.10 test builds, you can't add a new license in Unity Editor while it's running sandboxed. The same program is also installed outside of the sandbox.
Download link: https://unity.com/download (UnityHubSetup.exe) Link to create a new account: https://id.unity.com Tested on a VM with Windows 10 21H1 x64 Windows Defender with default settings
Long list of SBIE2205 errors:
Unsuccessful workarounds:
BlockNetworkFiles=n
BlockNetParam=n
UnrestrictedToken=y
UnfilteredToken=y
Possible cause: WMI, as mentioned in the log below:
in build 1.0.10 when runnign in App Compartment Mode ImpersonateNamedPipe should work, please try it as soon as the build is out
in build 1.0.10 when runnign in App Compartment Mode ImpersonateNamedPipe should work, please try it as soon as the build is out
Just tested this issue with the final build 1.0.10.
You will receive the following warning: SBIE2213 Windows Credentials cannot be stored in the sandbox
So I added this line in the App Compartment sandbox in order to login correctly:
OpenCredentials=y
After doing that, the personal license is correctly listed and recognized:
EDIT: The ImpersonateNamedPipe issue is still not fixed: same SBIE2205 errors as before.
Not the first program in which I encounter this exception in sandbox.
System.Security.Cryptography.CryptographicException: The interface is unknown.
at System.Security.Cryptography.CngHelpers.OpenStorageProvider(CngProvider provider)
at System.Security.Cryptography.CngKey.Import(ReadOnlySpan`1 keyBlob, String curveName, CngKeyBlobFormat format, CngProvider provider)
at System.Security.Cryptography.CngKey.Import(Byte[] keyBlob, String curveName, CngKeyBlobFormat format, CngProvider provider)
at System.Security.Cryptography.X509Certificates.X509Pal.DecodePublicKey(Oid oid, Byte[] encodedKeyValue, Byte[] encodedParameters, ICertificatePal certificatePal)
at System.Security.Cryptography.X509Certificates.CertificateExtensionsCommon.GetPublicKey[T](X509Certificate2 certificate, Predicate`1 matchesConstraints)
at System.Security.Cryptography.Xml.Utils.GetAnyPublicKey(X509Certificate2 certificate)
at System.Security.Cryptography.Xml.SignedXml.CheckSignature(X509Certificate2 certificate, Boolean verifySignatureOnly)
at Unity.Licensing.EntitlementResolver.Xml.XmlExtensions.ValidateSignature(XmlDocument xmlDoc, X509Certificate2 trustedCertificate, Boolean allowDelegation, String refId)
at Unity.Licensing.EntitlementResolver.Xml.XmlReader`1.Read(Stream stream, Boolean requireSignature, Boolean validateSchema)
at Unity.Licensing.EntitlementResolver.License.UnityLicense.ReadAndParseLicense(Stream licenseStream, X509Certificate2 certificate)
at Unity.Licensing.EntitlementResolver.License.UnityLicense..ctor(String licenseFilePath, X509Certificate2 certificate, Boolean allowDelegation)
at Unity.Licensing.EntitlementResolver.License.UnityLicense.GetLicense(String licenseFilePath, X509Certificate2 lsdCert)
at Unity.Licensing.Client.Services.Helpers.LicenseFilesMapper.MapLicenseFilesToResult(IEnumerable`1 files, Boolean ignoreUlfLicenseFiles)
Trying to open unity in sandboxed mode. Unable to create or add a new license. Nothing Ive tried works.
Steps to reproduce the behavior: Open unity hub. Try to create project.