Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Runtime Error

Runtime Error

Scheduled Pinned Locked Moved ASP.NET
sysadminhelpcsharpasp-netsecurity
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pavya_Cool
    wrote on last edited by
    #1

    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

    W P 2 Replies Last reply
    0
    • P pavya_Cool

      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

      W Offline
      W Offline
      www Developerof NET
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • P pavya_Cool

        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

        P Offline
        P Offline
        Paddy Boyd
        wrote on last edited by
        #3

        If you go into the web.config and set the attribute described to Off, then you get to see the actual error message...

        P 1 Reply Last reply
        0
        • P Paddy Boyd

          If you go into the web.config and set the attribute described to Off, then you get to see the actual error message...

          P Offline
          P Offline
          pavya_Cool
          wrote on last edited by
          #4

          yes i know that. but i want to why this error is occured. it works fine in intranet.

          Pravin

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups