Author Topic: v1.9.0 and Web Player  (Read 8962 times)

sberghici

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
v1.9.0 and Web Player
« on: May 16, 2014, 01:29:24 AM »
I've tried 1.9.0 and got the following exceptions when switch platform from PC to Web Player:
 
Assets/TNet/Common/TNTools.cs(11,18): error CS0234: The type or namespace name `NetworkInformation' does not exist in the namespace `System.Net'. Are you missing an assembly reference?
Assets/TNet/Common/TNTools.cs(65,21): error CS0246: The type or namespace name `NetworkInterface' could not be found. Are you missing a using directive or an assembly reference?
Assets/TNet/Common/TNTools.cs(71,28): error CS0246: The type or namespace name `NetworkInterface' could not be found. Are you missing a using directive or an assembly reference?
Assets/TNet/Common/TNTools.cs(11,18): error CS0234: The type or namespace name `NetworkInformation' does not exist in the namespace `System.Net'. Are you missing an assembly reference?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: v1.9.0 and Web Player
« Reply #1 on: May 16, 2014, 03:14:19 PM »
Curious... well, try putting both in #if !UNITY_WEB_PLAYER

sberghici

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: v1.9.0 and Web Player
« Reply #2 on: May 17, 2014, 01:46:02 AM »
Curious... well, try putting both in #if !UNITY_WEB_PLAYER
I tried and got even bigger list of exceptions. Does it work for you? 

Edit: I've tried lots of things suggested at unity forums, like created Pligins folder, copied dll here but no luck. It seems like unity security blocks "system.net.networkinformation" for web player. I've rolled back my project to TNet 1.8 for now
« Last Edit: May 17, 2014, 04:56:33 PM by sberghici »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: v1.9.0 and Web Player
« Reply #3 on: May 17, 2014, 07:04:14 PM »
I've uploaded 1.9.0c that fixes the compile issues. Give it a try, should be fine now.

sberghici

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: v1.9.0 and Web Player
« Reply #4 on: May 24, 2014, 11:35:55 AM »
Thanks Aren it works now!