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 dkfister · Apr 21, 2014 at 03:59 PM · c#webplayerdllsystem

Using DLLS in a Webplayer

I have a problem, using DLLS in my Webplayer game. In my Project I have a folder named "Plugins" where DLLS should go, and there the System.Data.dll and System.Web.Services.dll is located.

The result, should be connecting to my online mssql database and returning a value from a table. It does this perfectly in the Editor, but when I run it in Webplayer, nothing happens, I don't even get any errors.

According to the Webplayer log found in the AppData for Unity Webplayers, it says that it loads them if I understand it correctly?

 Non platform assembly: C:\Users\Kevin\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\System.Data.dll (this message is harmless)
 Loading C:\Users\Kevin\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\System.Data.dll into Unity Child Domain
 Non platform assembly: C:\Users\Kevin\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\System.Web.Services.dll (this message is harmless)
 Loading C:\Users\Kevin\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\System.Web.Services.dll into Unity Child Domain

Anyone been out from this problem before? Is there a fix for it?

Comment
Add comment · Show 9
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 Scribe · Apr 21, 2014 at 04:12 PM 0
Share

Do you have unity pro? I have a feeling that dll plugins in webplayer are pro only.

EDIT: according to this - http://docs.unity3d.com/Documentation/$$anonymous$$anual/Plugins.html

"On the desktop platforms, plugins are a pro-only feature. For security reasons, plugins are not usable with webplayers."

though maybe for managed dll's it is different, I'm pretty sure I've used managed libraries on 'desktop platforms'.

avatar image dkfister · Apr 21, 2014 at 04:18 PM 0
Share

According to this fellow, .NET assemblies located in the Plugins folder can be used in Webplayer http://answers.unity3d.com/questions/32017/database-creation-without-dll-file.html

avatar image Scribe · Apr 21, 2014 at 04:39 PM 0
Share

hmm, might be completely incorrect but just looked at an old project of $$anonymous$$e (not for webplayer) but I had to add the dll System.Configuration to get it to build properly, it worked in the editor without it but no the build. Sounds similar to your problem.

avatar image dkfister · Apr 21, 2014 at 04:43 PM 0
Share

$$anonymous$$aybe.. You know where this file is located?

avatar image Scribe · Apr 21, 2014 at 04:47 PM 0
Share

On windows you can find it in:

 Program Files or Program Files(x86)]\Unity\Editor\Data\$$anonymous$$ono\lib\mono\2.0
Show more comments

0 Replies

· Add your reply
  • Sort: 

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

21 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

Related Questions

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

Sending and receiving variable-length arrays to and from DLL 0 Answers

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

WWW Request runs in Editor but not in Webplayer 1 Answer

System.Data.dll Assembly reference problem when built as webplayer 2 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