如何使用指向 DropBox 的物理路径设置 IIS 7?
我使用多台计算机进行开发,并且希望能够将文件存储在我的保管箱文件夹中。我将 IIS 中的物理路径从 c:\inetpup\wwwroot 更改为 dropbox 文件夹,但收到此错误:
无法访问所请求的页面 因为相关的配置数据 该页面无效。
我找不到配置文件,所以我想知道以前是否有人这样做过,或者是否有更好的方法可以在多台电脑之间很好地同步所有内容?
I'm using multiple computers for development and I want to be able to store my files in my dropbox folder. I went to change the physical path in IIS from c:\inetpup\wwwroot to the dropbox folder but I get this error:
The requested page cannot be accessed
because the related configuration data
for the page is invalid.
I couldn't find the config file so I was wondering if anyone had done this before or whether there a better way to sync everything nicely across several PCs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我尝试过(IIS 7.5,Win 7),它应该可以正常工作,让您的网络物理路径查看您的 dropfox 文件夹。我猜您的
web.config
文件通常包含格式错误的 XML(请参阅 KB942055)。我建议,尝试将其映射到仅包含
index.html
文件的空文件夹,然后查看此错误是否仍然发生。I tried it (IIS 7.5, Win 7) and it should work just fine to let your physical path of your web look at your dropfox folder. I would guess your
web.config
file generally contains malformed XML (see KB942055).I'd suggest, try to map it to an empty folder just with an
index.html
file and see if this error still occurs.作为解决方法,我想您可以将 Dropbox 放在 wwwroot 文件夹中,并设置一个指向 Dropbox 的虚拟目录。但是,存在一些安全问题可能会阻碍您这样做。我发现了一个很好的教程,介绍如何将 Dropbox 设置为 IIS 作为 FTP 发布。希望有帮助。
Hodgin 有关使用 Dropbox 进行 FTP 发布的指南。
As a workaround, I guess you can put Dropbox in your wwwroot folder and set up a virtual directory that points to Dropbox. However, there are some security issues that may hinder you from doing so. I come across a nice tutorial on how to set up Dropbox to IIS as FTP Publishing. Hope it helps.
Hodgin's guide on using Dropbox as FTP publishing.