gpt4 book ai didi

asp.net-mvc-4 - 单击发布时出错 | "Object reference not set to an instance of an object"

转载 作者:行者123 更新时间:2023-12-02 02:15:03 24 4
gpt4 key购买 nike

我正在尝试发布我刚刚在 Visual Studio 2012 中创建的项目的文件。

当我点击发布时,

enter image description here

显示以下窗口

enter image description here

已经创建了一个新的 Web 项目(相同类型,asp.net mvc 4)并尝试进行相同的更改并且一切正常。
显然这只发生在这个项目上!

已经关闭“VS”并在我重新启动PC时再次打开..
有小费吗?

最佳答案

还要检查 .csproj 文件中的 ProjectTypeGuids。我也遇到过类似的问题,虽然不完全一样,来源是因为其他团队成员在VS2012中打开了项目,而我在VS2010上。 VS2012 强制您将 MVC2 站点转换为 MVC3 站点,然后 VS2010 在发布时无法处理。

如果你问我,向后兼容性很差。

关于asp.net-mvc-4 - 单击发布时出错 | "Object reference not set to an instance of an object",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11059181/

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