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 z.sebastian · Apr 27, 2014 at 10:56 AM · c#rpcwcf

WCF problem in Unity

Hello, we are trying to use IPC 's to connect our game logic with Unity (using unity as nothing but a rendering engine). So far we're only proofing the concept but we've hit an error.

We get this exception from Unity:

InvalidOperationException: Channel type IDuplexSessionChannel is not supported.

 public class NewBehaviourScript : MonoBehaviour 
 {
     DataWriter _writer;

     void Start () 
     {
         _writer = new DataWriter(); //EXCEPTION THROWN HERE
     }
 
     // Update is called once per frame
     void Update () 
     {
         int[] ent = reader.Reader.GetNewEntities();
     }
 }    

We have a c# library that we've tried compiling both in VS2012 (with .net 3.5 and 4.5) as well as in mono (the same distribrution as Unity uses):

 public class DataWriter
 {
     ChannelFactory<IDataWriter> _pipeFactory;
     IDataWriter _pipeProxy;

     public DataWriter()
     {
         _pipeFactory =
             new ChannelFactory<IDataWriter>(
                 new NetNamedPipeBinding(),
                 new EndpointAddress("net.pipe://localhost/PipeDataWriter"));

         _pipeProxy = _pipeFactory.CreateChannel();
     }

     public IDataWriter Writer
     {
         get
         {
             return _pipeProxy;
         }
     }
 }

When running code that does the same thing (creates a new DataWriter) from VS2012, we don't get the exception at all. Is there a workaround to this and/or is there another way to achieve essentially the same thing. What we want is a simple database holding that a game logic client writes to and that we can read from in Unity.

Comment
Add comment · Show 4
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 boozzz · Jun 05, 2014 at 06:42 AM 0
Share

Hi, I am having the exact same problem. Did you find a solution, yet? Thank you!

avatar image CharlieBrown · Jul 29, 2015 at 08:56 AM 0
Share

I have exactly the same problem. I think that I am using the same example. Have you got a solution? What about you boozzz?

avatar image Polymo · Jul 29, 2015 at 09:41 AM 0
Share

did you copy the related mono dll into a plugins directory in your project? If i remember correctly, i have had a similar problem which was resolved that way.

avatar image CharlieBrown · Jul 29, 2015 at 10:08 AM 0
Share

Yes, I have a lot of problems with the right dll( I have to load it from:C:\Program Files (x86)\Unity\Editor\Data\$$anonymous$$onoBleedingEdge\lib\mono\gac\System.Service$$anonymous$$odel\3.0.0.0__b77a5c561934e089). Once its loaded without problems ( if you choose another one wont work), appears the message of incomptibility

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

22 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

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Network.Instantiate doesn't update in Hierarchy? 0 Answers

Custom Object Visibility (UNet) 0 Answers

How can I find the source of what is calling an InvokeRPC method from Network Behaviour? 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