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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by dkely · Jun 19, 2014 at 09:44 AM · webplayerdll

Web build System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.

I am upgrading my request for help on this forum: http://forum.unity3d.com/threads/web-build-compiler-error.192090/

The problem is I cannot add one of my library's to the project.

It is compiled with .Net3.5 and only references System and two utility libraries(which themselves only reference system and are .Net3.5 compiled). I can build for stand alone fine but switching to web breaks it. I tried 2.0 but there are so many extension methods, there was no easy way to test that. Hopefully not the answer as i will have to re-wright a lot!

Any other suggestions? Went through two pages of Google results but most people were simply using the wrong .Net.

I had another very similar error message that was caused by not including some of the referenced dll's in my main dll. Sure that is not the case this time.

Update:

Isolated each file until i found the one that caused the issue. I have a enum.cs file with a list of enums and at the bottom this class and extension method:

  public static class enumExtensions
     {
         public static string DatabaseName(this MySystem System)
         {
             switch (System)
             {
                 default: return "null";
             }
         }
     }

Cannot figure for the life of me why that is an issue. Any suggestions?

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Wiki

Answer by dkely · Jul 02, 2014 at 03:57 PM

I added this to the extension method file:

 namespace System.Runtime.CompilerServices
 {
     public class ExtensionAttribute : Attribute { }
 }

...and after that all my sins were forgiven and all was right in the world of mortals.

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
avatar image
0

Answer by nfbayboy · May 29, 2015 at 09:12 AM

I have the same error with importing an asset. This was my fix:

Select: File

Build Settings

Player Settings (button at the bottom of the opened window)

Check the inspector and select Other Settings

Under Optimization, my setting for API compatibility level was set to .NET 2.0 Subset

I changed it to .NET 2.0

That's it, this worked for me.

Comment
Add comment · Show 1 · 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 ly420785143 · Oct 25, 2016 at 04:15 AM 0
Share

You are right , Thank you very much !

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

23 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 avatar image

Related Questions

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

Webplayer includes some DLL's for no apparent reason 1 Answer

Using DLLS in a Webplayer 0 Answers

System.CodeDom in Webplayer? 0 Answers

Error launching Unity Player: failed to load dll 0 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