|
Subject:
|
Incorrect solution is loaded into VS 2003. Help.
|
|
Posted By:
|
buckeyefan
|
Post Date:
|
1/3/2006 10:54:51 AM
|
Hey guys, Just tried to submit this and received an error. If this posts again. I apologize for the double post. Here is the deal. I am having problems loading a solution in vs.net 2003. I have the following projects:
Old project: c:/development/myproject.sln New project: c:/production/myproject.sln
When I try to open the new projects solution either in vs or through win exporer, I see the message box for the localhost in the old project. The old solution is always loading. How do I specify that I want the new solution in /production to load?
I have surfed the net on this issue.... I have changed the .webinfo file to point to the correct prod path. This is being performed on my local machine using IIS. I have 2 different sites for each project set up.
Tims bar is open for suggestions. Thanks much.
|
|
Reply By:
|
buckeyefan
|
Reply Date:
|
1/4/2006 9:23:57 AM
|
Here is some more information on this problem:
Here is the error that I am receiving. I couldnt copy/paste this so there may be a typo or 2 in the message below. I am getting the error when opeing the solution in vs.net Here is the error: Web Access Failed
The default web access mode for this project is set to file share, but the project folder at 'http://localhost/development/myproject cannot be opened with the path 'c:\development\myproject'.
The error rertured was: Unable to open web project 'development/myproject. The file path 'c:\deveopment\myproject does not correspont to the url 'http://localhost/development/myproject. The two need to map to the same server location. HTTP Error 404: Object not found.
|
|
Reply By:
|
planoie
|
Reply Date:
|
1/4/2006 11:36:38 AM
|
Did you copy the entire solution directory to new directory or rename the directory?
There are some hidden files that store visual studio settings and I believe some of the mappings that are established for web projects. Look for a file with the extension "suo" in the solution directory and remove it.
When you try to open the solution again, VS might prompt you to enter the location of the web project. It may find an existing vitual directory with the project name and when it does it will see an existing project file (despite the fact that it's the one you want) and prompt you for a different virtual directory name (usually something like "<projectname>_1"). You might need to instead use the "File->Open->Project From Web..." menu choice to open the project.
-Peter
|
|
Reply By:
|
buckeyefan
|
Reply Date:
|
1/4/2006 11:53:09 PM
|
Hi peter,
Yes, I tried removing the file and didnt have any luck. Pulled this info from the net. Yes, I copied the contents of the folder to a new folder, then created a new virtual in IIS. I had a problem like this a couple of years back. Found the fix pretty easy on the net. I'm not sure but think I executed some dos command to sync up vs. Any idea on what this script is? Also, you suggested to open up the project? I have 8 projects in this solution. Open each project and create a new solution? Not sure what you were suggesting. Thanks, Tim
|
|
Reply By:
|
planoie
|
Reply Date:
|
1/5/2006 9:09:54 AM
|
If you can open the solution but only the web project gives you a problem, you might try removing the web project from the solution, then do "File->Add Project->Existing Project from Web...". Then put in the new IIS virtual path and it should let you select the project file.
I successfully move projects around all the time (even when they are tied to source control) so I know it can be done, it's just a little tricky to troubleshoot when you can't see exactly what's going on.
-Peter
|
|
Reply By:
|
buckeyefan
|
Reply Date:
|
1/5/2006 1:49:15 PM
|
I receive errors when trying to open the solution. Any other solutions would be appreciated. Thanks
|