Mike,
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" :
http://msdn.microsoft.com/library/de.../internals.asp
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.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ :
http://asp.net.do/faq/
ASPNETFAQ.COM :
http://www.aspnetfaq.com/
Foros de ASP.NET en Español :
http://asp.net.do/foros/
======================================
"mike" <so**********@gmail.com> wrote in message
news:u4**************@TK2MSFTNGP15.phx.gbl...
i have a compiled code but it is behind code of pages
if behind code such as XXX.aspx.cx put into App_Code folder it works. but it's not error
message occur like below
Error 4 Could not load type 'Gajet.GDKHome.Web.Modules.Company.Ci'.
C:\Project2005\WebSite\Gajet2006-2\Modules\Company\Ci.ascx 4
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ue**************@tk2msftngp13.phx.gbl... re:i wonder if bin folder still use in asp.net 2.0
Yes, it is.
re: i don't wanna bin folder in asp.net 2.0
Why not ?
re: so when i delete bin folder website is down.
Do you have compiled code in the bin folder,
or class files in the App_Code directory ?
If you do, you need the bin directory.
If you don't, you can delete it.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espa?l : http://asp.net.do/foros/
======================================
"mike" <so**********@gmail.com> wrote in message
news:e9**************@TK2MSFTNGP15.phx.gbl... it's really confuse to me
i don't wanna bin folder in asp.net 2.0
so when i delete bin folder website is down.
how do i do?
"mike" <so**********@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
i wonder if bin folder still use in asp.net 2.0
when i migration website for 1.1 how sholud i do?
i guess complier would make 2 dll another folder
one is bin folder and the other is window/....precomplie....
which one is used by complier?