precompile

G

Gabriel Pineda

hi everybody, i have an issue for you:
i have an operative site wich i'm trying to precompile to protect the code
that will be installed on client. the issue is: if i run the precompile
(aspnet_compiler) it throw me some errors:
ex: Name 'CN' is not declared.

this is because the variable es declared in another page, that includes the
one which throw the error.
how can i bypass these "errors" ? how can i precompile the site? is it
possible?

thanks!
 
C

Cowboy \(Gregory A. Beamer\)

My suggestion is stop using includes. .NET is a compiled paradigm, not
interpreted. If you try to make it act like interpreted, you will lose some
abilities with compilation.

It would be better to encapsulate the logic in the include in a class and
use it when you need to. You can then precompile without problem.
 

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

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top