Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to error 4 46
Any Third party toll for Integrating chat system on ASP.NET ? 2 34
Error on Add method 1 38
Get Client IP on RDS - VB.NET 15 29
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now