简体   繁体   English

在IIS 7中更改虚拟目录

[英]Changing virtual directories in IIS 7

I just got a new pc running Windows 7. My old box had XP. 我刚得到一台运行Windows 7的新电脑。我的旧电脑装有XP。 I copied all of my files to a newtwork directory, then copied them down to the new pc. 我将所有文件复制到newtwork目录,然后将其复制到新PC。

I have an application built in Visual Studio 2003 that I'm trying to do maintenance on. 我有一个正在Visual Studio 2003中构建的应用程序,正在尝试对其进行维护。 When I try to open it I get the following error message: 当我尝试打开它时,出现以下错误信息:

Unable to open Web project 'EDIWebFormsUI_1'. 无法打开Web项目“ EDIWebFormsUI_1”。 The file path 'c:\\inetpub\\wwwroot\\EDIWebFormsUI_1' does not correspond to the URL 'http://Localhost:/EDIWebFormsUI_1'. 文件路径'c:\\ inetpub \\ wwwroot \\ EDIWebFormsUI_1'与URL'http:// Localhost:/ EDIWebFormsUI_1'不对应。 The two need to map to the same server location. 两者需要映射到相同的服务器位置。

I found an article on Microsoft TechNet telling how to change the mapping of a virtual directory at http://technet.microsoft.com/en-us/library/cc754640(WS.10).aspx . 我在http://technet.microsoft.com/zh-cn/library/cc754640(WS.10).aspx上找到了一篇关于Microsoft TechNet的文章,其中介绍了如何更改虚拟目录的映射。

However, it says "5. In the Actions panel, click Basic Settings." 但是,它显示为“ 5.在“动作”面板中,单击“基本设置”。

I don't have a Basic Settings option in my Actions panel. 我的“动作”面板中没有“基本设置”选项。

I also tried appcmd from the command line, but I get the message "appcmd is not recognized as an internal or external command." 我还从命令行尝试了appcmd,但收到消息“ appcmd无法识别为内部或外部命令”。

Do you know of another way to change the virtual directory mapping for my application? 您是否知道为我的应用程序更改虚拟目录映射的另一种方法?

VS2003有点旧,但是项目目录中的某个地方应该有一个纯文本文件,该文件指向承载Web项目的虚拟目录位置。

To use Appcmd, you may need to change your directory before you try to run the command. 若要使用Appcmd,在尝试运行命令之前,可能需要更改目录。 At the command prompt, type cd %windir%\\system32\\inetsrv then run your command. 在命令提示符下,键入cd%windir%\\ system32 \\ inetsrv,然后运行命令。 That should solve the issue. 那应该解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM