is bin folder still use in asp.net 2.0??

M

mike

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?
 
M

mike

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?
 
J

Juan T. Llibre

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ñol : http://asp.net.do/foros/
======================================
 
M

mike

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
 
J

Juan T. Llibre

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/default.asp?url=/library/en-us/dnvs05/html/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/
======================================
 

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