VS 2010 Pinging A Server

Aug 1, 2011

recently ive been making a app for minecraft and im trying to add a new feature what i want it to do is ping the server and then tell me if its on or off any server using a redirector like dyndns or no-ip will ping back as online even if they are offline because the redirector isn't down or.[code]

View 6 Replies


ADVERTISEMENT

Pinging Range Of IPs

Aug 13, 2009

I got help with pinging a range of IPs earlier and was given this code. I was then trying to change it slightly so I could scan more than my network between any given range e.g. 125.1.1.1 to 126.12.25.66.[code]

View 3 Replies

Pinging A List Of Machines?

Feb 1, 2012

I have a list of machines, 1 per line in a file called devices.txt.

What I need to be able to do is to ping each of these machines, and then output each machine that is online to another text file called machines.txt

The files need to just be the machine name and have 1 machine per line.

View 1 Replies

Pinging Range Of Whole Network?

Jul 28, 2009

I want a start IP and end IP and it to ping all the IPs between and including those IPs. I've seen examples of when it gets the subnet and then iterates through from 0 to 255 but I'm struggling with this. Is there a way to make an IP address object (is this the right word?) that iterates the same way as an IP would e.g.goes from 192.168.1.255 then would go to 192.168.2.0.

[Code]...

View 1 Replies

Async - Pinging All Computers In List

Nov 24, 2011

I've run into a bit of a problem using Async ping. Basically, I want to ping computers in the list before I run the next bit of my program. The computers who I can ping are added to a list and that is used in a background worker. Trouble is can't seem to work out how to wait until after pinging ALL computers in the list, either successful or timed-out. Is there something a long the lines of 'If Async Ping is running'?

Private Sub pingCompleted(ByVal sender As Object, ByVal e As System.Net.NetworkInformation.PingCompletedEventArgs)
If e.Reply.Status = Net.NetworkInformation.IPStatus.Success Then
complist.Add(e.UserState)
Else
'do nothing
End If
End Sub

I need the next bit to wait because if 'complist' is changed while it's being used I get collection errors.

View 7 Replies

Pinging Email Addresses To See If They Exist?

May 5, 2010

Ping Email Address to see if it exists.

I would like to ping an email to see if it exists. Does anyone know how I can accomplish this?

View 5 Replies

Visual Studio - How To Disable Pinging During Tests

Jun 9, 2012

I have a class that uses My.Computer.Network.Ping to get a boolean value on whether a IP address or hostname is reachable.However, when I'm testing that class, I want to disable pinging so that during the test whenever I run the My.Computer.Network.Ping it will always return false or throw some kind of exception.

