* is not declared. It may be inaccessible due to its protection level

I have set this up like this so I can use the master page and functions from my main site in my microsites.

Problem:

If I try and reference any of the functions in the main site's functions.vb, I get the error "'function name' is not declared. It may be inaccessible due to its protection level". There are no compiling errors.