Server/Multiclient Application - Confusion With BeginConnect?

Feb 24, 2012

I'm writing a program for a testing environment. Where there is the Teacher's workstation and 30+ Student workstations.This is my first time writing a networking application so this is all new. It's also not totally in my job description either, but that's another topic.

What I'm looking at is using BeginConnect as the connecting command from the server to the client. I'm not looking for a chat program which seems to be the only thing I see for server/client coding and it's not very helpful. I only want the Clients to be listening for the server. I figured I'll be using the [System.Net.Sockets] namespace. But I'm just so unfamiliar with it and nothing seems to break it down, explaining what each thing is looking for. Mostly just been sifting through sample code and trying to draw my own conclusions...unsuccessfully I might add.

[Code]...

View 4 Replies


ADVERTISEMENT

VNC Server & Multiclient In .net?

Oct 5, 2009

I want to create an application that acts as a vnc client which is connected to multiple servers at once.First and foremost, how do I access the VNC protocol in vb.net (make a client/server, output the display etc)? Second, how can a single client connect to multiple servers?

View 2 Replies

Interrupt BeginConnect Method In Socket Class?

Aug 1, 2010

I am using the BeginConnect method of a socket to connect to a server which may or may not be on line I need to provide my users with a countdown timer which they can abort the attempted connection if they wish to The question is; how can I interrupt the Begin Connect method of an asyncronous connection

View 1 Replies

VS 2010 Lambda Expression Confusion

Sep 21, 2011

I've been wondering about lambda expressions for a while now.Consider the following code..[code]But in the lambda expression I have access to all Sub Main's variables.

View 3 Replies

Midnight & Noon Confusion & Date Formatting?

Dec 14, 2011

I am having difficulties with the VBE 2010 format statement. The mm gives only 00. The hh does not give 24 hour time. The nn does not show minutesMy code and the resulting output is shown belowThere also seems to be confusion between midnight and noonI start with 31 Dec 1979 10 pm and add hours getting31 Dec 1979 11 pmThen 1 Jan 1980 noonThen 1 Jan 1980 1 amWhat is happening here?

Public Const FolderOut As String = "E:/AgDocuments/"
Public Const FileOut As String = "E:/AgDocuments/fOutput.txt"
Dim fOut As New System.IO.StreamWriter(FileOut)

[code]......

View 3 Replies

What Are The Conventions For Variable Naming In .NET To Avoid Confusion Between Parameters And Properties

Oct 21, 2010

In the example below, what would you name the parameter given that it is used to initialize the property FromDate?For class constructor methods, I like to have the name of the constructor parameter variable match the name of the property which is being initialized. For example, the parameter "fromDate" is used to initialize the module level variable "_FromDate" with the statement _FromDate = fromDate. Likewise, I could have alternatively written Me.FromDate = fromDate.

Proponents of C#'s case sensitivity would probably say that using a leading lower cased letter for the param variable name, which I believe is MS convention, is an acceptable approach to distinguish it from the Property of the same name but different casing.

However, VB is not case sensitive, which I generally appreciate. In the following example, I am using a param name that matches the property name, 'fromDate," and VB refers to the local instance when there is ambiguity. However, many would probably argue that this "ambiguity" introduces the opportunity for the developer to get confused and not realize which variable is being used. For example, my intent below was to have TWO params passed in, "fromDate" and "toDate" but I accidentily ommited one and as a result, the VB.NET did not warn me of the mistake because it assumed that the statement _ToDate = ToDate was equivalent to _ToDate = Me.ToDate instead of informing me that the variable on the right side of the assignment statement was undeclared.

Public Class Period
Property FromDate As Date
Property ToDate As Date

[code]....

In my judgement, we should have a convention for prefixing all parameter variable with a prefix, but hasn't the use of prefixes been discouraged by Microsoft? For example:

Public Sub New(ByVal paramFromDate As Date, paramToDate As Date)

..or maybe it could be shortened to pFromDate, pToDate...

View 3 Replies

Enable Application To Run On Server / Network Share So That Only Serial Number Needed Is For Server?

May 29, 2012

I have an application I have developed which works great on individual PC's. However I've had some interest from a few customers that asked if I have a network version for site licencing.If my app did not save any data or write any reg entries, this might have been ok. But it does to the local computer. I also built in my own copy protection and trial function that stores data in the registry on the local computer.What would I need to do to enable my application to run on a server/network share, so that the only a serial number needed is for the server?

View 3 Replies

VS 2008 - Send Email In Application Directly By The Smtp Server But The Server Doesn't Allow?

Aug 11, 2010

i'm tying to send email in my application directly by the smtp server but the server doesn't allow me to do that.The application its used by everyone in the company, so i set the smtp client UseDefaultCredentials to True, but the server replies with this when i try to send an email:[code].....If i set the credentials by hand, the server sends the email. So my problem is how to make this work to everyone? I don't want to have one public/friend var all time in the application with the credentials of the current user?

