an application working with a modem through usb virtual port,on every different computer it gives different COM port numbers so I have to guess it. How to get COM port number by friendly name like in Windows Device Manager if i know GUID, PID & VID of device. Does anybody have a code snippet?
I am trying to figure out the port number of a fax server. It gives everything but the port info. I see in the documentation there is .GetPort but I am on windwo xp and I am not seeing that the method.
I have 2 winforms, one acts as server (ie Winform:Server role) and another one as client (ie Winform: Client role). In my LAN setup, there are 6 PCs and these PCs connected to each other via a 8-port switch and each PC has more than 1 LAN card.
There is one PC running [Winform: Server role] and 5 others running the [Winform: client role]. In [Winform: Server role], I'm using following code to obtain local ip address and port number and the [Winform: Server role] will listen to all incoming TCP requests according to these auto assigned ip address and port number.
Dim Listener As System.Net.Sockets.TcpListener Dim Client As New System.Net.Sockets.TcpClient Dim Message As String = ""
[Code]....
I need to clarify my intention. My current approach to my intention maybe incorrect. I attempt to create a 'zero configuration client-server networking' and that is plug & play. The server will know where the client and vise versa. I know there is a program (i.e. MaxiVista) has done that exactly.
MaxiVista has 2 applications, i.e. server and client. Users only need to execute the server application in PC designated as server role and execute the client application in another PC designated as client role. Then the server will be able to find all executing clients in the same LAN.
My intention is just that. Plug and play 'zero configuration client-server networking' within the same LAN.
I want to upload and download a file to FTP over ssl with custom port number or FTP with implicit SSL. I am using .net ftpwebrequest & ftpwebresponse method for this. here is my code:
I want to send On and Off Signals to a USB Cord Connected to my Laptop.Universal Serial Bus, right? In my IDE, I have put a SerialPort Object onto my form. But I don't know how to detect or how to find out at what port number the USB 2.0 Cord is connected to? I wanna start working with Motors and Stepper Mototos with VB.NET. But I fear I am not smart enough to mess with it. I have done many different things with VB.NET, I wans to start messing with Serial Ports, and Serial Communication. It Says COM1, a USB Cord Connected to my laptop is not a COM1.
Example, when i plug in my device, the programme is supposed to identify which com-port is connected to it and update the textfield accordingly, however this is my first time using such a device and im not too sure
Needs to be a component of some sort. No additional installation needed.The datastore needs to be on the local hard drive.I am using VB.Net for a desktop app running Windows XP through 7 so it needs to callable by that environment.It needs to replicatable. If I have four copies of my app running on the network, each local copy of the datastore needs to replicate with the others. As close to real time as possible.
I have a module which will be responsible for parsing CSV data received from different user via a website interface, and I have to parse that CSV. I was considering to use, TextFieldParser for it.
But before I could implement I was considering what shall be a better approach...
Generating MemoryStream from data received, or initialising a StringReader from the same input string.
After researching all the possible ways of sending the output of my program to an email address, I have yet to settle on the most user friendly way to go about this.I have created a form for a property management company I work for. I would like to send the output to a designated email address by a click of a button.Now given that the average user that will be using this software may not be necessarily tech savvy, I would like to make it do this as simply as possible and that means not having to know the smtp. Also considering that the user may not be on their terminal when using this software, using outlook to send the output may not be the best way to go about this. I have tried adding a webbrowser control and sending the email via html but I am not sure if that is the most logical way to do this.
Forget fancy shmancy web stuff. I'm looking for a good .NET CLI argument processing utility, prefer open source code. This is for quick and dirty utilities that need robust and friendly command line argument handling.These are utilities with maybe a day of effort in them. Investing a few days writing good command line handling seems overkill but they really need it.Features I like in command line handlers. I'd be thrilled with any open source project that had 2 or 3 of the following.A consistent syntax, posix had a nice command line standard, but not necessarily posix.Ability to provide short names for agruments. E.g. "msbuild /t" == "msbuild /target".It supports good command line parsing then gets out of the way. I want some that my code uses, not something that imposes a pattern on my code e.g. I don't want to have to respond to the presence of an arg with an event, that type of thing. Seperation of concerns is good enough that it's logic can be unit tested. Oh - is it two much to ask for it to read attributes off a class properties (as in .NET configuration classes)? I like the config file overrides in msbuild. I can set properties in a build file, but override on the command line. Built in "show usage". WSF files (csript.exe) have this functionality. I'm not willing to write jscript to get the command line handling though.Not powershell. I can't find anyone in my company who can stand Powershell syntax.
I have created a vb application connected to MS Database. I have used try..catch statements to trap exceptions and display messages on the error found, but the problem is that these messages are too technical for the end users to understand. Is there a way of retrieving the error number or code of that exceptions thrown so that i can customize the message for the users?
Essentially what I want to do is have a few pages that act as templates for data. If a url is url... I want to query a friendly url field for "/home" which would return url...
Im using a function to set an option on a web page - I'm trying to capture the return message (Which is "ok" or an error), I want to cature "ok" and return a friendly message, otherwise return the actual message. This If Then Else seems to be false for the If even when "ok" is returned:
I like to user custom errors in my site. The Idea is to trap errors and display friendly meaningful messages to users. The real error details (line number, Page ...) will sent to me by e-mail. I am programming in VB.NET. Until now every code that i found about this say's that i must use the global.asax for it. I do not like to use global.asax, I just like to make an error page that will sent me a -email with all the error details. Until now, I go to the web.config file and insert this line:
<customErrors defaultRedirect="test.aspx" mode="On"></customErrors> test.aspx looks like this: Sub Page_Error(sender as Object, e as EventArgs) Dim ctxOBJ As HttpContext Dim exceptionOBJ As Exception Dim errorInfoTXT As String [Code] .... When here is an error in some page its redirect me to test.aspx but not showing any error.
I need to return an error message to the client, if they have entered invalid data when calling my web service. So if my code is: [code]Is there a way to display a more user friendly error message (such as a message box or just the words "Invalid Order ID")?
I wish to send a string held in a var to an IP address and Port number both also held in vars. I also wish to listen to a signals coming in on a particular port number so when particular strings are received I can trigger other transmissions.
I am trying to buld a DLL in VB.NET 2010 that will be use to control a vending machine.Whin a call into the DLL to a function to open and setup the comport the first time its opens it just fine, but if a call into the DLL again it does not know that the port is open even if it is still open. I can check with another program and is shows the port is open and if I try to call into the DLL again to open the port I get an error that the port is already open. Any idea how to set this up so it will work.
I need to open and config the com port in one call that leaves it open and then in other call use the com port to talk the equipment in the machine without closing the com port untill it is required to close it.
I am doing a little project before I get onto some more complicated stuff and I am trying to become more fimilar with ports. Basically the issue at hand is that I am not too sure how to listen for on a certian UDP port.
I'm using VB.Net in VS2010, I'm attempting to self-host a WCF service. (It's actually in a windows service, but I'm trying to do this via a simple console app. Below is the code in question, the TCP/IP addresses are injected directly here. The WCF service itself is simply a renamed DEFAULT new WCF service project.
Dim host As New ServiceHost(GetType(TestService)) Dim tcpb As New NetTcpBinding() tcpb.PortSharingEnabled = True host.AddServiceEndpoint( _ GetType(ITestService), _ tcpb, _ "net.tcp://localhost:62020/TestWcfService/" _ ) host.Open() Console.ReadKey(True) host.Close()
Is there something special I need to do to get the port to actually bind? when I run netstat -a it doesn't show a listening port on 62020 I am really at my whits end on this. I have another WCF service I'm trying to migrate out of IIS, and into a separate server running in a Windows Service. The WCF service will only be accessed internally. I've been having numerous issues in getting that migrated, so trying to get a simple service to bind, and have a client (website) access it. The other WCF is binding (different port) fine, but having communications errors.
Lets assume that I have a game server in my computer.
I download a compiled game, server/client side.
The player starts the game and it keep sending and receiving data from the server. Lets assume now, that I think that the player is using some bug and winning all the rounds. How can i disconnect his IP from the server port? I have seen some people using some kind of DLL to do the job. Its something like iphlpapi.dll ... i dont remember well.
Apologies for the long post, but I would be very greatful for any advice given. I have developed a visual basic application to communicate with a device through a COM port. This application works fine. The device connected to the COM port sends information relating to the status of the device, this information is read in using VB and inturn written to an SQL database. Using the visual basic application the user can also send commands through the COM port to the device. The application scans the users computer and detects all available COM prots, these are presented to the user and they can select which one to connect to. The COM port is held open for the entire period that the program is in use (this is to allow for the incomming information to be read)
I've been trying to this application in Visual Studio 2010 to only write to the parallel port, so supposedly it would be a very easy task, and by all the tutorials in the internet i've seen before it really is! Although it throws me always the same error which is too generic and don't give enough information for me to solve it. I'm doing this using the "Inpout32.dll" library to make the communication between VB.NET and the port..
looking for a way to detect all available AT Command ports on connected USB Mobile Modems.
I've tried messing with WMI a bit, but was only able to detect the HSBC ports, not the AT Command Ports which is nessassary to issue AT commands to the modems.
how to read data from a USB Port. I have a games joystick connected to a USB port on my computer and the joystick has 10 buttons which each when pressed sends some binary code into the computer via the USB port. I need to capture these button clicks and perform a different event for each button click.
I'm trying to read data coming from a serial port. I simply want to ignore all other data besides the string "button_pushed". The device actually writes "button_pushed" to clean up the display when viewing the serial connection from console or similar. I can change this easily but I'd like to keep it if possible.
My code is as follows:
[Code]...
I'll get an IOException from readLine(). I tried using readExisting() which prevented the error but results in the block being executed twice (probably caused by the "") so the log reads "No data match" and "Data match" for one button push.I have a few questions. First, why does ReadLine cause an exception? I tried to negate that with is_closing but it still occurs. Second, will I run into problems using readExisting as it reads the entire buffer?
Can someone tell me if the functionallity to control a parallel port in MS VB 2010 Expess exists? I was expecting to have to add a reference such as the microsoft comm control 6.0. However this reference does not appear in the list. Everything I search for references .net 2005/2008.
I want to send hex values across the serial port. I know, I know, your thinking not this again. But what I need to do does not seem to be addressed, or I am some how missing it when I search around.