Click here to Skip to main content
16,005,467 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP.NET menu control is not working with IE6.0 Pin
salon15-Aug-07 23:09
salon15-Aug-07 23:09 
Question[Message Deleted] Pin
S A R I T H15-Aug-07 20:57
S A R I T H15-Aug-07 20:57 
AnswerRe: Threading in asp.net Pin
Michael Sync15-Aug-07 21:01
Michael Sync15-Aug-07 21:01 
GeneralRe: Threading in asp.net Pin
S A R I T H15-Aug-07 21:15
S A R I T H15-Aug-07 21:15 
GeneralRe: Threading in asp.net Pin
Michael Sync15-Aug-07 21:20
Michael Sync15-Aug-07 21:20 
AnswerRe: Threading in asp.net Pin
Christian Graus15-Aug-07 23:28
protectorChristian Graus15-Aug-07 23:28 
QuestionSending Email Pin
.NET- India 15-Aug-07 20:47
.NET- India 15-Aug-07 20:47 
AnswerRe: Sending Email Pin
Michael Sync15-Aug-07 20:58
Michael Sync15-Aug-07 20:58 
http://www.systemwebmail.com/faq/4.2.3.aspx

This is probably the most common error thrown by System.Web.Mail. If you get this error, the FIRST THING TO DO, is to write out all InnerException messages.
This will tell you the true error and it will be easer to fix. See Checking the Exception (READ THIS FIRST)[^] for more information.

Although this error message implies there is a permission problem, typically there isn't. However, after trying everything else, you may will want to try the suggestions listed at Error loading type library/DLL.

Now, on to some suggestions:

Suggestion 1
Specify a valid mail server for the SmtpMail.SmtpServer property. If that property is not set, at least set it to 127.0.0.1. For example:

SmtpMail.SmtpServer = "127.0.0.1"


Suggestion 2
If you are using "localhost" or "127.0.0.1" as the SmtpMail.SmtpServer, you may not have permissions to relay through the IIS SMTP Service. To allow access, open up the IIS Admin MMC. Locate the SMTP Virtual Server, and right-click, then select Properties. On the Access tab, click the Relay button. In the Relay Restrictions dialog, grant your IP address (127.0.0.1) to the Computers listbox. Close down all dialogs, and restart the SMTP Service.

Suggestion 3
If you are using "localhost" or "127.0.0.1" as the SmtpMail.SmtpServer, make sure Anonymous access is allowd. To allow access, open up the IIS Admin MMC. Locate the SMTP Virtual Server, and right-click, then select Properties. On the Access tab, click the Authentication button. Be sure "Anonymous Access" is the only checkbox checked. Close down all dialogs, and restart the SMTP Service.

Suggestion 4
The email address does not have a valid TO address. After iterating through the InnerExceptions, you may find this error message actually has to do with relaying. Try sending a test email to an email address that exists on the server specified by SmtpMail.SmtpServer. If you can send an email to that server, then it is a relay issue. Talk to your mail server administrator about letting your code relay through the mail server.

Suggestion 5
Use a real FROM address that exists on the SmtpMail.SmtpServer. Do not use something like "asdf@asdf.com", or some other bogus address as your MailMessage.FromProperty. More advanced mail servers will catch this, and will deny relaying.

Suggestion 6
I have no idea why this suggestion works, but I found it on the web. I figured I would mention it, just in case Suggestion 1 did not work. Instead of specifying

SmtpMail.SmtpServer = "127.0.0.1"

try

SmtpMail.SmtpServer.Insert( 0, "127.0.0.1 or your mail server name here")




Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. Smile | :)

GeneralRe: Sending Email Pin
.NET- India 15-Aug-07 21:46
.NET- India 15-Aug-07 21:46 
GeneralRe: Sending Email Pin
Michael Sync16-Aug-07 3:45
Michael Sync16-Aug-07 3:45 
Questioncheckbox validation inside gridview using javascript Pin
santosh_gis15-Aug-07 20:28
santosh_gis15-Aug-07 20:28 
AnswerRe: checkbox validation inside gridview using javascript Pin
Imran Khan Pathan15-Aug-07 23:27
Imran Khan Pathan15-Aug-07 23:27 
Questionscrollbar for gridview Pin
biswa4715-Aug-07 20:26
biswa4715-Aug-07 20:26 
AnswerRe: scrollbar for gridview Pin
Michael Sync15-Aug-07 20:54
Michael Sync15-Aug-07 20:54 
QuestionHow to populate a Drop down list using javascript using ajax Pin
anujose15-Aug-07 20:26
anujose15-Aug-07 20:26 
AnswerRe: How to populate a Drop down list using javascript using ajax Pin
Michael Sync15-Aug-07 20:51
Michael Sync15-Aug-07 20:51 
Questionhow to populate data in ddl Pin
biswa4715-Aug-07 20:18
biswa4715-Aug-07 20:18 
AnswerRe: how to populate data in ddl Pin
Michael Sync15-Aug-07 20:47
Michael Sync15-Aug-07 20:47 
QuestionWebService Problem Pin
jayarajmrj15-Aug-07 20:04
jayarajmrj15-Aug-07 20:04 
AnswerRe: WebService Problem Pin
Michael Sync15-Aug-07 20:12
Michael Sync15-Aug-07 20:12 
Questionthemes and skins asp2.0 Pin
saravanan0515-Aug-07 19:31
saravanan0515-Aug-07 19:31 
AnswerRe: themes and skins asp2.0 Pin
Michael Sync15-Aug-07 20:10
Michael Sync15-Aug-07 20:10 
QuestionC# to Vb.net Convert error in string place..., Pin
Member 387988115-Aug-07 19:10
Member 387988115-Aug-07 19:10 
AnswerRe: C# to Vb.net Convert error in string place..., Pin
cometburn00715-Aug-07 19:13
cometburn00715-Aug-07 19:13 
GeneralRe: C# to Vb.net Convert error in string place..., Pin
Member 387988115-Aug-07 19:37
Member 387988115-Aug-07 19:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.