It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
How should I go about making an application with C# and .NET where, say, on one computer a button is pressed that triggers an event on the other?
I saw this:
Recommended way to communicate between processes running on different computers on the same network
I've never heard of WCF, is that what I should try?
You're question is way to broad however I can give you a brief overview of how WCF (and most client/server apps) work.
You create a WCF service and then you reference the WCF service (in VS right click references then add service reference) inside your client application. The click in the client application will send a message to the WCF service that will deal with that message.
As mentioned the getting started guides are pretty decent. The WCF Test Client is a great debugging tool as well. If you open the Visual Studio command prompt and type wcftestclient, it will pop up.
Here are some articles that might be helpful:
http://msdn.microsoft.com/en-us/netframework/aa663324.aspx
http://msdn.microsoft.com/en-us/library/dd936243.aspx
http://msdn.microsoft.com/en-us/library/aa751792.aspx
http://blogs.msdn.com/b/tess/archive/2009/01/09/net-hang-my-application-hangs-after-i-called-my-wcf-service-a-couple-of-times.aspx
http://blogs.msdn.com/b/wenlong/archive/2009/07/26/wcf-4-higher-default-throttling-settings-for-wcf-services.aspx
http://merill.net/2008/10/wcf-performance-optimization-tips/
Yes, I would use WCF, because I know it's pretty easy to get a simple project running with WCF, and that will give you confidence to build on it. (Having said that, I dont have much experience with any other networking technologies.)
Start with this Getting Started tutorial.
Then if you have more specific questions, ask them.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a WCF service that hosted in windows services.
I'm trying to call the service from the code, when i'm in visual studio everything works fine, but if i'm closing visual studio and run the application from bin/debug/MyApp.exe i'm getting an exception )it can't find the service).
what should I do in order to call window service?
Thank you all...
Fix your programming error.
Simple, isn't it?
THat is about the only answer that is suitable for your question - you totally fail to give even a baseline Explanation.
I would look into
Errors that happen in in the Service. Maybe the WCF Service is NOT hosted when starting outside visual Studio?
Reading skills - targttted epecially at the exception you get, which seriously also includes a stack trace.
Getting some nice Story telling skills. We all like you to tell nice stories, for example how the servie is configured, the relevant lines of code where you actually set it up.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
we are in the process of determining what would be the best technology to write our signage player . Although we are a C# house with some experience in Java, all the talk has been about Java and Mono. Also the platform we are going to build on would be a linux box.
The player has to be very intelligent and support scheduling, content change triggers by external applications (by web services), time synchronization of content, content show in different portions of the screen, video/live streamed feed etc.
We will also need to create a designer to allow the design team to create webgl content.
There is some OpenGl experience in the company so we could leverage this.
Would this be a good choice?
JD
That would be an excellent choice IF and only IF you have a good grasp on Javascript or your timeline isn't too tight in case you don't dominate Javascript. If going on a linux box, chances are you're better off with a custom build of Firefox or Chromium running your app alone without the browser parts (menus, tabs, etc).
My team here is working with HTML5+Javascript+Canvas/WebGL on the client side almost exclusively now because it is very fast to develop and needs almost no setup.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have create a web site and I need to read data which is created by rfid reader.
this device has some dll which can be use in windows application.
I want to know that is there any way to use those dll in my site in order that I read data from RFID reader? if not is there any way to use that device in web site?
Reading dll's on a clients machine is seen as big security risk and there is not really allowed. It is possible to use ActiveX controls (basically dll's compiled into cab files) which the user can then enable and download, this then will allow you to talk to the ActiveX control which talks to the dll's, which talks to the RFID.
I would rather suggest you use something like Silverlight with out of browser mode, which you can run on the client machine with elevated privilages, then you can talk to com object.
A much better way to go.
ASP.NET application is Server side application with specific security restrictions applied.
So basically, as the question is very generic so my answer too: you can do it, it's enough to be sure that your architecture fits yuor ASP.NET security/permission requirements.
Cause I immagine DLL is kind of COM component where you push signals and read alphanumeric characters specifying your RFID (passive or active) identifier.
Regards.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
This'll be my second time doing a CMS and Inventory Management app for my client. This particular client wants it all to be online. Instead of a desktop app, like I did with my previous client. Which is fine I guess, however I'm a little concerned about the security stuff... What if it gets hacked? He basically wants to be able to manage, view, create new and edit existing orders via his website from an "Admin" type interface after he logs in as an Admin, so obviously I'm going to need Roles.
But is this common or normal practice? The website isn't an intranet, or hosted locally, it's remotely hosted.
Yes, its very normal all of my websites have admin interfaces that allow access to just about everything with the proper credentials.
A word of caution however: If you are not sure what you are doing, I'd be very careful about accepting/storing credit cards or other sensitive information(SSN's medical data etc) . Its easy to screw up, and if that stuff get hacked, you may have some serious legal problems to deal with. Consider hiring someone with the right experience to help with security.
Everything you listed is normal to a Web application, whether it's hosted locally or on an intranet, or hosted remotely.
What you need is probably already implemented in other online CMSs (see Orchard CMS), but if you want to roll your own CMS, it's very easy to use ASP.NET MVC; it also has easy integration with Forms Authentication for ASP.NET.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want to make a P2P Chat client, all I want it to do is to be able to send text across to each peer.
I looked at a Chat Client from this example:
http://www.geekpedia.com/tutorial239_Csharp-Chat-Part-1---Building-the-Chat-Client.html
And am wondering if it can be converted to a p2p program?
If so how can it be and can someone provide some code as it will help a lot.
If it can't how can I make a really simple p2p chat program?
Codes and examples will be very helpful.
btw I did look at this article, but it didn't help me:
http://msdn.microsoft.com/en-us/library/ms751502.aspx
I did a similar project once, only using bluetooth rather than Internet.
Mine wasn't chat so much as IM, since it only allowed for two people to converse, but we got it working by using the technique in brydgesk's edit and having the client ('talker') and server ('listener') together in the same application, in such a way that the server only puts out received messages to the local client, rather than rebroadcasting to all connections.
Hope this little bit is helpful, I don't think this is really the right place to help you write the entire application.
For P2P, you need to use UdpClient instead of TcpClient. Google should help you from here :)
Edit: Sorry, I made false assumptions in this answer. If you want to continue using TCP, that's just fine. Instead of creating a separate server application, add the server code to your client application, so that either the sender or receiver acts as the server.
If it is to be done on the intranet, why not use WCF named pipes?