无法通过网站url访问Coldfusion Rest服务-Coldfusion

无法通过网站url访问Coldfusion Rest服务-Coldfusion,rest,iis,coldfusion,coldfusion-10,Rest,Iis,Coldfusion,Coldfusion 10,我的coldfusion版本是10,配置了iis。我已经使用以下代码配置了Rest服务 <cfset restInitApplication(getDirectoryFromPath(getCurrentTemplatePath()), "myservicename") /> 我试图通过url访问rest服务,但它给了我404未找到错误。这是我尝试过的url http://localhost:8500/rest/myservicename/test/10221 http://exa

我的coldfusion版本是10,配置了iis。我已经使用以下代码配置了Rest服务

<cfset restInitApplication(getDirectoryFromPath(getCurrentTemplatePath()), "myservicename") />
我试图通过url访问rest服务,但它给了我404未找到错误。这是我尝试过的url

http://localhost:8500/rest/myservicename/test/10221
http://example.com/rest/myservicename/test/10221
http://127.0.0.1/rest/myservicename/test/10221
但这三个都不适合我。当我尝试从coldfusion管理员刷新服务时,它给出了以下错误

Unable to refresh REST service.
 Application myservicename could not be initialized.
 Reason: The application does not contain any rest enabled CFCs.
 The application does not contain any rest enabled CFCs.

我已将cfc保存到iis的webroot,并通过coldfusion管理员更新rest服务的根路径。然后,上述错误消失,并收到绿色消息“服务器已成功更新”。但仍然无法通过任何url访问。仍然得到404错误。谁能告诉我哪里做错了?或者帮我解决这个问题

您缺少
的结尾处的code>可能只是导致问题的一个简单语法错误。顺便说一句,你看过吗?#约翰,哦!我在发帖时错过了。不知怎么的,我已经和塔菲一起工作过了。不太多。此rest服务正在我的旧服务器上运行。更新服务器后,它不工作。您缺少
的结尾处的code>可能只是导致问题的一个简单语法错误。顺便说一句,你看过吗?#约翰,哦!我在发帖时错过了。不知怎么的,我已经和塔菲一起工作过了。不太多。此rest服务正在我的旧服务器上运行。更新服务器后,它不工作。
Unable to refresh REST service.
 Application myservicename could not be initialized.
 Reason: The application does not contain any rest enabled CFCs.
 The application does not contain any rest enabled CFCs.