View 9 Replies

SQL Server 2008 Configuration For Client Server (Windows Form) Application

Apr 6, 2012

Case : I'm creating an application (desktop application) with VB.NET (actually windows form), and using SQL Server Express 2008 for its database.

[Code]...

View 1 Replies

[2005] Read The Email From The Mail Server That Is In An Intranet From An Application Server?

Jun 4, 2008

I need to read the email from the mail server that is in my intranet from my application server.

View 9 Replies

Develop An Application Which Can Connect Any Remote Server And Pick The Configuration Information From Server And Show It In Desktop?

Feb 10, 2010

I planing to develop an application which can connect any remote server and pick the configuration information from server and show it in my desktop.

View 4 Replies

Application Runs On Citrix Server But Not On Virtual Terminal Server

Sep 3, 2009

An application loaded on a citrix server executes with no problem. When we try to run the same program files on a virtual server, we get silent errors and we do not even see the application window appear. The program runs for a moment in task manager, but then closes down. BTW other .net apps run on the virtual server. Here is the error we see in the event viewer application logs[code]...

View 2 Replies

Client Server Application - How To Make Clients On Sql Server

Sep 24, 2010

How to make clients on sql server i mean when i will install my application on clients how i will connect it with sql server?

View 6 Replies

Server Error In '/' Application. ASPNETDB.MDF ... ON PRODUCTION SERVER?

Jan 22, 2011

I m getting the following error when i upload my site to Production Server using Database in App_Data ASPNETDB.MDF

Server Error in '/' Application.
Runtime Error

[code]..... ...

View 2 Replies

Build Client-server And Sql Server Application?

Oct 26, 2009

i'm newbie in this programming..i need some references or a starting guide to build an sql server and vb.net application.

View 3 Replies

Client Needs To Have Sql Server On His Machine If Application Uses Sql Server?

Jul 16, 2009

I am creating small application (desktop search engine) which uses sql server as back end. Sql server is used to store huge data using indexing (for quick search). Is it necessary that client should have sql server on his machine to run the application? I don't want to install sql server on client's machine, because my application is just a small utility.Is there any other way so that I can store huge data using indexing?

View 2 Replies

Remote Desktop Application? Safe To Use Winsock In Creating A Client/server Application?

Jul 18, 2012

Im planning to create a Remote Desktop Application and I'm having problem with viewing other computers monitor or screen.

Im not asking for the code on how to do it. and one more thing is it safe to use winsock in creating a client/server application?

View 3 Replies

Recommended Application(s) To Test SQL Server 2008 Queries For Application?

Apr 11, 2012

I am new to working with SQL databases (and databases in general) so I do not have a lot of experience with how queries work and how I can practice them. When I was first learning xml and XPath, I found XPath Visualizer incredibly helpful after someone on stack overflow mentioned it to me.Due to this, I am wondering if a similar tool exists for SQL databases?Basically a tool that will allow me to connect to a database,enter queries and see somehow what the results would be like.

I have looked online a bit, however I have found relatively few options in terms of any utility that would do what I want, and that looks reliable.I will ultimately be writing an application to interact with an SQL 2008 server in vb.net, however for now I am just experimenting so I will know what I am doing when I actually want to create my application.So far I have managed to connect to the database using an OLE DB connection, but I am now looking for a way to experiement with queries without just querying and figuring out a way to interpret the results in my program. Basically I want to be able to remove the programming aspect of things so I can experiment with queries without needing to question anything in my code that is unrelated to the specific query.

View 7 Replies

WCF Server Application Unavailable - Run Application Written In .NET4.0 (IIS6+)?

Oct 27, 2010

I am trying to run simple application (e.g. generated from template by VS.NET 2010) on IIS6. I changed it to run with .NET 4.0 (its application pool) and checked with regiis (this pool has 4.0). I also changed all possible httpHandlers (svc etc), to run with NET4.0. All possible rights are checked (i think so). Almost every request results in "Server Application Unavailable" (sometimes it is empty page with -2146232576 (0x80131700) value) and "...Please review this log entry to discover what caused this error to occur." but EventViewer and IIS Log are empty.

View 2 Replies

.net - Port Sqlite Application To A Server/client Application?

Jun 4, 2012

I have wrote an Application for a organisation and they had let the app run in their lan using Samba, it worked perfect. Now they want to work over the internet.The Problem is that I have written this app with Sqlite, that means its currently working so:They have a exe and the sqlite dll and the sqlite database on their samba server and they connected a network drive on their windows pc to run it. So that means every pc is writing over samba to the sqlite database.

I tried it over the internet, but like i thought sqlite is a local database and its very slow, even if the ping is under 50ms. I could create a tcp server, that handles all and writes all to the sqlite database, but I have already written around 20.000 code lines for the project, so that would be not the best option for the lazy me. I have used only one sqlite class in my client for querieng, so I thought that it could work without much work, if i would replace the sqlite database adapter with the mysql database adapter, since sqlite has nearly the same syntax then mysql.

