Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 3rd, 2006, 11:54 AM
Registered User
 
Join Date: Jan 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Incorrect solution is loaded into VS 2003. Help.

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.


 
Old January 4th, 2006, 10:23 AM
Registered User
 
Join Date: Jan 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.


 
Old January 4th, 2006, 12:36 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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
 
Old January 5th, 2006, 12:53 AM
Registered User
 
Join Date: Jan 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old January 5th, 2006, 10:09 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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
 
Old January 5th, 2006, 02:49 PM
Registered User
 
Join Date: Jan 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I receive errors when trying to open the solution. Any other solutions would be appreciated.
Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
loaded usercontrol benordz C# 7 April 4th, 2008 09:16 AM
VS.NET 2003 won't let me open solution seanmmorris ASP.NET 1.0 and 1.1 Basics 5 July 29th, 2004 09:09 AM
Invoking Word 2003 document from InfoPath 2003 debsoft General .NET 0 April 28th, 2004 08:17 AM
How can i know that a form is loaded. sharma_atin VB How-To 1 September 1st, 2003 10:51 AM
Frames loaded kilika VBScript 1 August 11th, 2003 06:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.