Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by khos85 · Jun 15, 2014 at 03:57 PM · build errorassemblywindows 8

Why is Assembly-UnityScript.dll failing at windows certifiction?

Hi,

I am building a game to Windows store, I choose x86 no ARM in the Visual Studio build configuration, using Unity 4.5 to build the Visual Studio C# solution. All is well, I can even run the game from the Visual Studio IDE but when I use the windows certification toolkit it fails on:

FAILED Supported APIs • Error Found: The supported APIs test detected the following errors: ◦API System.IO.FileStream in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.IO.FileInfo in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.Threading.ThreadStart in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.IO.File in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.IO.FileInfo.#ctor(System.String) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.IO.FileInfo.get_Exists in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.IO.FileStream.Seek(System.Int64,System.IO.SeekOrigin) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.IO.FileStream.Read(System.Byte[],System.Int32,System.Int32) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.IO.FileStream.Write(System.Byte[],System.Int32,System.Int32) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.Threading.ThreadStart.#ctor(System.Object,System.IntPtr) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.Threading.Thread.#ctor(System.Threading.ThreadStart) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.Threading.Thread.Start in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.Threading.Thread.Sleep(System.Int32) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.Threading.Thread.Abort in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API. ◦API System.IO.File.ReadAllBytes(System.String) in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API.

Every error relates to Assembly-UnityScript.dll... if I remove this assembly the certification passes but then I do not see any menus in the game... so I need this .dll. What do I do to make it pass the certification when submitting to windows store?

This seems a bit odd, I mean it build s and runs local! but why fail it there?

Cheers, Kim

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image khos85 · Jun 16, 2014 at 05:17 PM 0
Share

Bump, no one care to answer? or have any ideas?

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by scottharber · Jun 17, 2014 at 04:53 PM

It's because you're using the FileStream class. The wording in the error message is a bit tricky, it's caught me out before too.

The supported APIs test detected the following errors: ◦API System.IO.FileStream in MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089 is not supported for this application type. Assembly-UnityScript.dll calls this API.

FileStream isn't supported for Windows 8 Store apps. If you're using FileStream to do game saves or to save config data, use PlayerPrefs instead (it's a form of file i/o with a cross-platform wrapper around it).

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image khos85 · Jun 18, 2014 at 10:03 PM 0
Share

$$anonymous$$any thanks the info, I have searched through all my .JS or . CS script but cannot find any reference to this.. I am using PlayerPrefs so it should be ... how do I know where in my source the problem lies, the above info foes not mejntion at all of the location/script in question which sucks?

avatar image Bunny83 · Jun 19, 2014 at 12:09 AM 0
Share

All your (unityscript) scripts get compiled into this assembly, so the source of the error is specified as specific as it can get.

$$anonymous$$eep in $$anonymous$$d that it doesn't matter if you actually use a certain script / class or not. It's compiled into your assembly anyways. So you have to check all scripts you have inside of your project.

You can use ILSpy to decompile your assembly into C# and search for references to FileStream and / or FileInfo

avatar image khos85 · Jun 19, 2014 at 06:45 AM 0
Share

Ok thanks Bunny83, interesting is that I have windows 8 and I can run it fine on my own machine, only the certification process complains about these...

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity fails to load System.Net.Http script assembly 0 Answers

4.6 UI Image bug on some Windows 8 and 8.1 0 Answers

Failed loading fbx Importer 3 Answers

cant run the apk in my android phone 0 Answers

Unity web player setup crashing 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges