Hi,
I want to know why there is no bin folder for ASP.net 2.0 applications??
Also , in VS 2003 when ever I made any changes I would need to recompile the code and build the application where as in VS 2005 I can simply save the changes and refresh the Browser and get the new updated changes .
Can any body please tell me How it works??
Thanks in Advance
Hi,
In ASP.net 2.0, two ways of compiling were introduced.
The first one, In Place Compilation, is the default. ASP.net will then compiles a page when it's accessed for the first time. It's great to use for development, since you don't have to wait.
The second one is precompilation. You can also use it by using a new utility ASPNET_COMPILER. When a site is pre-compiled, basically, all pages in the directory are compiled. It's preferred for deployment.
Since there are no files being compiled before you run, the need for the bin directory is gone. However, when you use external DLLs (a component you bought), this is to be placed in the bin.
The actual compiled files are placed in the Temporary ASP.net files directory under Microsoft.net -->Framework --> v2.0xxx
HTH
Hi,
The \app_code directory is a special directory that holds uncompiled classes.
At runtime, the ASP.NET runtime compiles the contents of this directory into
an assembly that is automatically referenced by the ASPX pages in the application.
If the code isn't placed in the app_code directory,
then the classes in your code aren't compiled into assemblies,
and you get error messages like the one you got.
Read this document called "ASP.NET 2.0 Internals" :
After you read it, you will understand better how the App_Code directory works,
and why placing code there is necessary if your classes are referenced in ASPX files.
0 comments:
Post a Comment