ASPX unable to find class properties

G

Guest

Hello,

When I try to reference a class property from within an ASPX file, I get a
"reference not found" error. This only happens in our production
environment, where we have the Assemblies loaded in the GAC. On our
Development machines, where we the Assemblies in the local "/bin" folder, it
works fine.

We've been able to get around this by creating a "wrapper" property for the
actual class property in the ASPX code-behind file, but I'm curious why ASPX
can't find it when it's in the GAC.

I suppose, we could also make it work by putting the Assemblies into the
local /bin folder, but our Production environment has hundreds of /bin
folders, so it wouldn't be very nice.

Thanks.
 
B

bruce barker

while the compiled code is in the gac, the .net compiler (when it compiles
the aspx page) needs additional information that is stored in the dlls. if
you don't want to install the dll's on the server then you will need to use
the wrapper approach.


-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top