This program works fine on my local server but when I upload it into the live web server it gives me this compilation error:
Does anyone have a good idea of what I should add?
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30506: Handles clause requires a WithEvents variable.
Source Error:
Line 2: <%@ import Namespace="System.Web.Mail" %>
Line 3: <script runat="server">
Line 4: Sub Custom ...
Go to the complete details ...