Solved

ASP.NET Error:BC30451 Issue

Posted on 2007-04-05
9
1,026 Views
Last Modified: 2012-06-27
Hello Experts,

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.

Specifically:

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.

Source Error:

Line 5:      Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Line 6:  
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.

Thanks,
Lucas
0
Comment
Question by:Kudzullc
  • 5
  • 2
9 Comments
 
LVL 35

Expert Comment

by:YZlat
ID: 18860674
did you also copy MailHelper component to the server?
0
 
LVL 35

Expert Comment

by:YZlat
ID: 18860677
show me where do you declare it in your code
0
 
LVL 3

Author Comment

by:Kudzullc
ID: 18861156
Imports MailHelper
Partial Class SendEmail
    Inherits System.Web.UI.Page

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

        MailHelper.SendMailMessage("PARAMS")
    End Sub
End Class


By Declare do you mean Dim MailHelper as New MailHelper()??

0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 3

Author Comment

by:Kudzullc
ID: 18861160
And yes, the MailHelper.vb file was copied with the entire Folder.

I will be absent until tomorrow after this post.  Thanks for your help!

Lucas
0
 
LVL 3

Author Comment

by:Kudzullc
ID: 18875372
Any Ideas?
0
 
LVL 3

Author Comment

by:Kudzullc
ID: 18882822
YZlat,

I was reading something about a precompiled vb file that occurs after a publish routine is run.  Could it be that i am missing this file?  When I publish the site then 'copy' (not CopyToWeb tool) the entire folder i get a App_Web issue?

Spefically

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load the assembly 'App_Web_suhodngd'. Make sure that it is compiled before accessing the page.

Source Error:


Line 1:  <%@ page language="VB" autoeventwireup="false" inherits="_Default, App_Web_suhodngd" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 

Source File: /testsite/default.aspx    Line: 1

This is an entirely different error.  Any Ideas?

Thanks for your help!

Lucas
0
 
LVL 3

Accepted Solution

by:
Kudzullc earned 0 total points
ID: 18897783
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now