当前位置:首页 > Windows程序 > 正文

点‘.’, 比如:http://localhost:30695/api/studies/1.1.1.1.1

2021-05-24 Windows程序

??

DICOM RESTFul服务中好多请求url都是类似:{SERVICE}/studies/{StudyInstanceUID}, UID如1.2.156.112605.75006881735343.1369658683.4.4.1。


我们默认建立的Asp Net WebApi 服务时,,如果请求url包含‘.‘,则返回404错误。 


解决办法:

需要在web.config文件中添加如下节点。


<configuration>
 
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>


</configuration>

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/70077.html