Groups | Blog | Home
all groups > dotnet datatools > november 2004 >

dotnet datatools : Not able to solve problem in posting articles as I am developing newsreader in vb.net


balu
11/22/2004 9:55:04 PM
Hi,

I am also sending the code that is showing error

I am developing a Newsreader in vb.net and i am getting a problem in posting
article to newserver for a particular set of newsgroups. i developin g this
newsreader using nntp commands.I need vb.net code for posting a article . I
getting a problem in defining a article format.

I am also sending the code that is showing error



tc.Connect("news.microsoft.com", 119)

ns = tc.GetStream()



sr = New StreamReader(ns, Encoding.Default)

sw = New StreamWriter(ns, Encoding.ASCII)

sw.AutoFlush = True



MsgBox(sr.ReadLine())

sw.WriteLine("post" & vbCrLf)

MsgBox(sr.ReadLine())

sw.WriteLine("from: " & "balu" & " (" & "baluveer_mukkamala" & ")" &
vbCrLf)

response = sr.ReadLine()

sw.WriteLine("newsgroups: " & "microsoft.public.test.here" &
vbCrLf)

sw.WriteLine("subject: " & "visualbasic" & " (" & "vbcode is
ready to drink" & ")" & vbCrLf)

sw.WriteLine(vbCrLf)

sw.WriteLine("are you ready to meet me for getting source codes"
& vbCrLf)

sw.WriteLine(vbCrLf)

sw.WriteLine(".")

sw.WriteLine(vbCrLf)



response = sr.ReadLine()





showing Error:



441 (606) article rejected ____ header missing





Kindly , Send me code for posting article in vb.net using nntp command
"post".

Please send code only in vb.net but not in c# and also with out using any
dll's


with regards,
balu.



AddThis Social Bookmark Button