Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2008-06-15
2
169 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!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

807 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