Runtime Error
-
Hi to all, I am sending an email by using VB with ASP.Net. The code is as follows... MMsg = New MailMessage MMsg.From = GetUserEmail() MMsg.To = txtto.Text MMsg.Subject = "Invitation...!" MMsg.Body = Invitation MMsg.Priority = MailPriority.High SmtpMail.SmtpServer = "MyServername" SmtpMail.Send(MMsg) it works fine whenever running this on local network but it shows an runtime error after publishing on web. The error messsage is as follows... Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". Anybody can help why this error occurs? Thanks
Pravin
-
Hi to all, I am sending an email by using VB with ASP.Net. The code is as follows... MMsg = New MailMessage MMsg.From = GetUserEmail() MMsg.To = txtto.Text MMsg.Subject = "Invitation...!" MMsg.Body = Invitation MMsg.Priority = MailPriority.High SmtpMail.SmtpServer = "MyServername" SmtpMail.Send(MMsg) it works fine whenever running this on local network but it shows an runtime error after publishing on web. The error messsage is as follows... Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". Anybody can help why this error occurs? Thanks
Pravin
Probably your mail server is not configured properly or you have used incorrect reference to it
When you fail to plan, you are planning to fail.
-
Hi to all, I am sending an email by using VB with ASP.Net. The code is as follows... MMsg = New MailMessage MMsg.From = GetUserEmail() MMsg.To = txtto.Text MMsg.Subject = "Invitation...!" MMsg.Body = Invitation MMsg.Priority = MailPriority.High SmtpMail.SmtpServer = "MyServername" SmtpMail.Send(MMsg) it works fine whenever running this on local network but it shows an runtime error after publishing on web. The error messsage is as follows... Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". Anybody can help why this error occurs? Thanks
Pravin
If you go into the web.config and set the attribute described to Off, then you get to see the actual error message...
-
If you go into the web.config and set the attribute described to Off, then you get to see the actual error message...
yes i know that. but i want to why this error is occured. it works fine in intranet.
Pravin