I have tried the following, but I still get a true returned (meaning, the attempts to disable ping didn't work)

Dim restricited As New System.Net.NetworkInformation.NetworkInformationPermission(System.Security.Permissions.PermissionState.None)
Dim mySocketPermission1 As New SocketPermission(PermissionState.None)
Dim myWebPermission As New WebPermission(PermissionState.None)
myWebPermission.Demand()'

[Code]...

View 1 Replies

IP Address Filter Or Mask To Only Allow Valid IP Address Before Pinging Or Testing For Network Connection

Jul 6, 2011

Are there any IP Address filters or masks available in Windows Forms as per following screenshot? A backslash shouldn't be allowed or it should be filtered somehow.

View 1 Replies

VS 2008 - Threaded Ping - Click Another Site While Its Still Pinging Them It Doesn't Wait Before It Switches Site

Feb 9, 2010

Ive got an app that holds a list of site we have, At each site there are a few devices. The idea is when they click on a site all the details for the site are loaded and then a second thread sits and pings each device to see if its live. Im trying to do this in a seperate thread so if they click another site while its still pinging them it doesn't wait before it switches site. This all seems to be workling fine except if you click through the sites quickly, when you do that it will eventually come up with

Quote:

{"Collection was modified; enumeration operation might not execute."}

The error flags up on the "Next" line in "ThreadedPing"

Thread stuff

Public Sub ThreadedPing(ByVal dt As DataTable)
Try

Dim dr As DataRow

[CODE]...

View 2 Replies

"Pinging" An Email Address Using Coding

May 24, 2012

Is there a way in VB.Net to "Ping" an email address to see if that email is a real one that does not give any errors?

If yes, can you show what the VB.Net coding looks like to implement this?

I plan to use this in an app that requires the Customer email and it would be nice to validate it as the call taker enters it into a form before saving the Customer details.

Here is the code we are using to send an email promotion to all of the customers in our customer table:

Private Sub RibbonButtonSendTestEmail_Click(sender As System.Object, e As System.EventArgs) Handles RibbonButtonSendTestEmail.Click
Dim SmtpServer As New SmtpClient()

[Code].....

View 2 Replies

VS 2010 : Send Data From Client To Server (encrypted) And The String Sent From The Client Is Not The Same As Received From The Server?

Jun 27, 2011

Hey guys, I am trying to send data from client to server (encrypted) and the string sent from the client is not the same as recieved from the server. I've been killing my brain for hours to get this to work but I cant manage. Im converting everything to Base64 string.

Client:

Public Sub SendMessage(ByVal msg As String)
Try
SyncLock myclient.GetStream
sw = New IO.StreamWriter(myclient.GetStream)

[code]....

View 4 Replies

VS 2010 - Create A DDE Server, Windows Form, In VS 2010/11

Apr 20, 2012

With a Windows form that I would like to be a DDE server. I know that DDE is not natively supported in VS 2010/11 so I'm using the NDde.dll to add DDE functionality to this program.

Objective: Create a windows form to act as a Pop-up notification that has a textbox field. This textbox field must be selectable in order for users to copy a text string to the clipboard and paste into another program that does not support DDE.

Overview: A phone system has an on-screen agent program that triggers a pop-up form, the DDE Server, when an incomming call is presented. When the agent accepts the call the agent program, acting as a DDE Client, registers a DDE session, Application=phnserver and Topic=callerid. Then communicates an "OnExecute" command to the DDE Server followed by a number string. This string should be presented on the pop-up form in a text box. Once the call is completed the agent application will issue a command to close the pop-up form.

Below is my current code.

CODE:

View 2 Replies

VS 2010 The Remote Server Returned An Error: (500) Internal Server Error?

Dec 5, 2010

posted again but this time its regarding both the webclient and the web reuqest giving me this error :S

View 1 Replies

VS 2010 VB 2010 With SQL 2008 Server Report - Pass Login Information And Selection Parameters To The Report

Apr 13, 2011

I just got into VB 2010 with SQL 2008 Server Report. I was able to create a report as my wish and it's vieable via direct url (URL). But I want to pass login Information and Selection parameters to the report. But I don't want to pass them thru URL, So I want to load them from the application (winform) and launch the report in iexplorer.

View 1 Replies

VS 2010 Connecting VB 2010 Express To SQL Server 2008 Express Database Via IP

Feb 29, 2012

I am trying to make a user account SQL database work with Visual Basic 2008 Express for login purposes, i.e. usernames & passwords. Plan is to host this server so people can login to use the the application and verify they have a valid account. I would like to host all the account information in SQL due to the possiblity of hundreds of users at any given time. I also need the ability to add data to the database for users registering for the first time. The SQL server will need to be able to access the SQL Server databases remote via WAN.

View 3 Replies

VS 2010 Use An FTP Server In VB?

Nov 7, 2009

I found a few free FTP hosting services and I was wondering how you implement them with your programs.

View 3 Replies

VS 2010 - SQL Server (File Already In Use)

Aug 23, 2011

I have a database is SQL Server 2008 Express. I have added this database to an ASP.NET project, now I want to add the same database to a VB.NET project, however, when I try to set it up it says I need to choose a different file because it already is in use (which makes perfect sense). So how can I set the database up so ASP and VB can use at the same time?

View 3 Replies

VS 2010 Connect To Server SQL And Run

Mar 23, 2011

I'm trying to write a small app that will connect to our SQL database and run a small query.

However, my first stumbling block is the connection to SQL.

The SQL is on a server called RCSRV01, and RCSRV01 is the name of the SQL Server instance. The database is called NHD

This is my connection code...

[code...]

View 3 Replies

VS 2010 Get Server's IP From Client?

Jan 14, 2011

I'm working for a socket tcp/ip. I have a server form on Server PC and client forms on all clients. I want the clients auto find and connect to the server PC when I open connection on server form? (in common, I have to set the server IP and ports to each clients, if not they cannot connect).

View 3 Replies

VS 2010 How To Make A Server

May 7, 2011

how to make a server, and let my program connect to that server. My program is on books, people can go through the list of books and "favourite them". Then in a window I open I can see the most favourite overall etc. How would I do this, what type of server (srry im not pro on servers at all).

View 1 Replies

VS 2010 Run App On Server Without Stopping?

Dec 15, 2011

I have an application that is on a server running. The way I have it setup is I put it on the Windows Scheduler to run at certain times. We now need to run it constantly on the server. I change the code to put in a loop until I pause or stop it. One issue I have found is that I can kick it off but when I close out of my remote session the application stops.

How do I keep my application to keep running even after I sign out of RDP?

View 6 Replies

VS 2010 SQL Server Connections

Aug 24, 2011

I'm pretty new to VB.NET and connecting to SQL Server.What is considered best practice when building an app that needs to connect frequently to a SQL Server DB to fetch, write, delete and update records?Should a connection be opened at app startup (a connection at start is opened to validate the user) and left open for subsequent transactions or should a connection be opened, closed and disposed of each time a read/write to the DB is required?

View 3 Replies

2010 : Connecting To Sql Server 2008?

Apr 22, 2011

Am having a hard time co be connected to sql server 2008 enterprise edition.i am using oledb in this fashion

db.connectionstring="Provider=SQLOLEDB.1;User id=helen;password=123;Initial Catalog=mydb; Data Source=server"

but it gives this error: Login failed for user 'Helen'/ Is SQLclient a must to be connected to sql server?

View 2 Replies

2010 To Microsoft SQL Server 2008

Mar 31, 2012

I'm new to this forum and have only been working with VB for the past 6 months.I am working on an ADO project, creating a home based movie directory that tracks movies, family and views(movies)I am having a problem with my "Update" from VB2010 to SQL.I am using a date time picker to view the SQL data in the dataset. In that I am not having any issues (txtYear.DataBindings.Add("Text", ds, "Movie.MovieYear")however whenever I try to update and "Send the data" back to SQL Server.[code]I keep getting an error System.Data.sqlClient.SqlException "Invalid column name 'March'.I do realize that this is a formatting issue, i'm just not sure how to format it to the proper date.

View 8 Replies

Connecting To SQL Server 2008 Exp From 2010 Exp

May 7, 2010

I am trying connect to a SQL Server database i have created using Visual Basic.Both reside on my local machine (PAUL-PC).Here is what i have done so far but i am missing something (or more worryingly i have got it completely wrong).[code]So i have an MDI form and i want to make a connection to SQL Server when that form loads.I do not want to use a DSN if possible so am trying to use Oledb. Not sure also of the DataAdaptor declaration as in previous versions i used many years ago it was recordset.I would like to use a trusted connection to connect.

View 5 Replies

IDE :: Using SQLExpress Server In A VB Project 2010 B2?

Jan 5, 2010

Visual Basic Project VB 2010 B2 does not allow you to select the SQL server without specifying a local file attachment while Visual Web Developer VWD 2010 B2 does give you the option to specify either.The Enviroment VB2010 B2, OS VISTA Business, SQL2008 Express SP1 with SQL Server Management Studio.

1) In order to access the SQL server enable the TCP/IP, NamedPipes and SQLbrowser on the SQL Server.

