Posts

Showing posts from January, 2008

TableAdapter.Update Error

Error Exception: InvalidOperationException Error Message: Update requires a valid UpdateCommand when passed DataRow collection with modified rows. Problem: The update command is missing from the table adapter. Cause: I believe that this must have occured by changing the database structure after the dataset was created from it. Solution: Configure the data table of for the table in question. Assure that "Generate Insert, Update and Delete Statments" is checked inside of Advanced Options. Finish the wizard. Your command statements will be rebuilt (including the Update command).

The wonderful world of UDP Broadcasts

I have been working on a set of server/client applications lately. Basically, the server and client communicate via TCP. This means you need to provide an IP address and port number that the server is on so that the client can connect to it. The problem is that many users do not understand what an IP address is, much less how to find one; all hope is lost, then, if they must supply a port as well. The port problem is somewhat resolved in that the port number is typically fixed. No mater what machine the server is on, it will always communicate on say, port 4040. This will only be a problem if another application on the same machine is also attempting to use port 4040. The more complex issue to try to get around is obtaining the IP address. Every machine will have a different IP address, and even then it may change every time you enable its network device. Now assuming that your server and client will be on two machines that are very close to one another (not spanning across t