I'm using System.Net.Sockets namespace for connecting to an ftp server. If a user has to login to a firewall first though, I'm not too sure what to do. The following is what I have working for logging into an ftp server without a firewall. (The Else statement) Do you know what I might add to the if statement? In the method where this conditional is, I am passing a firewall username and password.
m_tcpClient = New TcpClient
' Try to connect to ftp site
' If using firewall, login to it first then issue another command to log in to actual
I'm attempting to discard the contents of a System.Net.Sockets.Socket send buffer using theSocket.IOControl(IOControlCode.Flush, .... Does anybody know whether VB.NET supports this command? I've tried supplying 'Nothing' and 'Nothing' for both required parameters, also empty and populated byte arrays in combination with 'Nothing' for both required parameters, but I consistently get an 'Invalid argument' exception. I've tried a web search for an answer, but the only mention I've found was a question asked about 8 years ago, with still no answer.
Event type clr20r3 p3 4a5c12c0 system.net.sockets.socket Exception and Application crash on some system. while running well on others. i go thorugh many forms and search a lot on google but not able to resolve the issue.
I have a chat program using System.Net.Sockets.Socket that works perfectly over LAN.My question is - will this same program work over the net with little or no modification and if so do i provide the client with the IP of my machine or of my router and use port forwardin
I'm coding a simple TCP client/server in VB.NET to transfer files of all sizes. I decided to use System.Net.Sockets's command SendFile to transfer the bytes through the socket.
On the receiving side, my code to retrieve the bytes works fairly well, but occasionally the transfer randomly stops. I figured out that by putting a small sleep delay between retrieving the next block of data makes the transfers 100% stable.My code to retrieve the data (until there is no data available) is simplified as this:
While newSocket.Available > 0 Threading.Thread.Sleep(100) newSocket.ReceiveFrom(data, Remote) End While
I really hate using that sleep delay and figure there must be a proper method/function to retrieve data from SendFile?
Is there a way to determine if a System.Net.Sockets.Socket has sent data that has not been received/read by a specified remote endpoint with a connectionless protocol?It never hurts to try.
Occasionally I encountered this exception message while trying to download file from a server using System.Net.FtpWebRequest and System.Net.FtpWebResponse Object.
Download a file.ftpRequest_DL.Method = WebRequestMethods.Ftp.DownloadFile get the response object Dim ftpResponse_DL As FtpWebResponse = CType(ftpRequest_DL.GetResponse, FtpWebResponse)
a company offered me to develop a project for our attendence system in which finger recognition system is used. now i have quitely no idea that what i do and what do i do with this finger recognition system project.
I'm writing an application which has user authentication system, basically, when the user open the software, he has to enter his/hers username and password which are retrieved form a access data base, and if the user is set as admin then it enable some features, I couldn't figure out how to read the column lets say, IsAdmin table, which will store an value of 1 or 0 for example. I need a concept of how build a login system with levels or whatever you guys call it...
I have a project that I am working on and I just recently transfered it from an XP machine to a Windows 7 machine. Both machines are running VB Studio and the only thing that changed was I moved it from the XP machine to the WIndows 7 environment. I have not changed any of the code, I just transfered it and ran it to make certain nothing happened.
I am attempting to use the System.Management.ManagementObjectSearcher class in VS 2005 (see below) but get a error message for both the ManagementObjectSearcher class and queryObj As ManagementObject - Type ManagementObjectfSearcher is not defined and Type ManagementObject is not defined. how do I use this class in Visual Studio 2005?
Dim searcher As New System.Management.ManagementObjectSearcher( _ "rootCIMV2", _ "SELECT * FROM Win32_ComputerSystemProduct")
i am working on my A2 coursework and trying to get the log in system working. I wrote a query where i ask the databse if there is a username entered and password. if there is, it will return the username. if there isnt it will stay empty. But how do i do some kind of if statement that if there is the username returned that it will let the person log in ? im really bad at explaining things here is my code.
So basically all i want is how do i make it to see if there is anything returned or not. (im sure the query is working)I am happy to try different ideas but this is furthest i got so far with this one spend like 3 days on this..
I have an application where I check the existance of a file. If file exists and I try to delete I get an error. Is there a way to release the lock on the file?
Public Sub CheckReportExists() 'if report exists, do not allow to proceed If File.Exists("C:Program FilesAstec IndustriesWM2000DailySalesReports" + ReportName + ".pdf") Then
I have an application where I check whether a file exists and give user the option to delete the file. When trying to delete the file getting an error. Is there a way to release the lock on the file before delete?
Public Sub CheckReportExists() 'if report exists, do not allow to proceed If File.Exists("C:Program FilesAstec IndustriesWM2000DailySalesReports" + ReportName + ".pdf") Then
my advance project for the final semester of software engineering is an intruder detection system which is based on motion detection. I'm using a web camera in order to capture the images sequently and let them to process for further checking to see the difference.
first of all i want to know, is this possible in vb.net (image processing)? if it is possible, please give me some ideas about this to start.i have a brief imagination about the structure but i'm not sure about the success
I want to control all the processes of my system. for instance, whenever i start a new process, my application has to ask me whether to allow it or not. I should have control to either pause, resume or terminate the process. for eg,if i start IE, my application should ask whether to allow the process or terminate it. if i provide "allow", the process should run, either it should terminate. Can i use "process" control to do these stuffs? Or do i need any API?
I need a clue where to start: how to create an icon that will show up at bottom right of explorer bar.. maybe I don't what its called. I guess windows named that "system tray icon".
Weird problem that just started, I am using an OleDbCommnad to create a dataadapter then fill a table everything from a .csv file, works fine except no dates are coming over? I added a datagrid view to my project just to see and any column that should have a date value is empty. I confirmed that the column is of System.DateTime value so I am at a complete loss?
I am storing images in a database. When I call the function to get a picture it returns an array of system.byte[]. How do I convert this to an image?I've searched for information, and found this page among others. But the code given doesn't work for me.
'Byte[] to image imgMemoryStream = New IO.MemoryStream(imgByteArray) myImage = Drawing.Image.FromStream(imgMemoryStream)
how to convert system.string to char for label text?? Here it my
[Code].....
I need to get the strings from the site and input the fields strings in the label text, so I needs to convert char of system.string but i don't know how to fix it.
I have a laptop with vista and desktop with win xp. I am building the application on win vista but when i copy the same project and view it on win xp , then it only shows the fields that fits on the screen. the rest of the fields that needed to be scrolled on right , does not come at all. The project works fine on win vista. I even tried to tried publishing the project. it works fine on win vista but is missing some fields on win xp.
I use the System.Net.Mail namespace to send email messages in my application and I have a beta customer that reported that some characters were not coming through correctly on his CZECH box. I was not currently giving the option to the user to select an encoding, but I think that I actually should be.