Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Visual Studio 2013>;新项目>;未指定错误(hresult异常:0x80004005(e_失败))_C#_Asp.net Mvc_Visual Studio_Visual Studio 2013 - Fatal编程技术网

C# Visual Studio 2013>;新项目>;未指定错误(hresult异常:0x80004005(e_失败))

C# Visual Studio 2013>;新项目>;未指定错误(hresult异常:0x80004005(e_失败)),c#,asp.net-mvc,visual-studio,visual-studio-2013,C#,Asp.net Mvc,Visual Studio,Visual Studio 2013,有人能解释一下上述错误吗?我尝试过VS 2013的快速版和终极版 我正在运行64位Windows7 我发现类似问题的解决方案往往针对x86,而不是解决方案资源管理器中的任何CPU。然而,我甚至无法构建解决方案来探索它 我正在尝试构建的新项目是c#ASP.net MVC。我也有同样的错误。 我通过以“以管理员身份运行”模式运行Visual Studio 2013解决了此错误,就像您使用涉及IIS Express的web应用程序项目一样。您是否尝试过手动为VS 2013安装NuGet 我也遇到过类似

有人能解释一下上述错误吗?我尝试过VS 2013的快速版和终极版

我正在运行64位Windows7

我发现类似问题的解决方案往往针对x86,而不是解决方案资源管理器中的任何CPU。然而,我甚至无法构建解决方案来探索它

我正在尝试构建的新项目是c#ASP.net MVC。

我也有同样的错误。
我通过以“以管理员身份运行”模式运行Visual Studio 2013解决了此错误,就像您使用涉及IIS Express的web应用程序项目一样。

您是否尝试过手动为VS 2013安装NuGet


我也遇到过类似的问题,直到我发现VS2013安装程序(出于某种原因)没有安装NuGet软件包管理器。手动安装后,一切正常。

我面临着完全相同的问题,这个技巧对我来说也很有效。 我去归档

C:\Users\user\Documents\IISExpress\config\applicationhost.config


我发现其中一个标签丢失“在使用MVC创建新的Web应用程序时,我遇到了相同的未指定错误。然后,我尝试安装VS 2013的NuGet Package Manager,并获得了有关发生情况的更多详细信息:

