- Home /
BCE0021 when using C# mono DLL with JS Script (Unity3)
Hi there,
We're trying to upgrade to Unity 3 and are encountering a problem with an external mono c# dll we're importing into the project. We have the DLL in the scripts folder and can reference it successfully from all of our C# scripts.
However the JS scripts fail to compile with BCE0021.
I have seen some discussion on the internet that this is a bug. Can you confirm either way, and if so, if there is a fix or workaround otherwise we're going to have to stick with Unity 2.6 for the moment.
Many thanks, Andy
Which DLL, what is the exact error the javascript fails with?
Hi there - it's a custom c# mono DLL that we have created - DataDll.dll. This is causing the following: BCE0021: Namespace 'DataDll' not found, maybe you forgot to add an assembly reference?
This works in all our C# unity scripts, just not the JS ones. We are placing it in the Scripts folder, which worked great for unity 2.6.
Thanks.
Your answer
![](https://koobas.hobune.stream/wayback/20220613081248im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Public Class Error 1 Answer
Can I access a dll plugin from Javascript or only from c#? 3 Answers
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Script acts differently since upgrade to Unity 3 5 Answers
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers