ASP.NET Error:BC30451 Issue
Posted on 2007-04-05
I just recently began creating ASP.NET pages and am running into what seems to be a newbie issue and I am sure it has an easy fix. I have created a few pages to send an email using the SMTP settings in the web.config and all is well when run in localhost env. The Email is sent and I am sure the code is fine.
So, when I copy the folders using the CopyToWeb tool to my live web server to just test, learn and run remotely, I get a Compiler Error Message: BC30451. Explaining that a class used to intitialize and create an email is not found.
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: BC30451: Name 'MailHelper' is not declared.
Line 5: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Line 7: MailHelper.SendMailMessage("PARAMS")
Line 8: End Sub
Line 9: End Class
Source File: E:\webs\~\SendEmail.aspx.vb Line: 7
I have seen people with this exact error and they spoke of the IDE automatically creating this coorelation.
Am I not supposed to CopyToWeb and expect the files to just work?
Any Help OR Ideas? I have reviewed a multitude of Questions asked on this site and others to no avail.
Thanks in advance.