PC Review


Reply
Thread Tools Rate Thread

asp.net web application project problems

 
 
Z.K.
Guest
Posts: n/a
 
      10th Sep 2009
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.
 
Reply With Quote
 
 
 
 
Z.K.
Guest
Posts: n/a
 
      10th Sep 2009
Z.K. wrote:
> 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.
 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      10th Sep 2009
On Sep 10, 10:34*pm, "Z.K." <nos...@nospam.net> wrote:

> 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...igration2.aspx
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compile errors when converting web site project to web application project John Dalberg Microsoft ASP .NET 1 28th Mar 2007 01:54 AM
Several problems with ASP.NET 2.0 Web Application Project =?Utf-8?B?VG9ueSBHaXJnZW50aQ==?= Microsoft ASP .NET 2 5th Mar 2007 06:17 PM
Web Application Project problems Guido Microsoft C# .NET 1 8th Dec 2006 11:13 PM
Application for project 'http://localhost/project' is not installed Simon Kennedy Microsoft ASP .NET 0 4th Jan 2006 12:38 AM
Why does updating a web reference in a web application project require the project file to be checked out? Headdeball Microsoft ASP .NET 0 22nd Mar 2004 07:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:36 PM.