visual-studio-2015 - 使用Visual Studio 2015 Shell打开网站,出现错误信息: Value cannot be null. Parameter name: url

标签 visual-studio-2015

当我尝试使用 Microsoft Visual Studio 2015 Shell(集成)打开网站时,收到以下错误消息(值不能为空。参数名称:url)。

错误消息的图像:
An image of the error message

当我用 VS2012 Shell 做同样的事情时,它曾经有效。

我无法加载网站,也无法创建新网站。我正在使用的机器是出于安全目的没有互联网连接的 vpc。

我怀疑这可能是一个 IDE 问题,但我只是想知道这是否是一个项目配置问题,在我请求重新安装 IDE 的许可之前这里的任何人都可能已经看到并导致其他人的工作在这台机器上延迟。

谢谢!

最佳答案

我在使用 Visual Studio Express 2015 for Windows Desktop 尝试升级较旧的 .NET 可执行项目时遇到了类似的消息框。当我打开项目时,它不会在解决方案资源管理器中展开。相反,它说它需要升级。 (我可以直接打开项目 XML,但我不够熟练,无法直接使用它。)当我尝试构建项目时,它会提示我对项目执行单向升级(引用 additional documentation 。我同意了,它似乎开始了,但后来失败了,出现了类似这个问题引用的错误。

搜索此错误或相关错误时,我发现了 a similar question involving pSrcNativeVariant .

他们建议的答案是:

I encountered exactly the same problem. After trying many things, I found this problem could be simply solved by just running the visual studio in the administration mode once. Under the admin mode, run the nsight debugger, then the problem is solved. Admin mode is not required later. At least this works for me, good luck to you.

Added on May 12, 2014: This problem happened again today. This time I solved it by switching the platform from Win32 to X64 then switch back

Added on May 22, 2014: It happens again and everything I tried before did not work this time. Finally it is solved in this way: I fixed this by deleting the visual studio solution user options file (.suo).

我不知道“nsight 调试器”是什么,但我首先尝试以管理员身份运行(重启了 IDE 几次),但没有成功。

然后我尝试删除 .suo 文件,但也没有用。

或者至少,我认为我没有。经过几次尝试,以管理员身份运行,它终于工作并升级了项目,在解决方案资源管理器中提供了可见性。不幸的是,我不记得我是否做了不同的事情;对不起。

我随后在管理员模式之外加载了该项目,它继续工作。

这些是升级过程中所做的实质性更改,以防它们有帮助...

[项目名称]\我的项目\Application.Designer.vb:

 - '     Runtime Version:2.0.50727.42
 + '     Runtime Version:4.0.30319.42000

[项目名称]\我的项目\Resources.Designer.vb:

 - '     Runtime Version:2.0.50727.42
 + '     Runtime Version:4.0.30319.42000

...

 -     <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0"),  _
 +     <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"),  _

[项目名称]\我的项目\Settings.Designer.vb:

 - '     Runtime Version:2.0.50727.42
 + '     Runtime Version:4.0.30319.42000


 -      Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0"),  _
 +      Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0"),  _


 -         Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings),MySettings)
 +         Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)

[项目名称][项目名称].vbproj:

 - <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 + <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="14.0">

...

 +     <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
 +     <FileUpgradeFlags>
 +     </FileUpgradeFlags>
 +     <UpgradeBackupLocation>
 +     </UpgradeBackupLocation>
 +     <OldToolsVersion>2.0</OldToolsVersion>

...

 -     <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
 +     <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,42353,42354,42355</NoWarn>

...

 -     <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
 +     <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,42353,42354,42355</NoWarn>

关于visual-studio-2015 - 使用Visual Studio 2015 Shell打开网站,出现错误信息: Value cannot be null. Parameter name: url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39003857/

相关文章:

c++ - 在 VS2015 C++ 中打印我的用户名

android-emulator - VS2015 预览版 : Installing the Android emulator

visual-studio-2015 - "The "SqlBuildTask "task failed unexpectedly..."SSDT异常

c++ - 未解析的外部符号 - 更新到 vss2015 之后

c++ - cmake 不可见 Visual Studio 编译器

c++ - Visual Studio 2015:std::vector 的可视化不在调试中显示信息

c# - 链接到 C# GUI 的 C++ 程序

c# - 在 VS 2015 中发布到 Azure 2.7 时出错

visual-studio-2015 - Windows 10和Visual Studio 2015

asp.net - 如何在 IIS 10 中注册 http 模块