0
我需要打开一个特定的MVC控制器的runAllManagedModulesForAllRequests,该控制器需要一个文件名作为其参数(i.e. http://server/api/file/00_08112010MC41670.txt)
,但我不想因此将网站上的所有内容放在web.config(请参阅注释https://stackoverflow.com/a/16607685/264607)。有没有办法只为MVC中的特定控制器打开它?允许一个控制器的runAllManagedModulesForAllRequests