Solved

ASP.NET 2005, moved a project to a new computer, wont build

Posted on 2008-06-15
2
168 Views
Last Modified: 2013-11-26
I had all my VS2005 projects on my XP laptop which is all but dead (old machine).  I have a new laptop now, Windows Vista Home Premium.  I copied those files to a flash drive.  I installed VS 2005 on my Vista laptop, updated to the latest patches.  I copied my VS projects into my projects directory.  I modified my solutions file to reference the new path.

My ASP.NET project opens fine but it does not compile.  I get this:

Error      1      It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.      

The thing is I'm on Vista Home Premium,  IIS isn't even installed, yet I can create a new web project and run it fine locally.  Its only when I try to build/compile my moved project that I get this error.  

Does anyone know what I need to do?  Thanks!
0
Comment
Question by:arthurh88
2 Comments
 
LVL 19

Accepted Solution

by:
elimesika earned 500 total points
ID: 21791924
When you create an new web application using visual studio.net, it automatically creates the virtual directory and configures it as an application. However, if you manually create the virtual directory and it is not configured as an application, then you will not be able to browse the application and may get the above error. The debug information you get as mentioned above, is applicable to this scenario.

I recommend to leave only source files and re-create projects in your new machine.
0
 
LVL 22

Expert Comment

by:prairiedog
ID: 21794384
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question