Error Message: Could not load type

I have 2 web form pages. One loads without error. One displays error.  
I cannot find any difference between them.

This works:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="BestPicks.aspx.cs"
    Inherits="StockProMax.BestPicks" %>

This does not work:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="AlionEval.aspx.cs"

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 type 'StockProMax.AlionEval'.

Source Error:

Line 1:  <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master"
Line 2:      AutoEventWireup="true" CodeBehind="AlionEval.aspx.cs"
Line 3:      Inherits="StockProMax.AlionEval"

 Source File:  /AlionEval.aspx    Line:  1

Steps to reproduce:
Select Best Picks from the Features menu.
The Best Picks page opens and tells you that you must log in. This is OK.

Now select Alion Demo.
The error will display.

What should I look at?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
Check in AlionEval.aspx.cs, very likely the class is not exactly StockProMax.AlionEval.
Namespace not correct, or class name not being the same. Note that it may be a case sensitivity issue (I had that recently after copying a web page)
DovbermanAuthor Commented:
BestPicks works:

namespace StockProMax
    public partial class BestPicks : System.Web.UI.Page

AlionEval does not work:

namespace StockProMax
    public partial class AlionEval : System.Web.UI.Page


Here is more info.

AlionEval works from localhost, but not from hosted site.

Should I copy BestPicks, rename it, and upload to the hosted site?
Guy Hengel [angelIII / a3]Billing EngineerCommented:
Ensure that both class files match the class name and namespace
ensure you recompile full and upload the aspx and dll files.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DovbermanAuthor Commented:
The dll hint did it. I did a full recompile and manually uploaded new and changed files via ftp. However I forgot to Publish to the host.

DovbermanAuthor Commented:
Perfect.  Thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.