使用 Parallels 6 在 Mac 上运行 Visual Studio ASP.NET 项目
我使用 Mac 作为主要操作系统,但我经常处理 ASP.NET MVC 项目。我想为它们使用相同的文件系统,而不是虚拟操作系统映像。
这样做的原因是因为我想将项目与 Mac OS 集成(即通过 Mac OS FTP 应用程序 Transmit 将它们上传到服务器)。
但这里的问题是 ASP.NET 无法真正处理位于网络驱动器上的项目。因此,当我尝试运行一个站点(使用 VS 2010 的内置 Web 服务器或使用 IIS 7)时,我得到
错误摘要 HTTP 错误 500.19 - 请求的内部服务器错误 无法访问页面,因为 的相关配置数据 页面无效。
这是一个常见的错误,但我找不到适合我的解决方案。
如果我在 Parallel 的虚拟 C:\ 驱动器上创建一个项目,则一切正常。
PS 我听说VMWare有更好的网络驱动器支持,但是它像Parallels一样流畅吗? Parallels 6 对我来说运行速度非常快,而且我的 Mac Mini 甚至在打开 VS 2010 和其他几个 Mac 应用程序时都没有发热。
PPS 我还听说过使用 DropBox 和/或 Windows Live Mesh。在这种情况下,云是一个好主意吗?
谢谢
I use Mac as my primary OS, but I often work on ASP.NET MVC projects. I want to use the same file system for them, and not virtual OS image.
The reason for that is because I want to integrate the projects with Mac OS (i.e. upload them to the server via Transmit, a Mac OS FTP app).
But the problem here is that ASP.NET can't really work with projects located on network drives. So when I try to run a site (either with VS 2010's built in web server or with IIS 7), I get
Error Summary HTTP Error 500.19 -
Internal Server Error The requested
page cannot be accessed because the
related configuration data for the
page is invalid.
And this is a common mistake but no solution that I could find worked for me.
If I create a project on Parallel's virtual C:\ drive, everything works fine.
P.S. I hear that VMWare has better network drives support, but is it as smooth as Parallels? Parallels 6 runs extremely fast for me, and my Mac Mini doesn't even get warm with VS 2010 and several other Mac apps open.
P.P.S. I also heard about using DropBox and/or Windows Live Mesh. Is clouding a good idea in this case?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您仅仅因为想要使用 Mac FTP 客户端来部署站点/应用程序而要做这一切,那么您就会给自己带来巨大的痛苦。
Visual Studio 2010 包含的发布工具使部署比仅仅 ftp 更容易(并且更智能)。我建议你和他们玩一玩,然后看看你是否还想走这条黑暗、坎坷和危险的路:-)
You're creating an awful lot of pain for yourself if you want to do all this this just because you want to use a Mac FTP client to deploy your sites/applications.
Visual Studio 2010 contains Publishing tools which make deployment much easier (and are smarter) than just ftp. I suggest you have a play with them and then see if you still want to go down this dark, bumpy and dangerous path :-)