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 Alienjesus · Mar 14, 2011 at 03:59 PM · errorbuildreferencedll

Can't build error - dll is not allowed to be included or could not be found.

I'm trying to build and run my project but I keep getting errors. I believe the errors are related to the script I'm using called Uniducial, which references a program called reacTIVision to track markers with a camera. The error I'm getting is something to do with Unity Editor and DLLs. I'm way out of my depth here. Help!? This is the error:

ArgumentException: The Assembly UnityEditor is referenced by UniducialLibrary. But the dll is not allowed to be included or could not be found. UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2 cache) (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/AssemblyHelper.cs:52) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2 cache) (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/AssemblyHelper.cs:55) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch) (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/AssemblyHelper.cs:86) UnityEditor.HostView:OnGUI()

I also get these errors, but I think they're related to the above one:

Error building Player: Extracting referenced dlls failed. UnityEditor.HostView:OnGUI()

And:

Exception: Error building Player: Extracting referenced dlls failed. UnityEditor.BuildPlayerWindow.BuildPlayerWithDefaultSettings (Boolean askForBuildLocation, BuildOptions forceOptions) (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/BuildPlayerWindow.cs:341) UnityEditor.BuildPlayerWindow.GUIBuildButtons (Boolean enableBuildButton, Boolean enableBuildAndRunButton, Boolean canInstallInBuildFolder) (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/BuildPlayerWindow.cs:942) UnityEditor.BuildPlayerWindow.ShowBuildTargetSettings () (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/BuildPlayerWindow.cs:923) UnityEditor.BuildPlayerWindow.OnGUI () (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/BuildPlayerWindow.cs:697) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/GUI/DockArea.cs:213) UnityEditor.HostView.Invoke (System.String methodName) (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/GUI/DockArea.cs:206) UnityEditor.HostView.OnGUI () (at C:/BuildAgent/work/6bc5f79e0a4296d6/Editor/Mono/GUI/DockArea.cs:107)

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Alienjesus · Apr 24, 2011 at 04:18 PM

In the end updating to a new version of some open source .NET code I was using sorted the problem out.

Comment
Add comment · Show 5 · 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 SantiN90 · May 09, 2011 at 07:57 PM 1
Share

it's a shame people that come up with solutions never specify exactly how they solved it.. (:

avatar image Ankita Shah · Jun 23, 2015 at 12:49 PM 0
Share

Can you please let me know, how did you solve this error. I'm facing same issue with one of my dll. I'm using latest unity

avatar image jcowlesg · Oct 13, 2017 at 06:33 PM -1
Share

For me, the fix was simply changing .NET from 2.0 (subset) to .NET 2.0.

avatar image Bunny83 jcowlesg · Oct 13, 2017 at 09:49 PM 1
Share

$$anonymous$$isleading, you just bumped such an old question with a comment that is clearly not related to the question. The problem is that he has a reference to the UnityEditor namespace in any of his runtime code which is not allowed as the UnityEditor namespace can only be used inside the Unity editor. Changing the .NET compatibility level certainly won't fix that issue.

That means if you had build problems it clearly wasn't the same problem as the one presented in this question. Therefore your comment is completely misplaced here and you necro posted and bumped this question for no reason.

If you have a problem ask your own question.

avatar image CraftedGaming Bunny83 · Jan 22, 2021 at 03:07 AM 0
Share

Thank you Bunny83. This is the solution I needed. Removing UnityEditor namespace in my assembly worked.

avatar image
2

Answer by QQasker · Apr 15, 2011 at 04:16 PM

you can try: file/buildsettings/playersettings/othersettings change the .net2.0 subset to .net2.0 good luck.

Comment
Add comment · Show 4 · 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 Alienjesus · Apr 19, 2011 at 01:26 PM 0
Share

Thanks for the suggestion, but it didn't work. I found some people who say it has something to do with Path 1.0 in Unity 3D, but unfortunately I don't have a clue what that means, as I didn't write that script :(

avatar image Arcanor · Jun 03, 2013 at 08:18 PM 0
Share

This worked for me, thanks! :)

avatar image Rubik · Jun 04, 2013 at 05:57 AM 0
Share

This worked for me as well, thanks a lot!!!

avatar image Rubik · Jun 04, 2013 at 05:59 AM 0
Share

By the way, I used System.Windows.Forms.dll which is included in .net framwork 2.0, so this worked for me.

avatar image
0

Answer by haico1992 · Oct 29, 2014 at 01:58 AM

Turn off Mono, it turn out that some of my unused dll files was being used by Mono, so Unity can't delete it. Hope it work out for you

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.

Follow this Question

Answers Answers and Comments

7 People are following this question.

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

Related Questions

Error Building Player: Extracting dlls 1 Answer

DLL build issues with Unity 3 1 Answer

.DLL can't build for Windows Standalone. 0 Answers

Can't export game 3 Answers

Distribute terrain in zones 3 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