大网数据广告活动
Web服务器与PHP

Error when you create FTP site

· 52CE 我爱测

This article provides help to solve an issue where an error occurs when you create an FTP site in Internet Information Services.

This article provides help to solve an issue where an error occurs when you create an FTP site in Microsoft Internet Information Services (IIS).

Original product version:   Internet Information Services
Original KB number:   2505017

Symptoms

In IIS, you use the Internet Services Manager to create a new FTP site. In the site creation wizard, you enter one of the following characters as part of the FTP site name:

\ / ? ; : @ & = + $, | " < >

When you click Finish to end the FTP site creation wizard, you may receive the following error message:

There was an error while performing this operation.
Details:
The site name cannot contain the following characters: , /, ?, ;, :,
@, &, =, +, $, ,, |, ", <, >.

Also, when you use the Internet Services Manager to create a new virtual directory whose name contains a restricted character, you may receive the following error message:

The virtual directory path cannot contain the following character:
, ?, ;, :, @, &, =, +, $, ,, |, ", <, >, *.

Cause

This behavior is by design. In IIS, the Internet Services Manager doesn't allow the creation of FTP or Web sites or virtual directories whose name contains one of the restricted characters that are listed above.

Resolution

Don't include any of the restricted characters listed above when specifying the name of a new FTP or Web site or virtual directory in the Internet Services Manager.

More information

It is still possible to create a new FTP site or virtual directory whose name contains one of the restricted characters by using appcmd.exe or editing the applicationHost.config file directly. However, if an FTP container is created in this manner and the name contains the colon restricted character (:) in the virtual directory, the following error status will be sent to an FTP client that tries to access that directory:

550 The parameter is incorrect.

For security reasons, colons are explicitly rejected from FTP commands by the FTP service, even though the appcmd.exe tool does not block them from being included in a container name.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 07/17/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。