简体   繁体   中英

Enable directory browsing in WCF

Does anyone knows how to do directory browsing using WCF and app.config file. I tried doing

<system.webServer><directoryBrowse enabled="true"/></system.webServer>

but it did not helped. I need to make one directory within my Server available for users to download their files and I am implementing self hosted WCF services. I can share the files using IIS but it would be good if I can do it from WCF alone.

Directory browsing is a feature in IIS. IIS makes it available; when you use WCF self hosting, you don't have all of those options unfortunately. But it's possible to make a folder in your self-hosted folder structure a virtual directory in IIS so that they can get it there instead, if a hybrid is an option.

实现该目标的一种可能方法是也自托管Katana

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM