﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WebForms (How do I?)  » App can't find reference to ApplicationBasePage</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 10 Apr 2026 09:55:32 GMT</lastBuildDate><ttl>20</ttl><item><title>App can't find reference to ApplicationBasePage</title><link>http://forum.strataframe.net/FindPost31989.aspx</link><description>I am attempting to integrate SF into an existing Web app. &amp;nbsp;The SF Web sample is working fine. &amp;nbsp;From what I can tell, I have setup the existing Web app with all of the same folders and references as the sample. &amp;nbsp;However, when I try to inherit the ApplicationBasePage it tells me it can't find it (see code below)&lt;br/&gt;&lt;br/&gt;&lt;div&gt;&lt;div&gt;using System;&lt;div&gt;using System.Data;&lt;div&gt;using System.Configuration;&lt;div&gt;using System.Collections;&lt;div&gt;using System.Web;&lt;div&gt;using System.Web.Security;&lt;div&gt;using System.Web.UI;&lt;div&gt;using System.Web.UI.WebControls;&lt;div&gt;using System.Web.UI.WebControls.WebParts;&lt;div&gt;using System.Web.UI.HtmlControls;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;namespace CampaignTracker {&lt;div&gt;&amp;nbsp; &amp;nbsp; public partial class _Default : &amp;nbsp;ApplicationBasePage&lt;br/&gt;&lt;br/&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; {&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected void Page_Load(object sender, EventArgs e) {&lt;br/&gt;&lt;br/&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;div&gt;}&lt;br/&gt;&lt;br/&gt;&lt;div&gt;What am I missing?&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Thanks,&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Jeff</description><pubDate>Fri, 26 Apr 2013 08:33:17 GMT</pubDate><dc:creator>Jeff Pagley</dc:creator></item><item><title>RE: App can't find reference to ApplicationBasePage</title><link>http://forum.strataframe.net/FindPost32001.aspx</link><description>WOW.&amp;nbsp; That is weird.&amp;nbsp; I did what you said and it worked.&amp;nbsp; After all of this, hopefully others can benefit from what we found out.&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Jeff</description><pubDate>Fri, 26 Apr 2013 08:33:17 GMT</pubDate><dc:creator>Jeff Pagley</dc:creator></item><item><title>RE: App can't find reference to ApplicationBasePage</title><link>http://forum.strataframe.net/FindPost32000.aspx</link><description>OK, Jeff, it's weird. I don't know how to explain it, but the App_Code folder in that project is broken. &amp;nbsp;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. &amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;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 &lt;span&gt;:blink:&lt;/span&gt;) of the project. &amp;nbsp;I created a new folder in your project and called it "Code" and moved the ApplicationBasePage to there, and everything started working. &amp;nbsp;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. &amp;nbsp;Just moving the ApplicationBasePage.cs file out of the App_Code folder worked.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Who would have thunk it. &amp;nbsp;Strange things are afoot at the Circle-K...</description><pubDate>Thu, 25 Apr 2013 15:23:41 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: App can't find reference to ApplicationBasePage</title><link>http://forum.strataframe.net/FindPost31999.aspx</link><description>I PM'd you Jeff.</description><pubDate>Thu, 25 Apr 2013 13:19:50 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: App can't find reference to ApplicationBasePage</title><link>http://forum.strataframe.net/FindPost31998.aspx</link><description>Hi Ben,&lt;br/&gt;&lt;br/&gt;I was wandering if you had a chance to look at the zip project I sent you via email with the ApplicationBasePage reference error?&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Jeff</description><pubDate>Thu, 25 Apr 2013 12:57:43 GMT</pubDate><dc:creator>Jeff Pagley</dc:creator></item><item><title>RE: App can't find reference to ApplicationBasePage</title><link>http://forum.strataframe.net/FindPost31992.aspx</link><description>The difference is that the web site works more like a basic folder containing a bunch of independent web pages. &amp;nbsp;The pages are generally compiled upon request, so you can deploy a single page at a time or modify a page without needing to redeploy the entire web site. &amp;nbsp;The web apps generally require you to redeploy the entire thing together because it is compiled into a DLL and the .aspx pages are just placeholders. &amp;nbsp;If you look at the deployed copies, they are mostly empty. &amp;nbsp;The web app acts more like a typical .NET assembly project with the way it references other assemblies and such and we find web apps just easier to work with.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;The most likely issue is a namespace resolution problem. &amp;nbsp;The ApplicationBasePage is in a different namespace than the rest of the site, and it's not always easy to figure it out. &amp;nbsp;You might be able to use the "Resolve" feature of C# to find the namespace to the class. &amp;nbsp;Right-click ApplicationBasePage in your WebForm and choose "Resolve -&amp;gt; using 'Namespace'" from the context menu and it will add the appropriate using statement to the top of the class (this is one of the best features that C# has that VB.NET does not...).&lt;br/&gt;&lt;br/&gt;&lt;div&gt;If that doesn't work, then I'm not sure what else to try. &amp;nbsp;You'll probably need to zip the project and email it to me so I can take a look at it.</description><pubDate>Tue, 23 Apr 2013 07:44:27 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: App can't find reference to ApplicationBasePage</title><link>http://forum.strataframe.net/FindPost31991.aspx</link><description>Hi Ben,&lt;br/&gt;&lt;br/&gt;I had already added the ApplicationBasePage in the App_Code folder just like the working sample so that is not the problem.&amp;nbsp; This is my first ASP.NET app.&amp;nbsp; As you had&amp;nbsp;mention, I just realize I am&amp;nbsp;working with a web app and not a website.&amp;nbsp; Because I am new, I am not sure what the difference is.&amp;nbsp; So what is the difference and what do I need to do to get SF integrated into the Web app.&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Jeff</description><pubDate>Mon, 22 Apr 2013 19:33:04 GMT</pubDate><dc:creator>Jeff Pagley</dc:creator></item><item><title>RE: App can't find reference to ApplicationBasePage</title><link>http://forum.strataframe.net/FindPost31990.aspx</link><description>There should be an ApplicationBasePage template that you can use to add a new one to your project. &amp;nbsp;If it's not there, it might be because you're in a website instead of a web app or something like that. &amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;The code is quite straightforward:&lt;br/&gt;&lt;br/&gt;&lt;div&gt;&lt;div&gt;using MicroFour.StrataFrame.Tools;&lt;div&gt;using System.Web.Configuration;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;public class ApplicationBasePage : MicroFour.StrataFrame.UI.Web.BasePage, ITypeResolver&lt;div&gt;{&lt;br/&gt;&lt;br/&gt;&lt;div&gt;#region [ Business Object Declarations ]&lt;br/&gt;&lt;br/&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;//-- Business Objects defined within this class will be available to&amp;nbsp;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;// &amp;nbsp; inherited pages as binding sources to bindable controls. &amp;nbsp;These&amp;nbsp;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;// &amp;nbsp; business objects will also be persisted within session variables&amp;nbsp;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;// &amp;nbsp; and retrieved each time the page loads.&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;div&gt;#endregion&lt;br/&gt;&lt;br/&gt;&lt;div&gt;#region [ ITypeResolver Implementation ]&lt;br/&gt;&lt;br/&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; /// Must be used by the StrataFrame Application Framework to resolve a&amp;nbsp;&lt;div&gt;&amp;nbsp; &amp;nbsp; /// type within this ASP.NET project due to the fact that the Entry Assembly&amp;nbsp;&lt;div&gt;&amp;nbsp; &amp;nbsp; /// cannot be evaluated in an ASP.NET application.&lt;div&gt;&amp;nbsp; &amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; /// &amp;lt;param name="TypeName"&amp;gt;&amp;lt;/param&amp;gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; /// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; /// &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; public System.Type ResolveType(string TypeName)&lt;div&gt;&amp;nbsp; &amp;nbsp; { &amp;nbsp; &amp;nbsp;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //-- Return the gettype for the given TypeName&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return System.Type.GetType(TypeName, false, true);&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;div&gt;&amp;nbsp; &amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; /// Required by the base class to allow the StrataFrame Application Framework&amp;nbsp;&lt;div&gt;&amp;nbsp; &amp;nbsp; /// to access the assemblies referenced by this project.&lt;div&gt;&amp;nbsp; &amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; /// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; /// &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; public CompilationSection GetCompilationSection()&lt;div&gt;&amp;nbsp; &amp;nbsp; {&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;return (CompilationSection) WebConfigurationManager.GetSection("system.web/compilation");&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;div&gt;#endregion&lt;br/&gt;&lt;br/&gt;&lt;div&gt;}</description><pubDate>Mon, 22 Apr 2013 16:12:05 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>