Solved

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

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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.

705 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

19 Experts available now in Live!

Get 1:1 Help Now