precompile

  • Thread starter Thread starter Gabriel Pineda
  • Start date Start date
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!
 
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.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
 
Back
Top