App can't find reference to ApplicationBasePage


Author
Message
Jeff Pagley
Jeff Pagley
Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)
Group: StrataFrame Users
Posts: 223, Visits: 893
I am attempting to integrate SF into an existing Web app.  The SF Web sample is working fine.  From what I can tell, I have setup the existing Web app with all of the same folders and references as the sample.  However, when I try to inherit the ApplicationBasePage it tells me it can't find it (see code below)

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace CampaignTracker {
    public partial class _Default :  ApplicationBasePage

    {
        protected void Page_Load(object sender, EventArgs e) {

        }
      
    }
}

What am I missing?

Thanks,

Jeff
Replies
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
I PM'd you Jeff.
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
OK, Jeff, it's weird. I don't know how to explain it, but the App_Code folder in that project is broken.  Maybe it's in the wrong project-type or the DevExpress project didn't configure it property; I don't know, but anything in the App_Code folder is broken.  

Any class you place in the App_Code folder cannot be seen by any other code file in the project, and it can't see any of the code (or even references Blink) of the project.  I created a new folder in your project and called it "Code" and moved the ApplicationBasePage to there, and everything started working.  I did have change the inherit line to the full path of the ApplicationBasePage (with namespace) in your Default.aspx.cs file, but that was it.  Just moving the ApplicationBasePage.cs file out of the App_Code folder worked. 

Who would have thunk it.  Strange things are afoot at the Circle-K...
Jeff Pagley
Jeff Pagley
Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)Advanced StrataFrame User (641 reputation)
Group: StrataFrame Users
Posts: 223, Visits: 893
WOW.  That is weird.  I did what you said and it worked.  After all of this, hopefully others can benefit from what we found out.

Thanks,

Jeff
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search