Aspose.Network.Imap FetchMessages = Null?
Mar 11, 2011When I do this code:
imap = New ImapClient()
MsgBox("1")
imap.SecurityMode = Aspose.Network.Imap.ImapSslSecurityMode.Implicit
[code].....
When I do this code:
imap = New ImapClient()
MsgBox("1")
imap.SecurityMode = Aspose.Network.Imap.ImapSslSecurityMode.Implicit
[code].....
I'm using Aspose Word and embed it in C# application. However, there are some limitations to Aspose compared of course to Microsoft Word.Is there any other alternative besides the 2 mentioned above. Like a word processing SDK that can be embedded in a .Net application?
View 10 RepliesHow can I Read IMAP email? I found smtp reader but not IMAP.
View 1 RepliesSample code or snippet to receive and read/filter email, from imap (gmail)
View 1 RepliestcpClient.Connect(hostName, 110)
Dim networkStream As NetworkStream = tcpClient.GetStream()
Dim bytes(tcpClient.ReceiveBufferSize) As Byte
[Code]....
<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in .5in 1.0in .5in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} -->
I am developing a vb.net desktop application that reads mails from the mailserver using pop and imap. The application is almost fnished .The problem is the some time when a command is send to retrieve a mail using GetMessage() functions the applications is going to a halt. So I tried to run the the code in debug mode and ran line by line.
What I noticed is in the while loop in GetMessage() function is
While Not tmpString.StartsWith(sPrefix)
tmpString = reader.ReadLine
msg = msg & tmpString & vbCrLf
End While
The reader reads line by line at certain point of time it got hangs. Some times it ill catch an exception and give an error. I am pasting the exception below:
"Received an unexpected EOF or 0 bytes from the transport stream".
But some times the applications will hang and go for a halt. This applications has to run 24/7. So if it hangs in the night or it will be problem. What I want is if the reader is not able to read from the stream after certain time period. The control has to be removed from the reader and the function has to return a message. I am new to this the network level applications and I am running shot of time.
Public Sub connect()
Dim objTCP As New TcpClient
Dim sslstream As Net.Security.SslStream
Dim reader As StreamReader = Nothing
[Code] .....
Here is my idea so far: I have a bunch of computers connected in a local network. One of them is a MySQL server, one will have a vb.NET program wich will act as a "second server" and the rest will be different clients. What I want to do is that the "second server" will send out some kind of message or network package to some of the clients in the network, and they will execute a code based on what message it is, or what kind of package it is. I'll give you a simple example:
[Code]...
I've always found deeper-knowledge articles elsewhere, but your community is the most co-operative and your forum article-editor is the best.I'm a Systems Engineer who works in an Anonymous Company. My indirect supervisor (my boss's boss) wanted to have a custom GMail Vacation Auto-Responder that would:Have a list of involved GMail accounts.2- Connect to GMail and identify unread messages.3- Auto-Reply to the senders of those unread messages with a custom auto-reply template.Well, this could have been done easily using the GMail Atom Feed url... but since the atom only provides access to the very latest 20 unread messages, it could not be used for that purpose.
So, I had only one of two choices, either use POP3 or IMAP. Of course, IMAP was the right candidate for many considerations, the most prudent of which is its resourceful command-set. I had to design the tool (a Windows Service in this case) with minimal data transfer/session time in mind, because Google becomes touchy when you over-use IMAP with its servers.I was new to the whole Socket/IMAP thing, so I had to get my feet wet. I designed the tool, planned it well, and thought the best work-flow would go like this: Well, my boss's boss had some comments - that he never really declared which makes them IMPLICIT :D :D :D - on the way the tool works, but he decided to spell the word only when I announced that my proto-type code is done. He is not supposed to be technically involved - I mean into code - although he really involves himself into bits and bytes, and he has not even seen the code, not to mention that he might not fully understand it, but yet somehow he declared that what I did was a waste of time.[code]
I'm trying to make a email client but my biggest problem is finding a component that is (preferably) free. I need one that works with IMAP and POP3. Also would be nice if it could handle sending emails (Via SMTP). It would also be great if it worked with gmail.
View 13 RepliesI have a .NET 2.0 *.dll that calls My.Computer.Network.Ping(). The *.dll is then run out of an *.exe via AppDomain.CreateDomain() and Invoke(). The problem is that this works just fine under Windows XP but under Windows 7, I get an exception saying that no network connection is available. I tried the Ping() call out of a small console application under Windows 7 and it works just fine.
[Code]....
I have a fairly simple piece of code:
Private _PurchaseDelivery as PurchaseDelivery
Protected Overrides Sub InsertItem(ByVal index As Integer, ByVal item As PurchaseDeliveryItem)
[Code]....
Which is inside a class which overrides a custom list base. The code is occassionaly throwing an unhandled exception, System.NullReferenceException, on this line when used in production:
If _PurchaseDelivery IsNot Nothing AndAlso _PurchaseDelivery.DefaultSKUBinID.HasValue Then
DeafultSKUBinID is declared as an Integer? (Nullable Int) in the PurchaseDelivery class. I cannot see what might be causing this error, why would this be returning an error?
How to check whether a column is null i use the following code but I got this error "Input string was not in a correct format."
[Code]....
When I put a break point to the last if clause in the sub ("If (backOrder < 0) Then", see below) it runs until the break point, if I put the break point further below, I get the following error:
Cannot insert the value NULL into column 'OrderID', table 'WHM.dbo.OrderDetails'; column does not allow nulls. INSERT fails. The statement has been terminated.
I've discovered first hand that it only happens when prodqty is bigger then qtyOnStock, thus executing the if clause.
The code:
Private Sub NCOSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NCOSubmit.Click
Dim sqlText As String = ""
[Code]....
I am writing some code as part of a framework for opening a file.The file is of custom type and should not be opened by more than one instance of my application. To stop multiple file opening I use a filestream to create a lock file and then keep said filestream open. This seems to work in preventing another instance of my application from opening the file ( as it will fail in recreating the lock stream in the files open code ) but if the file is on a network share and the network drops then the original application also can not access the file any more.The code to get the lock stream is as follows:
Try
' We need to keep this stream alive to prevent other applications gaining access to the lock
mLockStream = New FileStream(mLockPath, FileMode.CreateNew, FileAccess.Write, FileShare.None)[code]....
In this I create the lock stream the first time round and then if another application tries to create it, it throws an exception and stops them from getting any further. This is kind of how it needs to work, unfortunately as I said, if this is done across a network and then the network connection is dropped for some reason then I can not delete the lock stream as I get an IOException telling me a process cannot access the file as it is open in another process ( which shouldn't be happening I don't think).
I am trying to create a treeview in VB.net, the data has to be loaded from MSAccess 2010 database. When I try to run this program I get error : Argument Null Exception was unhandled, 'column' argument cannot be null and the program crashes. I have pasted the code as under:
Imports System.Data.OleDb
Public Class frmRating
Private Sub frmRating_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles
[code].....
I have a problem I want to make a server and client where the server is password protected and will make the client display files/folders in a designated folder which will be in the server's current directory and the client will ask what IP and password to connect to and if the password is correct is allows the client to access the files/folders in that folder in C.D. of the server and the client can download any file within the folder by clicking a button, yet don't even know where to start.
View 7 RepliesI have some code which gets child items for a menu via the GetChildren function which takes a list of menuData: Dim builtMenu As New List(Of MenuData)(_rawData.FindAll(Function(item) item.GroupingID = 0))
For Each menuData As MenuData In builtMenu
If menuData.Children IsNot Nothing Then
menuData.Children.AddRange(GetChildren(menuData))
End If
Next
If I check if menudata.children isnot nothing, it always is nothing because the GetChildren function is yet to run (providing the child items, which do exist). If I remove this check and just have this code:
Dim builtMenu As New List(Of MenuData)(_rawData.FindAll(Function(item) item.GroupingID = 0))
For Each menuData As MenuData In builtMenu
menuData.Children.AddRange(GetChildren(menuData))
Next
Then I am presented with a Object reference not set to an instance of an object error on menuData.Children.AddRange(GetChildren(menuData))
how can get and send something to server not download and upload(geting information for login users and send information to server)
View 10 RepliesIm gonna develop an application s/w using VB.Net & Oralce for a small company with 4 employees and a MD.
Each has their own PC connected through a Hub.The task of MD is to check in the employees daily work progress & to calculate their incentives in daily basics...
And each emp should be able to check their daily incentives from their PC using the passwords provided by the s/w Now my doubt is. how should I show the daily incentives updates to all emps PC from MD pc?(i.e) if i install the s/w in all PCs, will they'll get the updates automatically? DOES VB.NET can be used here or should we use ASP.NET?
I want to use my SQL Server DB over a network. I have setup server client applications.The thing is for my current DB, I need to give it to server administrator who attaches the DB to SQLExpress instance and only then my network computers can access that.My question is, is there any way that my vb.net application could attach this DB through code at runtime, and DB gets all rights that are necessary to access it over the network?
I can attach DB using Create procedure but for this I need to know the sa password. Is there any way that I could achieve the same goal without sa passord and sa intervention?My only purpose is to enable my DB to be accessible over the network with all read /Write rights.
I have a nearly finished program. I have been able to install and run on my development PC, but I can't install it on another PC on same network.
Where to ask for help on this one please. Some very basic help is needed I think.
Using Visual Studio 2008, Vis Basic
if there was a way that I could get all the IP's on the network and put them into a listbox?
View 4 RepliesI'm using the details on connecting to a server from a client here: [URL]
It's quite out dated but I just need it for a quick project. I need the client to auto-connect. This program will be running on the LAN only, is there a way to find on what computer the server is running on (i.e. all computers hosting the specific server on port x). I've seen it on a couple of games that run on LAN. Without access to the internet, they manage to display all available games on the local LAN. I'm doing this with VB.net.
how can i detect in VB.Net 2010 that which network card I'm currently using for internet? Like Local Area network, Wireless Network Connection, Cellular Modem or Bluetooth Modem?
View 4 RepliesHow could i get name of Active exe on Network pc?
View 1 Repliesi want to track the application for that i am storing network user in table. how to get the network user name in .net 1.0
View 2 RepliesPart of an application that I'm building searches the network that the current computer is connected to and returns a list of the IP & MAC addresses and the hostname. It is based largely on the post by richard__deeming at [URL] At the moment, it will only get the information about computers that are in the same workgroup, but I have several computers that need to be shown, that are joined to a domain rather than the workgroup. How can I get the program to find every computer on the network?
View 2 RepliesI need to know how the network is being monitored by the help of vb.net.
View 1 Repliesi need a code on how to detect network in the dashboard.
View 2 RepliesIs there any easy way to find out , which network am I connected to via programmatically. I mean we can check the Network is available through "My.Computer.Network.IsAvailable", same way can i find the name the network (Either Direct or via VPN).
I have to do something if my network is connected to a particular network.