asp.net web application project problems

Z

Z.K.

I have a web application that I was developing outside of a project, but
I find I need to use it as a project so that I can debug the code. I
tried just creating a new project and copying all the files from the web
folder to the project folder. None of the controls are recognized and I
get a "does not exist in current context" even though I added all the
files to the project. What am I doing wrong?

Z.K.
 
Z

Z.K.

Z.K. said:
I have a web application that I was developing outside of a project, but
I find I need to use it as a project so that I can debug the code. I
tried just creating a new project and copying all the files from the web
folder to the project folder. None of the controls are recognized and I
get a "does not exist in current context" even though I added all the
files to the project. What am I doing wrong?

Z.K.


Never mind. I figured it out. I just clicked on convert to web
application and it set everything up for me. The only weird thing is
that I had a App_Code folder and it rename it to Old_App_Code though it
still seems to using the code in that folder.

Z.K.
 
G

Guest

The only weird thing is
that I had a App_Code folder and it rename it to Old_App_Code though it
still seems to using the code in that folder.

This is because ASP.NET 2.0 tries to dynamically compile any classes
it finds under the /App_Code directory of an application at runtime,
you explictly *DO NOT* want to store classes that you compile as part
of your VS 2005 Web Application Project under an "app_code" folder. If
you do this, then the class will get compiled twice -- once as part of
the VS 2005 Web Application Project assembly, and then again at
runtime by ASP.NET.

http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx
 

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

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top