• 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 Zero_Zagarth · Jan 23, 2014 at 11:35 PM · errorwindowsconsolecompilephone

Error to compile on windows phone plataform

Hi! I'm trying to compile a new project con WP8 plataform. I have the Unity Pro and WP SDK. Other projects compile succefully, but when I try to compile this project the console throw this error.

Error building Player: Exception: Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.SharpZipBaseException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.SharpZipBaseException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: method System.Void System.ApplicationException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.SharpZipBaseException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.BZip2.BZip2Exception::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.BZip2.BZip2Exception::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: type System.Security.Cryptography.RijndaelManaged doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Encryption.ZipAESTransform::.ctor(System.String,System.Byte[],System.Int32,System.Boolean). Error: type System.Security.Cryptography.RijndaelManaged doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Encryption.ZipAESTransform::.ctor(System.String,System.Byte[],System.Int32,System.Boolean). Error: method System.Void System.Security.Cryptography.RijndaelManaged::.ctor() doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Encryption.ZipAESTransform::.ctor(System.String,System.Byte[],System.Int32,System.Boolean). Error: type System.Security.Cryptography.CipherMode doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Encryption.ZipAESTransform::.ctor(System.String,System.Byte[],System.Int32,System.Boolean). Error: method System.Void System.Security.Cryptography.SymmetricAlgorithm::set_Mode(System.Security.Cryptography.CipherMode) doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Encryption.ZipAESTransform::.ctor(System.String,System.Byte[],System.Int32,System.Boolean). Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.GZip.GZipException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.GZip.GZipException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.LZW.LzwException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.LZW.LzwException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Tar.TarException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Tar.TarException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Tar.InvalidHeaderException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Tar.InvalidHeaderException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: method System.Text.Encoding System.Text.Encoding::get_ASCII() doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Tar.TarArchive::ExtractEntry(System.String,ICSharpCode.SharpZipLib.Tar.TarEntry). Error: method System.Text.Encoding System.Text.Encoding::get_ASCII() doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Tar.TarArchive::WriteEntryCore(ICSharpCode.SharpZipLib.Tar.TarEntry,System.Boolean). Error: method System.String System.Environment::get_UserName() doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Tar.TarHeader::set_UserName(System.String). Error: method System.Void System.IO.File::SetLastWriteTime(System.String,System.DateTime) doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Zip.FastZip::ExtractFileEntry(ICSharpCode.SharpZipLib.Zip.ZipEntry,System.String). Error: method System.Text.Encoding System.Text.Encoding::GetEncoding(System.Int32) doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.String ICSharpCode.SharpZipLib.Zip.ZipConstants::ConvertToString(System.Byte[],System.Int32). Error: method System.Text.Encoding System.Text.Encoding::GetEncoding(System.Int32) doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Byte[] ICSharpCode.SharpZipLib.Zip.ZipConstants::ConvertToArray(System.String). Error: method System.Int32 System.Globalization.TextInfo::get_OEMCodePage() doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Zip.ZipConstants::.cctor(). Error: method System.DateTime System.IO.FileSystemInfo::get_CreationTimeUtc() doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at ICSharpCode.SharpZipLib.Zip.ZipEntry ICSharpCode.SharpZipLib.Zip.ZipEntryFactory::MakeFileEntry(System.String,System.Boolean). Error: method System.DateTime System.IO.FileSystemInfo::get_LastAccessTimeUtc() doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at ICSharpCode.SharpZipLib.Zip.ZipEntry ICSharpCode.SharpZipLib.Zip.ZipEntryFactory::MakeFileEntry(System.String,System.Boolean). Error: method System.DateTime System.IO.FileSystemInfo::get_LastWriteTimeUtc() doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at ICSharpCode.SharpZipLib.Zip.ZipEntry ICSharpCode.SharpZipLib.Zip.ZipEntryFactory::MakeFileEntry(System.String,System.Boolean). Error: method System.DateTime System.IO.FileSystemInfo::get_CreationTimeUtc() doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at ICSharpCode.SharpZipLib.Zip.ZipEntry ICSharpCode.SharpZipLib.Zip.ZipEntryFactory::MakeDirectoryEntry(System.String,System.Boolean). Error: method System.DateTime System.IO.FileSystemInfo::get_LastAccessTimeUtc() doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at ICSharpCode.SharpZipLib.Zip.ZipEntry ICSharpCode.SharpZipLib.Zip.ZipEntryFactory::MakeDirectoryEntry(System.String,System.Boolean). Error: method System.DateTime System.IO.FileSystemInfo::get_LastWriteTimeUtc() doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at ICSharpCode.SharpZipLib.Zip.ZipEntry ICSharpCode.SharpZipLib.Zip.ZipEntryFactory::MakeDirectoryEntry(System.String,System.Boolean). Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Zip.ZipException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: type System.Runtime.Serialization.SerializationInfo doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Void ICSharpCode.SharpZipLib.Zip.ZipException::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext). Error: method System.Int32 System.String::Compare(System.String,System.String,System.Boolean,System.Globalization.CultureInfo) doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Int32 ICSharpCode.SharpZipLib.Zip.ZipFile::FindEntry(System.String,System.Boolean). Error: method System.Text.Encoding System.Text.Encoding::get_ASCII() doesn't exist in target framework. It is referenced from ICSharpCode.SharpZipLib.dll at System.Int32 ICSharpCode.SharpZipLib.Zip.ZipFile::WriteCentralDirectoryHeader(ICSharpCode.SharpZipLib.Zip.ZipEntry).

Can somebody help me?

Thanks!

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Chanyutx10 · Mar 10, 2014 at 01:13 PM

In my Unity project, I had ICSharpZipLib DLL in Plugin folder. I got the same problem. Actually I still cannot find out the cause of this problem. But I have a workaround to perhaps fix this problem. I added ICSharpZipLib DLL and wrote all functions that do the compression/extraction in my Visual C# project (which is created by Unity when you build the game for WP8 platform). Then I created some delegates that I can call those functions inside my Unity project. So I can remove ICSharpZipLib DLL from my Unity Project. Hope this help.

Comment
Add comment · 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

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

19 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

Related Questions

How to fix Unity compiler error when building WP8.1 game? 2 Answers

Why am I getting this error exporting to win 8 store? 0 Answers

compile error. does not denote a valid type. 3 Answers

windows 8.1, won't export out to win8 1 Answer

"Invalid AABB" error whenever rigidbody moves 7 Answers


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