在打开WebControlsImage.sln时遇到以下错误提示:
无法从Web服务器获取项目文件。无法打开Web项目“webControlsImage”。文件路径“c:\inetpub\wwwroot\WebControlsImage”与URL"http://localhost/WebControlsImage"不符。这两者需要印射到相同的服务器位置。
HTTP错误404:Object Not Found 
另外,我把“工程项目保存位置”改到了d:\aspnetcode去了。
无法打开 WebControlsImage.sln 
请问,我要怎么才能打开WebControlsImage.sln 

解决方案 »

  1.   

    打开sln文件
    应该有类似的web Project文件的配置,检查下是否已经已对应建好虚拟目录
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Web项目", "http://localhost/Web项目/Web项目.csproj", "{2844468A-0024-4833-B088-72E057800BB3}"
    ProjectSection(ProjectDependencies) = postProject
    EndProjectSection
    EndProject打开你的Web项目.csproj.webinfo
    检查是否与上面的Sln文件一致
    <VisualStudioUNCWeb>
        <Web URLPath = "http://localhost/你的Web项目/你的Web项目.csproj" />
    </VisualStudioUNCWeb>