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.

--
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! |
********************************************
 

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