Symlink created with mklink not working with IIS7.5 — Windows 7

怎甘沉沦 提交于 2019-12-01 08:29:15

You need to create a virtual directory mapping to that directory in IIS in order for it to serve up the page. In IIS, right click on "Default Website", then click "Add Virtual Directory". Also, doing this, there is no reason why you even need the symlink. Just map it to the target to begin with.

I agree that virtual directory in IIS may be what you want, but if you want to minimize IIS maintenance, consider this:

Instead of directory symbolic link: mklink /D
try directory junction: mklink /J

This worked for me and the web apps are able to write to the same directory.

mklink /J App_Data d:\shared\App_Data

worked for me on Windows Server 2008 R2.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!