views:

239

answers:

2

Hi, I am using Visual Studio 2008 for .net project.

I have configured to use IIS as debug web server in the project property page.

I have two projects under c:\project, project1 and project 2. I can run project 1 with no problem. However when I try to run project 2 I got an error message, saying the web.config file is missing binary file from bin folder. The server is trying to load the web.config file from project1 instead of project2.

I have checked the virtual path settings and project settings and could not find anything wrong.

Does anyone have such experience?

I could not find useful information on google.

Thanks, Lewis

A: 

Make sure that project1 is an application whose base folder is the project1 directory and that project2 is an application whose base folder is the project2 directory. sounds like project1 is an application pointing to c:\project.

Darren Kopp
I have double checked and all two projects have correct configuration as far as I can see.
Lewis
A: 

EDIT: How are your directories defined in IIS? If they are virtual directories, they must be defined as applications, otherwise it will try to use the root web.config.

Try this:

  • Shutting down all instance of Visual Studio
  • Stopping IIS (iisreset or restart the WWW service)
  • Delete everything in this directory: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
  • Open your projects back up
rick schott
Still the same error.
Lewis