VS 2003 报告“无法从 Web 服务器获取项目文件” 从 VSS 打开解决方案时
当尝试在新格式化的电脑上从源代码管理打开项目时,从 VSS 获取 sln 文件后,我收到一条“无法从 Web 服务器获取项目文件”的消息。 如果我尝试从资源管理器打开 sln 文件,我也会收到相同的错误。
有什么指示或想法吗?
谢谢!
When attempting to open a project from source control on a newly formatted pc, I receive an "unable to get the project file from the web server" after getting the sln file from VSS. If I attempt to open the sln file from explorer, I also receive the same error.
Any pointers or ideas?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您需要在解决方案中创建空文件夹来替换服务器中的文件。 当您在本地开发区域中使用 sln 或 csproj 文件时,您将看到文件夹和文件树,并且很可能带有 x 标记的文件表明它们丢失。 文件夹不会有 x 标记,但是它们也会丢失。 您需要先创建该文件夹,以便可以从服务器进行替换。
You need to create the empty folders in your solution to replace the files from server. When you use sln or csproj files in your local development area, you will see the folders and files tree and most probably files with x mark indicating that they are missing. Folders will not have the x mark however, they are missing too. You need to create the folder first so that you can replace from the server.
这个问题很老了,所以您可能已经解决了这个问题,但以防万一:项目文件是否使用 IIS? 如果是这样,那么它可能正在尝试从 IIS 读取项目文件,并且新格式化的计算机上不存在虚拟目录。 此外,当您打开解决方案时,“输出”窗口中应该有更多有关消息的详细信息,这应该可以帮助您找到原因。 对于 VS2003,您还需要将您的用户帐户添加到“调试器用户”和“VS 开发人员”,并且可能还需要添加运行 AppPool 的帐户(可能是网络服务器、ASPNET 或 IUSER_xxx)。 这可能还取决于您使用的身份验证类型。 有时,我还必须将这些组权限添加到虚拟目录位置。 我已经有一段时间没有使用 VS2003 进行 Web 项目了。
This question is very old so you have probably solved the issue, but just in case: Does the project file use IIS? If so then it is probably trying to read the project file from IIS and the virtual directory does not exist on the newly formatted computer. Also, there should be more detail about the message in the Output window when you open the solution which should help you find the cause. With VS2003, you also need to add your user account to the "Debugger Users" and "VS Developers" and possibly the account that is running the AppPool (possibly Network Server, ASPNET, or IUSER_xxx). This may depend on the type of authentication you are using as well. Occasionally I had to add those group permissions the the virtual directory location as well. It's been a while since I have used VS2003 with web projects though.
尝试删除 .csproj 文件(不过请先备份它们)。
Try deleting the .csproj files (back them up first though).
你的 sln 文件中有什么奇怪的吗? 您是否使用文本编辑器打开它以查看它是否链接到远程资源?
Is there anything odd in your sln file? Have you opened it with a text editor to see if it is linking to a remote resource?