gpt4 book ai didi

visual-studio - Visual Studio : COMException opening project file

转载 作者:行者123 更新时间:2023-12-03 18:21:20 27 4
gpt4 key购买 nike

我使用的是 VS 2008。当我打开另一个开发人员创建的 c# 项目文件时,我收到了 System.Runtime.InteropServices.COMException。我在网上搜索,发现解决方案是注释掉项目文件的 ProjectExtensions 部分。我做了这个,它打开得很好。但是查看注释代码我不明白是什么导致了这种情况。有没有人知道为什么这会在我的本地机器上失败?我已安装并正常运行 IIS 7。

  <ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>62088</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>

最佳答案

以下解决方案刚刚对我有用..

  • Once the solution opens, right-click on the unavailable project and select - - Edit project_file_name.vbproj.
  • Scroll to the bottom of the page, and delete the ProjectExtensions section.
  • Save the page.
  • Right-click again on the unavailable project, and select Reload Project.


您的项目现在应该可用并且您应该能够看到您的所有项目文件。

关于visual-studio - Visual Studio : COMException opening project file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1633936/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com