I am developing a browser based application which will read RFID whose driver is stored on the client machine on specific location say c:\RFIDReader.exe.
When this application will run it will return the id number as output.
I am able to read the output if I run this application on the server machine (So far I have only tried in debug mode).
But the actual problem is this application will be running on the client machine and the device (scanner) will attach to the client machine.
I am not able to figure it out how can I do that because on the client machine the only browser is the mediator talking to the server.
I am sure this is possible because there is lot of websites which accesses their service application running on client machine for example screanleap.com
Anyone can suggest me what can I do to access the RFIDReader.exe and get the output back and send it to the server.
Im not sure how screanleap works but I would think is the same as teamviewer. In the link I see
a quick one-time download may be required
This suggest that the client machine have a client made by screanleap running that will communicate with the server.
I would suggest making a client app that will launch RFIDReader.exe and send the info to server.
Related
I am develop a ASP.NET (SOAP) web service for print KOT/BOT print outs . I am using "PrintDocument" class for handle print jobs and the printer is Epson TM U220 network printer. The problem is when calling the print web method sometimes its generate DUPLICATE print outs. But according to my system logs, from the web method call print function only onetime, but from the Printer (Epson TM U220) generate same print out twice. Also this not happening every time. We are also unable figure out in which point this issue is occur.
Also this problem not occurring in our office testing environment. This happening our one client site only. Customer complain time to time, system generate DUPLICATE KOT/BOT printouts. And also their not using dedicated server PC for the IIS server and SQL server database. Their using standard shared PC for system. So is this a problem of the web service, IIS server or the Hardware (System PC or LAN Network communication between PC and the Printer)?
By the way is this AutoCutter or not? Epson has a "Serial emulation driver" that makes a USB printer act like it's on a real serial port. Then you can use direct-to-port in Campground Master, set up as a serial printer and test it whether its keep hapenning duplicate printing. but you might need to use service to talk to port in the destination computer (local port printing) we did sometime when we had simillar issue.May be this help to you
designing Client Server Application in C#
I'm developing an application for copying and creating files between local network shares in 1 GB connection. This application will run on a local machine with that connection.
Now I have to introduce a Client-Server connection in a way that the User can perform the same steps from his Home PC. For that reason I have to setup a Server on the local machine which has 1GB connection to the network shares and access that server application from Home to perform the same actions as the User is on his local workspace.
Once again I want to clarify that the application now is running well on a local PC with 1 GB connection. I want to reach as much as possible to that via with the Client-Server. And once again, I'm not copying files from the Client to the Server or anything like that. It is only interaction between the local shares. So I want to be able to perform a copy function from local/share1/folder1 to local/share1/folder2 from the Home PC.
I'm new to Client-Server applications. And I have no idea how to set up that. Any recommendations/suggestions are welcome. My current application is developed in C# Visual Studio, so I believe that I should better use .NET Remoting or some other already supported by Visual Studio. All I could find on the internet is how to set-up a client server application for chat, I see nothing similar to my case.
Any design decisions or code will be really helpful at this moment.
There is no need to attach snippets of my code (I guess), because the application is already running locally and I don't have to change it.
Thanks in advance!
i need Communication between Client and Server running on two different machines in C# using Visual studio 2010
The main app that is the client app needs to tell the server app on the server to start and stop process. and server app needs to tell the main client app when process has been completed and also of any errors
please give me some suggestion , what is best to use for my application .
The easier form of doing that, I would think on having a database in the middle for communication between the client app and the server.
On the server you would have a service on continuous running, and querying the DB if he should start the process (code) or not. The server will mark that task as Started, and when it finished, it would mark Finished. The client, only need to add new records to a table where the server will look for.
I need to write a web service in linux, Through a java program. The service provided should be a text file.
Say whenever the client access the service, It should return a file say /tmp/sample.txt.
And the problem is, the client is a C# program which is running on the windows 7. And the linux will be running as Virtual machine in Windows.
What I need is:
How can i host a service in linux which is written in java.
How can i access it in windows client whch is a c# program.
I would be happy if anyone help me on this.
You can integrate Tomcat into Apache for hosting Java sites on Linux. Here is the site for Apache Tomcat: http://tomcat.apache.org/. Don't forget you will also need the JDK installed on the Linux server so that it can run Java programs.
Here's a site that can help you get started with it on a RedHat distribution of Linux: http://easylinuxtutorials.blogspot.com.au/2012/07/how-to-install-apache-tomcat-7-on.html
As long as it has an accessible URL, you can just make a call to the URL, then read the file either by saving it to a local directory and reading it off the downloaded file, or directly reading it into a file stream. Check How to read a file from internet?
You mean host a service in Java-WS on Linux! Nothing is "written in Linux"
Here're two pieces which shows...
STEP 1. Create a VM on Fedora/Linux with SFTP so you can upload your Java-ws created (with Netbeans, or a notepad!) on your Windows Workstation to the VM.
https://gridwizard.wordpress.com/2014/12/28/install-tomcat-on-fedora-vm-for-msdev/
STEP 2. Create a simple java-ws, put under Tomcat, then consume from C#
https://gridwizard.wordpress.com/2014/12/26/java-ws-and-dotnet-interop-example/
Overview
C# File - Users PC
PHP Server - Hosts Webpages for application
Server and Users PC on local network
I have a c# file that reads weight from a USB scale. How would I trigger this file to run so it feeds into my program. The problem is I am using PHP to host our webpage/application so its not running client side and the scale is not hooked up to the server but to the clients PC.
The C# script would have to be on the clients in order to read the scale so how would I trigger this to happen?
Is this even possible and if not what would be a better way?
Important Edit
I was able to run the Scale Script (C#) when I wanted by having PHP and C# use TCP sockets.
The C# would listen for PHP to send something and when it did it would read the scale and send this information back to PHP becuase PHP was listening for a response. Mixed in with a little Ajax and it updates in the web browser.
Gave Chris Credit because he was the most helpful with answering my questions
It sounds like what you really want is for the client application to submit the data to the website itself, and the most suitable approach is probably to expose a web service from your server.
This service should accept weight data, along with some sort of customer key or whatever, to correlate the records correctly on the server side. I've never created a web service in PHP personally, so I can't give any advice on the implementation of that, but it is fairly trivial to hook a C# client app up to a web service once you've exposed its metadata (assuming you use SOAP).
you can't start C# application from a web page in a way that'll work in every browser every time. BUT, you can have some workarounds:
Use ActiveX component that read the data in the client and upload it to the server. the biggest cons is that it'll only work in Internet Explorer
use Silverlight client application that runs on elevated mode (v4) and upload the data to your server.
refer your clients to download application (the C# application you wrote about) and run it - this application will upload the data to your server.
hope this helps.
C# isn't a scripting language, it's a language that compiles into executable binaries or libraries. You won't be able to execute C# code on the client's computer via a website because C# code needs to be compiled before it can run.
Presumably what you really want is for your compiled C# binary to be executed on the client's machine via your website. You won't be able to easily do that. There are a lot of security measures in place to prevent browsers from running programs on your computer. There may be ways to hack around these security measures by using plugins (such as ActiveX), but it's not something that will be a one-liner.
Edit: I think you need to step back and think about what you're trying to do in a broad sense. You're trying to create a website that can read information from a user's USB port. This is the type of thing that browsers are designed to prevent, and for good reason. I wouldn't want random websites to be able to access peripheral hardware without my explicit permission. If you want this website to function the way you're expecting, you're going to have to seriously think about the security implications. You'll need some kind of client-side code (ActiveX, Silverlight, ...), and the user will need to explicitly give permission to for this all to happen. It won't be easy, and it won't be automatic. And I'm damn glad that's true.