You must Sign In to post a response.

Error loading type library/DLL. in system.web.mail when i use upload my code in server

The forum thread has not been reviewed by Editors yet. Readers are advised to use their best judgement before accessing this thread.
This thread will be reviewed shortly.
If you think this thread contain inappropriate content, please report to webmaster.
Hai All
i send email and it's working on local server at home
i've uploaded my file to webhosting.net site
and i get this error when i send the email :

Error loading type library/DLL.
Exception Details: System.Runtime.InteropServices.COMException: Error
loading type library/DLL.
i line : System.Web.Mail.SmtpMail.Send(mail)

plz send me suggestion as soon as

CODE is below

Dim mail As New MailMessage
mail.To = rc
mail.From = sd
mail.Bcc = "abhl@yahoo.com"
mail.Cc = "rajhe@jjj.com"
'mail.Bcc = "hhhhan@h.in"
mail.BodyFormat = MailFormat.Html
mail.Subject = "testing forh"
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver", "smtp.mahhom")
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "25")
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing", "2")
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") 'basic authentication
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "h4u") 'set your username here
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "hh1") 'set your password here
'SmtpMail.SmtpServer = "smtp.mahom" 'your real server goes here
mail.Body = "<font face=""Verdana"">This is an testing of emailing User-Entry " & "If you find it in your's Inbox , Please delete it." & dataGridHTML
'SmtpMail.Send(mail)
System.Web.Mail.SmtpMail.SmtpServer = "smtp.mhom"
System.Web.Mail.SmtpMail.Send(mail)


Comments

Author: Atal Bihari Upadhyay30 Oct 2004 Member Level: Gold   Points : 2

I feel this problem is related with dotnet framework.

Try to run dotnetfix.exe on the server m/c and Ihope this problem will go.

Regards.

Author: Shashijeevan M.P.02 Nov 2004 Member Level: Silver   Points : 2

Hi anil,

The SMTP host property is set to 'smtp.mahom' it this correct host?

Could catch this exception and post the stack trace?

Also, you can verify with the hosting site if there is any support available from them because they might have encountered such problems earlier and might have have got ready solution.

regards,
shashi


Sign In to post your comments