11/13/2013 9:16:17 PM -     Supported Products : 
11/13/2013 9:16:17 PM -         Microsoft.VisualStudio.Pro
11/13/2013 9:16:17 PM -             Version : [12.0]
11/13/2013 9:16:17 PM -         Microsoft.VisualStudio.IntegratedShell
11/13/2013 9:16:17 PM -             Version : [12.0]
11/13/2013 9:16:17 PM -         Microsoft.VisualStudio.VWDExpress
11/13/2013 9:16:17 PM -             Version : [12.0]
11/13/2013 9:16:17 PM -         Microsoft.VisualStudio.VPDExpress
11/13/2013 9:16:17 PM -             Version : [12.0]
11/13/2013 9:16:17 PM -         Microsoft.VisualStudio.VSWinExpress
11/13/2013 9:16:17 PM -             Version : [12.0]
11/13/2013 9:16:17 PM -         Microsoft.VisualStudio.VSWinDesktopExpress
11/13/2013 9:16:17 PM -             Version : [12.0]
11/13/2013 9:16:17 PM - 
11/13/2013 9:16:17 PM -     References      : 
11/13/2013 9:16:17 PM - 
11/13/2013 9:16:17 PM - Searching for applicable products...
11/13/2013 9:16:23 PM - Failed to initialize settings for Isolated Shell C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\ssms.exe: The network path was not found. (Exception from HRESULT: 0x80070035)
11/13/2013 9:16:23 PM - Found installed product - Microsoft Visual Studio 2010 Ultimate
11/13/2013 9:16:23 PM - Found installed product - Microsoft Visual Studio Ultimate 2012
11/13/2013 9:16:23 PM - Found installed product - Microsoft Visual Studio Premium 2012 
11/13/2013 9:16:23 PM - Found installed product - Microsoft Visual Studio Professional 2012
11/13/2013 9:16:23 PM - Found installed product - Microsoft Visual Studio 2012 Shell (Integrated)
11/13/2013 9:16:23 PM - Found installed product - Microsoft Visual Studio Premium 2013
11/13/2013 9:16:24 PM - System.IO.FileNotFoundException: The network path was not found. (Exception from HRESULT: 0x80070035)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.VisualStudio.Settings.ExternalSettingsManager.GetScopePaths(String applicationPath, String suffixOrName, String vsVersion, Boolean isLogged, Boolean isForIsolatedApplication)
   at Microsoft.VisualStudio.Settings.ExternalSettingsManager.CreateForApplication(String applicationPath)
   at VSIXInstaller.App.GetExtensionManager(SupportedVSSKU sku)
   at VSIXInstaller.App.GetExtensionManagerForApplicableSKU(SupportedVSSKU supportedSKU, IInstallableExtension installableExtension, List`1 applicableSKUs)
   at VSIXInstaller.App.InitializeInstall()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
我尝试卸载VS 2010(因为我不再使用它),但运气不佳。然后我连接到我的工作VPN,然后打开VS2013时,我收到一条消息,说明它正在奇怪的地方查找我的设置文件:

C:\Users\Zach\\\SomeNetworkServer\someone\someone

我更新了“工具”>“选项”>“导入和导出设置”下的设置路径(实际上是同一个奇数路径),NuGet和VS2013现在似乎都正常工作


我不知道它是从哪里来的,但当我在工作的VPN上时,我确实看到了不同的行为。

感谢所有的回复和建议。在我使用的电脑上,文档目录及其内容默认是加密的,包括我的IISExpress。删除加密解决了问题。

我使用的是Windows我通过安装IIS Express 8 x64找到了一个解决方案


我正在使用Visual Studio Express for web 2013运行Win 8.1 Pro(64位)

我的机器有两个问题,即:

  • C:\Users中的applicationhost.config文件(插入您的用户登录名)\Documents\IISExpress\config格式不正确。出现此问题的原因似乎是.NET配置系统读取applicationHost.config文件时未锁定它。如果IIS配置文件在Windows激活服务(was)读取时写入该文件,该文件可能已损坏。不管怎样,我到处乱逛,下载了一份原始的副本

  • 在解决了上述问题之后,我随后遇到了相同的错误消息(未指定的错误-来自hresult的异常:0x80004005(e_fail))。然后,我尝试通过另一种方式创建一个MVC web项目。我创建了一个空白解决方案,并向其中添加了一个MVC web项目,这次IDE发出了一条不同的消息。弹出窗口转储了一条类似这样的神秘行:“IIS无法读取C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.Config-错误“。我继续卸载IIS 8.0并重新安装应用程序。瞧,我现在又可以创建MVC网络应用了!:)


如果此线程中的其他解决方案无法帮助您更新图形驱动程序。我没有遇到上述错误,但我无法在“创建新项目”窗口中单击“选项”

我多次安装、卸载和重新安装了VS 2013 professional、premium和express,但最终是得到了我最新的图形驱动程序,即beta版,才导致这个问题消失


我正在运行Windows 8.1(带有新更新)和Radeon HD7850。

从IISExpress\Config文件(应用程序主机、aspnet、重定向)中删除只读属性为我解决了问题。

我通过修复IIS express更正了此错误。您也可以重新安装IIS express。

我也从hresult获得了相同的异常:0x80004005(e_fail)错误

这发生在我安装SQL server 2014之后,在此之前,我的VS2013工作正常

我通过卸载IIS 8 Express并重新安装来解决此问题


到目前为止,一切都很顺利

Windows7x64,VS2013更新4

修复IIS Express修复我的问题
我也面临同样的问题。我正在选择“空”MVC项目模板,并且一次又一次地出现相同的错误

我试着选择“MVC”项目模板,但得到了相同的错误

通过谷歌搜索发现,IIS express的应用程序主机配置文件出错也会导致问题。我在IIS express中只配置了一个站点,并尝试从命令提示符下托管该站点。这时它向我显示了IIS express的applicationHostConfig文件中的错误,包括错误所在的行号。我以前玩过这个文件,没有指定名称就添加了一个站点

解决那个问题为我解决了这个问题

开发/重置设置


为我工作。

我也遇到了同样的问题,在互联网上寻找解决方案,因为我不想重新安装VS 2013,只想在别人的问题上找到我的解决方案(哦,真是讽刺)。

我出现此错误是因为我的applicationhost.config为空。当我意识到项目是创建的,而不是添加到解决方案中时,我就明白了这一点。因此,我尝试手动添加项目,但它声称applicationhost.config文件中存在错误。我去看了看,它是空的。
不管是什么原因,它都会停止IISexpress.exe的工作。
因此,我删除了applicationhost.config文件,并尝试将项目添加到解决方案中,瞧,一切都很顺利。

<application path="/" applicationPool="Clr4IntegratedAppPool"> 
11/13/2013 9:16:17 PM -     Supported Products : 
11/13/2013 9:16:17 PM -         Microsoft.VisualStudio.Pro
11/13/2013 9:16:17 PM -             Version : [12.0]
11/13/2013 9:16:17 PM -         Microsoft.VisualStudio.IntegratedShell
11/13/2013 9:16:17 PM -             Version : [12.0]
11/13/2013 9:16:17 PM -         Microsoft.VisualStudio.VWDExpress
11/13/2013 9:16:17 PM -             Version : [12.0]
11/13/2013 9:16:17 PM -         Microsoft.VisualStudio.VPDExpress
11/13/2013 9:16:17 PM -             Version : [12.0]
11/13/2013 9:16:17 PM -         Microsoft.VisualStudio.VSWinExpress
11/13/2013 9:16:17 PM -             Version : [12.0]
11/13/2013 9:16:17 PM -         Microsoft.VisualStudio.VSWinDesktopExpress
11/13/2013 9:16:17 PM -             Version : [12.0]
11/13/2013 9:16:17 PM - 
11/13/2013 9:16:17 PM -     References      : 
11/13/2013 9:16:17 PM - 
11/13/2013 9:16:17 PM - Searching for applicable products...
11/13/2013 9:16:23 PM - Failed to initialize settings for Isolated Shell C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\ssms.exe: The network path was not found. (Exception from HRESULT: 0x80070035)
11/13/2013 9:16:23 PM - Found installed product - Microsoft Visual Studio 2010 Ultimate
11/13/2013 9:16:23 PM - Found installed product - Microsoft Visual Studio Ultimate 2012
11/13/2013 9:16:23 PM - Found installed product - Microsoft Visual Studio Premium 2012 
11/13/2013 9:16:23 PM - Found installed product - Microsoft Visual Studio Professional 2012
11/13/2013 9:16:23 PM - Found installed product - Microsoft Visual Studio 2012 Shell (Integrated)
11/13/2013 9:16:23 PM - Found installed product - Microsoft Visual Studio Premium 2013
11/13/2013 9:16:24 PM - System.IO.FileNotFoundException: The network path was not found. (Exception from HRESULT: 0x80070035)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.VisualStudio.Settings.ExternalSettingsManager.GetScopePaths(String applicationPath, String suffixOrName, String vsVersion, Boolean isLogged, Boolean isForIsolatedApplication)
   at Microsoft.VisualStudio.Settings.ExternalSettingsManager.CreateForApplication(String applicationPath)
   at VSIXInstaller.App.GetExtensionManager(SupportedVSSKU sku)
   at VSIXInstaller.App.GetExtensionManagerForApplicableSKU(SupportedVSSKU supportedSKU, IInstallableExtension installableExtension, List`1 applicableSKUs)
   at VSIXInstaller.App.InitializeInstall()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()