G
Guest
Hello
I am using Cdo.Message to parse .eml files using VB.NET but its not working.
I get error as "The object does not support this type of datasource"
My code is as follows:
Imports Cdo
Imports ADODB
Dim objCdo as new Cdo.Message
Dim fs as new ADODB.Stream
fs.Open
fs.LoadFromFile("c:\test\test.eml")
try
objCdo.DataSource.OpenObject(fs,"_Ifs")
catch ex as exception
Response.write(ex.message)
end try
But the above same code works in ASP
Can anybody help me to solve this?
Thanks in advance
Regards,
Pauravi
I am using Cdo.Message to parse .eml files using VB.NET but its not working.
I get error as "The object does not support this type of datasource"
My code is as follows:
Imports Cdo
Imports ADODB
Dim objCdo as new Cdo.Message
Dim fs as new ADODB.Stream
fs.Open
fs.LoadFromFile("c:\test\test.eml")
try
objCdo.DataSource.OpenObject(fs,"_Ifs")
catch ex as exception
Response.write(ex.message)
end try
But the above same code works in ASP
Can anybody help me to solve this?
Thanks in advance
Regards,
Pauravi