Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
fancyfennec's avatar
fancyfennec
Explorer
7 years ago

Latest "Oculus Integration 1.32" - 'System.Security' error. Can't use headset at all.

Hi,

downloaded latest "Oculus Integration" I can't run anything in Unity 2018.3.0f2 or 2018.2.19f1 I'm getting this error: 

Assets\Oculus\Avatar\Scripts\OvrAvatarSkinnedMeshRenderPBSV2Component.cs(4,23): error CS0234: The type or namespace name 'Policy' does not exist in the namespace 'System.Security' (are you missing an assembly reference?)

This is from an empty scene, just loading the new "oculus integration' package. Updated oculus to all latest updates/firmware. Nothing will run because of this error. Not even the demo scenes. 

3 Replies

Replies have been turned off for this discussion
  • I had the same issue, when I upgraded to Unity 2018.3 hopefully they fix this soon. 

    I fixed it by actually opening the OvrAvatarSkinnedMeshRenderPBSV2Component.cs file that gives the error and removing the import and I think it is safe to do so since that import is not being used throughout the file. 
  • I fixed this issue by changing the API Compatibility Level to .NET 4.x.
  • I fixed this by commented out the import statement in that file. It sounds like the right solution is what MikeSwanson posted above.