I have the exact same problem that is described in this question:
Add Standalone ASP.Net Application Into Existing ASP.Net Website
However the solution that is marked as correct isn't working for me. Here's my scenario:
I'm writing an Asp.net web application for a company that needs it to run under a site which runs a 3rd party application for which I don't have the source code (it needs to run here so that it can share the same authentication if possible). I have created a sub-directory in the root of the site and converted it into an application. I even gave it a separate app pool.
However, when I try to browse to this new app, it started throwing various config errors. It's apparently reading from the parent site's web.config file. It is trying to load various handlers and a role manager. So, I added those same sections to my config but added a clear /> element. Problem solved.
However, now it's giving me compiler errors:
Compiler Error Message: CS0246: The type or namespace name 'NamespaceX' could not be found (are you missing a using directive or an assembly reference?)
public virtual NamespaceX.NamespaceY.Framework.Bus.PortalPageCollection PortalPageCollection2 {
get {
return ((NamespaceX.NamespaceY.Framework.Bus.PortalPageCollection) (this.GetPropertyValue("PortalPageCollection2")));
}
"NamespaceX.NamespaceY.Framework.Bus.PortalPageCollection" is the name of one of their Dll's.
Why would this be happening in a separate app even after I've given it a separate application pool?
Thanks!