将 VS2005 Web 服务项目转换为 VS2010
我继承了一个多年前安装但被遗忘的网络服务。现在我们需要改变它,但它是用VS2005构建的,而我只有vs2010。当我加载项目时,它会自动尝试转换,但因以下错误而失败:
操作无法完成。系统找不到指定的路径。
(没有关于它正在查找的文件的信息)
找不到服务器“http://localhost/
(我不明白为什么这样的设置会阻止项目加载/连接,这显然是一个配置问题。此外,我正在使用IIS Express,它使用不同的端口,因此永远不会工作。)
不幸的是,似乎没有机会在 VS2010 中手动调整这些问题。它根本不会加载该项目。
我怎样才能强制它加载到 VS 中,以便我可以以合理理智的方式修复这个问题?也许以某种兼容模式运行 VS2010,或者如果有一个应用程序可以用来转换它,或者如果有人在做这类事情方面有一些经验,我很想听听。
I inherited a web service that was installed and forgotten about years ago. Now we need to change it, but it's built in VS2005, and all I have is vs2010. When I load the project, it automatically attempts to convert, but fails on these errors:
The operation could not be completed. The system cannot find the path specified.
(no information on what file it was looking for)
Could not find the server 'http://localhost/<myproject>/<myproject>.csproj' on the local machine. Creating a virtual directory is only supported on the local IIS server.
(I don't understand why a setting like that should prevent the project from loading/ connecting, this is clearly a config thing. Besides, I'm using IIS Express, which uses different ports, so that'll never work.)
Unfortunately, there does not seem to be an opportunity to manually tweak these problems in VS2010. It simply won't load the project.
How can I force this to load in VS so I can fix this in a reasonably sane manner? Maybe run VS2010 in some compatibility mode, or if there's an app I can use to convert this, or if someone has some experience in doing this sort of thing, I'd love to hear about it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你还有VS2005吗?在VS2005中打开项目,查看项目设置。查看项目是否设置为使用本地 IIS 服务器。
如果是,则将其更改为使用 Visual Studio 开发服务器并保存项目。将其转换为 VS2010,您应该能够打开它(仍然使用开发服务器)。
然后,更改设置以使用 IIS Express。
Do you still have VS2005 around? Open the project in VS2005 and look at the project settings. See if the project is set up to use the local IIS server.
If it is, then change it to use the Visual Studio Development Server and save the project. Convert it to VS2010 and you should be able to open it (still using the Development Server).
Then, change the settings to use IIS Express.