I'm having a smiliar problem with a custom module built in VS2005. When the "View" ascx page tries to reference "Me.ModulePath", the page throws up the BC30456 error and says "ModulePath" is not a member of "... the page ascx ..." This only happens in the Hosted environment running Win2k3, IIS 6.0. On my development machine, it works just fine.
I am, however, using the WAP (Web Application Project) model because this code is to be re-distributed and needs to be pre-compiled. So, I can't use either option mentioned previously (using WSP, or recompiling all the DNN dlls). I used Vladin's "blank module" approach to get my module started.
Are there any other options for getting around this problem when compiling pre-built assemblies for distributing modules?
Thanks.
-- W.G.