Solved

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

Posted on 2008-06-15
2
173 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
[X]
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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

617 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