Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-28-2008, 01:00 AM   PM User | #1
M_Dave
New to the CF scene

 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
M_Dave is an unknown quantity at this point
ASP.Net project not opening - file path does not correspond to the url localhost

I have an ASP.Net web project I've copied from a co-worker's machine and I can't open it. The message I see is as follows:

The default Web access mode for this project is set to file share, but the project folder at ‘http://localhost’ cannot be opened with the path ‘D:\Workarea2\Development\Web’. The error retured was:
Unable to open Web project ‘/’. The file path ‘D:\Workarea2\Development\Web’ does not correspond to the URL ‘http://localhost’. The two need to map to the same server location. HTTP Error 404: Not Found.


In IIS, I have stopped my default web site and created a new website mapped to port 80. The web pages the ASP.Net project concerns are all in this directory. The physical directory for this website is D:\Workarea2\Development\Web. I can browse the web site without any problems from IIS.

So in other words, I have a web site set up correctly in IIS, but I can't open the ASP.Net project associated with the site! This same ASP.Net project opens fine on my co-worker's machine, and I have made the web site I set up under port 80 on my server an exact match to the web site he set up on his machine. Can anyone shed any light on this puzzling behaviour?

The solution file I'm opening is this:

Microsoft Visual Studio Solution File, Format Version 7.00
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "localhost", "http://localhost/localhost.vbproj", "{FA46AF40-8685-4105-813A-AF3D3CBEF408}"
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
ConfigName.0 = Debug
ConfigName.1 = PatchRelease
ConfigName.2 = Release
EndGlobalSection
GlobalSection(ProjectDependencies) = postSolution
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{FA46AF40-8685-4105-813A-AF3D3CBEF408}.Debug.ActiveCfg = Debug|.NET
{FA46AF40-8685-4105-813A-AF3D3CBEF408}.Debug.Build.0 = Debug|.NET
{FA46AF40-8685-4105-813A-AF3D3CBEF408}.PatchRelease.ActiveCfg = Release|.NET
{FA46AF40-8685-4105-813A-AF3D3CBEF408}.PatchRelease.Build.0 = Release|.NET
{FA46AF40-8685-4105-813A-AF3D3CBEF408}.Release.ActiveCfg = Release|.NET
{FA46AF40-8685-4105-813A-AF3D3CBEF408}.Release.Build.0 = Release|.NET
{089E24D9-3337-4F9F-8A5D-5DF771685863}.Debug.ActiveCfg = Debug
{089E24D9-3337-4F9F-8A5D-5DF771685863}.PatchRelease.ActiveCfg = Release
{089E24D9-3337-4F9F-8A5D-5DF771685863}.Release.ActiveCfg = Release
{089E24D9-3337-4F9F-8A5D-5DF771685863}.Release.Build.0 = Release
{F13F0E5E-9574-474E-BB9C-BAC07B4F06CA}.Debug.ActiveCfg = Debug
{F13F0E5E-9574-474E-BB9C-BAC07B4F06CA}.PatchRelease.ActiveCfg = Release
{F13F0E5E-9574-474E-BB9C-BAC07B4F06CA}.PatchRelease.Build.0 = Release
{F13F0E5E-9574-474E-BB9C-BAC07B4F06CA}.Release.ActiveCfg = Release
EndGlobalSection
GlobalSection(SolutionItems) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal


The localhost.vbproj file is as follows:
<VisualStudioProject>
<VisualBasic
ProjectType = "Web"
ProductVersion = "7.0.9466"
SchemaVersion = "1.0"
ProjectGuid = "{FA46AF40-8685-4105-813A-AF3D3CBEF408}"
>
<Build>
<Settings
ApplicationIcon = ""
AssemblyKeyContainerName = ""
AssemblyName = "localhost"
AssemblyOriginatorKeyFile = ""
AssemblyOriginatorKeyMode = "None"
DefaultClientScript = "JScript"
DefaultHTMLPageLayout = "Flow"
DefaultTargetSchema = "IE32Nav30"
DelaySign = "false"
OutputType = "Library"
OptionCompare = "Binary"
OptionExplicit = "On"
OptionStrict = "Off"
RootNamespace = "localhost"
StartupObject = ""
>
<Config
Name = "Debug"
BaseAddress = "285212672"
ConfigurationOverrideFile = ""
DefineConstants = ""
DefineDebug = "true"
DefineTrace = "true"
DebugSymbols = "true"
IncrementalBuild = "true"
Optimize = "false"
OutputPath = "bin\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "1"
/>
<Config
Name = "Release"
BaseAddress = "285212672"
ConfigurationOverrideFile = ""
DefineConstants = ""
DefineDebug = "false"
DefineTrace = "true"
DebugSymbols = "false"
IncrementalBuild = "false"
Optimize = "true"
OutputPath = "bin\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "1"
/>
</Settings>
<References>
<Reference
Name = "System"
AssemblyName = "System"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.dll"
/>
<Reference
Name = "System.Web"
AssemblyName = "System.Web"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Web.dll"
/>
</References>
<Imports>
<Import Namespace = "Microsoft.VisualBasic" />
<Import Namespace = "System" />
</Imports>
</Build>
<Files>
<Include>
<File
RelPath = "cluster.asp"
BuildAction = "Content"
/>
<!-- etc - list of files -->
</Include>
</Files>
</VisualBasic>
</VisualStudioProject>


Grateful if anyone could shed any light on this. I can't see for the life of me why it's not correct.
M_Dave is offline   Reply With Quote
Old 10-28-2008, 02:04 PM   PM User | #2
Freon22
Regular Coder

 
Freon22's Avatar
 
Join Date: May 2005
Location: USA
Posts: 287
Thanks: 3
Thanked 5 Times in 5 Posts
Freon22 will become famous soon enough
So while in MS Visual Studio if you click on Open Web Site, then click on Local IIS, then navigate to the location of the web site. It will not open up as a project? If thats the case you may need to delete the .sln file for the project. But you may want to make a backup of that file before you delete it.

I have never had any problems opening up sites on Local IIS or Remote Site.
__________________
I was wondering why frisbees got bigger as they got closer, then it hit me.

Last edited by Freon22; 10-28-2008 at 02:06 PM..
Freon22 is offline   Reply With Quote
Old 10-28-2008, 08:26 PM   PM User | #3
Brandoe85
teh Moderatorinator


 
Join Date: Sep 2004
Location: USA
Posts: 2,472
Thanks: 4
Thanked 40 Times in 40 Posts
Brandoe85 will become famous soon enough
When you access the site through localhost the app comes up? e.g
http://localhost/yourAppNameHere/
Works? But you can't open it with visual studio? If so, you'll need to make sure you have the proper .webinfo file:
Example i'll take from a project on my machine:
filename: yourProjectName.vbproj.webinfo
file contents:
Code:
<VisualStudioUNCWeb>
    <Web URLPath = "http://localhost/yourProjectName/yourProjectName.vbproj" />
</VisualStudioUNCWeb>
Good luck;
__________________
-Brando
Why using tables for eating is stupid!
Brandoe85 is offline   Reply With Quote
Old 01-27-2009, 04:10 AM   PM User | #4
demtron
Regular Coder

 
Join Date: Jun 2008
Location: SE Wisconsin, US
Posts: 222
Thanks: 1
Thanked 20 Times in 20 Posts
demtron is on a distinguished road
If none of these options works, you might consider trying to remove the reflected schemas cache. When I have bizarre errors in VS.Net and can't solve them with other means, flushing this sometimes helps. You can find more info at http://joeon.net/post/MS-AJAX-Releas...n-element.aspx.

Hope that helps! It may not do anything for you, but it shouldn't hurt, either.
__________________
Milwaukee Web Designer and SEO Milwaukee Firm specializing in ASP.Net, C#, VB.Net, SQL Server and Access.
demtron is offline   Reply With Quote
Reply

Bookmarks

Tags
404, open asp.net 1.0 project, project path not found

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:33 AM.


Advertisement
Log in to turn off these ads.