View 2 Replies

C# - Deploy An ASP.NET Application As Desktop Application (with Server Component)?

Jul 7, 2010

Question: I created an ASP.NET web application. Now it originally was meant for deployment on a webserver.That is working, so, so far so good.My question now is: Is it possible to deploy it as a desktop-application, too? That is to say the installer installs some kind of server, plus the web application, configures the server to run this application on a localhost URL, and then creates a link in the start menu/desktop, where it opens that url (website, the application) on localhost in a web browser?

I think it should be possible, though the server wouldn't be IIS, because this is a windows component which can't be separately installed. Is there anything like this already out there The nonplusultra would be that it only starts the server when you click on the shortcut.

View 4 Replies

PHP + SQL Server - Desktop Application Can't Be Replaced By A Web Application?

Jun 22, 2009

the system is going to have two front-ends - one web application and one desktop application.The desktop application is going to be coded using VB.NET, and the web application in PHP. There's really no reason why the desktop application can't be replaced by a web application as well - except that one of the programmers seem to really want to code it in VB...However none of us have experience working with either of these pairs .

P.S. hosting service will be gotten from some provider and not be on the client's own server.

View 3 Replies

Server/Client - Basic Tcp Server/client Application

Mar 30, 2009

I've basically made a basic tcp server/client application. The thing is that I'm behind a router and so will be the other people that use my clients. I've had to use port-forwarding or the software "rinetd"to run quite a few applications online.

Let me explain: I'm on a lan network that connects to the internet. Whenever I want to host a server - for instance a basic ftp or http server. If I give my external IP to anyone, they won't be able to access my server. Even if I portforward, it doesnt work. I have to use rinetd here. For other applications, portforwarding works. I'm not sure how these things work at all.

Anyway, my issue now is that I have created this server/client application. I'm having serious doubts that if I run the server, I'll have to either a) portforward or use rinetd to get people to connect to my server. IF I need to portforward, that's fine. However, using rinetd would really suck... My 2nd concern is as follows: IF the person running the client is in a similar situation as me (i.e he's on a lan that has a router which connects to the net), will he have to portforward or use rinetd as well? If he portforwards that's fine. But I don't think I could get people to use rinetd.... Also, if there are more than 1 person on a lan trying to connect to my server, there is a big problem when they try to portforward: they will only be able to allocate one of their internal ip to that port, and the others won't be able to connect, right? How does this work? I mean, I use many softwares like msn/skype/(some games)/firefox that do not need portforwarding/rinetd. Yet they work. My housemates(other people on the lan) use the same softwares, and it works fine. There's no clash/probs watsoever How come these run fine?

Anyway, back to my issues. Given I have no knowledge about how the above work, I was wondering whether there was a way to host a vb .net server application on an external website (external to my house) so that I might *avoid* the above mentioned problems, and to what extent that would be a sound solution.

View 11 Replies

Application - Connecting To Sql Server

Jun 21, 2010

I am bignner in vb.net and i have develo[ed a small application of vb forms in which i have use a service based sql server databas(.mdf)i want to make its msi installer last time i have made it and after installation application giving error for connecting to sql server

View 1 Replies

Application To Run On Windows Server?

Mar 20, 2011

I want to make run an application i developed in vb.net (developed with Visual studio 2008) to run on a windows server maybe (Win server 2003,2005,2008), my framework is .NET Framework 3.5.

i want my application to be accessed by different host computers but would be submitting into a single database that would have been installed on the server.

View 6 Replies

Application Won't Connect To Server

Jan 10, 2011

I am trying to connect to our server computer's SQL 2005 using the connection string:

[Code]...

View 2 Replies

Client Server Application In .net?

Jun 4, 2011

i am creating a client server application using vb.net with odbc as my data source to sql server 2005.send me a code that will enable the application running on a client machine to connect to a remote server.the application is to run on LAN and other client machines are on same domain.

View 1 Replies

Connect Application To Web Server?

Dec 27, 2010

I have a vb.net application and i need to connect it to a web server to upload pictures. It works locally but i cannot try it on the web server as i don't know hot to connect. Does anyone know about any website where i can learn to do that?

View 2 Replies

Connecting A OPC-Server To Application

Dec 9, 2007

I would like to create a OPC Client... But fist of all how do I connect a OPC-Server to me application. anyone who have done this? and maby hade some sample code??

View 8 Replies

Deployment Of .net Sql Server Application?

Jul 20, 2009

I am tyring to deploy vb.net application on a network environment ( windows xp and vista machines ) with sql server database. The application itself needs to access database as do all machines. I cannot install sql server due to cost and technical limitations at installation. Is there a way I can connect vb.net application on all machiens directly to some physical file like MDB ( access ) file but with sql server database ( I think something like Mdb was used to server data earlier)

View 1 Replies







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