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.