Can periods be used in Asp.Net Web Api Routes?

后端 未结 5 379
说谎
说谎 2020-12-03 05:15

I\'m working on moving an API project from raw http handlers where I\'m using periods in the paths:

http://server/collection/id.format

I wo

5条回答
  •  眼角桃花
    2020-12-03 05:52

    Be careful to set runAllManagedModulesForAllRequests option in modules attribute in your web.config

    ..
    

    Otherwise it will not work in IIS (probably it would be handled by non-managed handlers).

提交回复
热议问题