2) The VB Project requires "imports system.data.sqlclient"

3) Using SQL Server Management Studio or VBcode in the VB Project create a Server DataBase called "dbName"

4) Using SQL Server Management Studio or VBcode in the VB Project create a Server DataTables

5) The following code updates the SQL server DataBase name dbName from the projects DataSet.

Private
Sub updateDBase(ByVal dbName As String, ByRef aDS As DataSet)
'CODE to access SQL database directly
'Before an Update sqlCommandBuilder creates

[code]....

View 3 Replies

VB 2010 Creating Server/Client?

Nov 4, 2010

I just finished making my project, its a Registration System using Visual Basic 2010.

How can I make a server that allows client to open the system? so they can Add, Edit, Delete, Save, etc...

P.S. I try file sharing but it doesn't work. using win7 to winXP.

View 3 Replies

VB 2010 Winsock Client / Server

Jun 15, 2010

I am currently learning how to program in VB and am using sample code to make a VB Winsock client and server. I beleive the sample code was from VB 6.0. [code]Overload resolution failed because no accessible 'GetData' accepts this number of arguments.I am getting the exact same error in the exact same place in the server aswell. I have tried removing the vbString, but it comes up with a warning and the program doesn't function like it should. I am programming this in Visual Basic 2010 Express.

View 3 Replies

VB 2010-Access Database Without SQL Server

Nov 5, 2010

I just started learning VB 2010 through a book. I'm learning vb to design a program which can manage customers of a small company as a homework. It'll store data (Company Name, Phone N. and Adress) at an Access Database. (I'm using Access 2007)

I have a little background with programming but none with databases. According to the book there is no way I can delete, add or update a data from an Access Database without installing SQL Server or Express. But this program should work at a computer which may or may not have SQL server or MS Access (Any computer with Windows OS).

After a little digging only thing I could find was Walkthrough: Saving Data to a Database (Multiple Tables) from MSDN and did every step and at the end, I can delete or add rows and change values of the cells but cannot save them (when I click save, close the program and re-open it, changes are gone).

I don't get that how can I view all the data from database without SQL server but can't save changes to the database file without SQL Server.

Is there a way to do this without SQL Server? If so, can you give the right code for the MSDN Walkthrough's Save button? Or point me to a page where can i learn the right code?

View 1 Replies

VS 2010 - How To Insert New Row Into SQL Server Table

May 8, 2012

I'm trying to insert a row into a SQL Server table.

Using this...
cmd.CommandText = "INSERT INTO MyTable (firstname, lastname) VALUES (@firstname, @lastname)"
cmd.Parameters.AddWithValue("@firstname", "bob")
cmd.Parameters.AddWithValue("@lastname", "jones")
cmd.ExecuteNonQuery()

I get an error saying:
ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Must declare the scalar variable "@firstname".

But if I use this...
cmd.CommandText = "INSERT INTO MyTable (firstname, lastname) VALUES (?, ?)"
cmd.Parameters.AddWithValue("@firstname", "bob")
cmd.Parameters.AddWithValue("@lastname", "jones")
cmd.ExecuteNonQuery()
...it works fine. What do I need to do to make the first example work? I don't understand what the error message is telling me. How do I declare a "scalar variable"?

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved