Неопознанная ошибка 0x80004005 visual studio

October 26 2020, 08:30

Category:

  • IT
  • Cancel

Недавно я сначала обновил свою операционную систему «Windows 7» на «Windows 10», а затем обновил свою среду разработки «Visual Studio Community» с версии 2017 на версию 2019.

После этого я попытался создать новый проект в среде «Visual Studio Community 2019» и получил ошибку «Неопознанная ошибка (Исключение из HRESULT: 0x80004005 (E_FAIL))». Англоязычный вариант текста ошибки: «Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))».

Я думаю, эта ошибка в моем случае была связана с тем, что у среды «Visual Studio Community 2019» не было каких-то прав, возможно, связанных с созданием папок или файлов.

В моем случае для решения вышеуказанной проблемы было достаточно запустить среду «Visual Studio Community 2019» от имени администратора. Для этого я открыл меню кнопки «Пуск», нашел ярлык запуска среды «Visual Studio Community 2019», нажал на этот ярлык правой кнопкой мыши и в открывшемся контекстном меню нажал пункт «Дополнительно». Открылось подменю этого пункта и в нем я нажал на пункт «Запуск от имени администратора».

Открылось окно среды «Visual Studio Community 2019». При запуске от имени администратора в правом верхнем углу окна среды появляется надпись «АДМИНИСТРАТОР» (в обычном режиме этой надписи нет). Я создал новый проект в этом режиме, ошибок не возникло. После этого я вышел из программы, удалил папку проекта для чистоты эксперимента и запустил среду «Visual Studio Community 2019» в обычном режиме. Снова создал новый проект, на этот раз всё прошло без ошибок.

  • Remove From My Forums
  • Question

  • I have installed Visual Studio 2015 Community version. I am using Windows 7 64 bit system. 

    I have performed following steps to create new web application and «Unspecified Error» is thrown. I have also repaired the visual studion 2015 but the error still throwing.

    1) Go to File > New > Project

    2) Clicked «Asp.net Web Application» with .Net Framework 4.5.

    Result: «Unspecified error (Exception from HRESULT: 0X80004005 (E_FAIL)) has occurred» error is thrown 

    Hint: I found that the «WebApplication1» folder is successfully created with App_DATA, App_Start,….., WebApplicaiton1.csproj folders/files. But the .sln file is not creating.

Answers

  • Hi Saurabh,

    For this particular issue, I searched some solutions below, hope they will helpful:

    1. Go to Control Panel -> Programs and Features -> Turn Windows Features on or off, inside that, we had to select Internet Information Services -> Web Management Tools -> IIS 6 Management Compatibility -> IIS Metabse
    and IIS 6 configuration compatibility.

    2. Edit the web application’s project file with a text editor and change this line from True to False:

    <UseIIS>True</UseIIS>

    3. Grant IIS AppPool identity permissions to the %systemroot%inetsrvconfig

    4.Run in command prompt: aspnet_regiis –i or aspnet_regiis.exe –ga

    If the above doesn’t work, please use the devenv /log to start visual studio and log all activity to the log file. You can get the log file at: %APPDATA%MicrosoftVisualStudioVersionActivityLog.xml, open it in the IE to see
    whether there are errors. Refer to:
    https://msdn.microsoft.com/en-us/library/xee0c8y7.aspx?f=255&MSPPError=-2147217396

    Best Regards,

    JiayiLi

    • Edited by

      Thursday, May 28, 2015 9:47 AM

    • Marked as answer by
      Barry Wang
      Thursday, June 4, 2015 1:30 AM

Can anybody shed any light on the above error? I’ve tried with both Express and Ultimate editions of VS 2013.

I’m running 64-bit Windows 7.

Solutions to similar problems I’ve found tend to be targetting x86 rather than AnyCPU from the Solution explorer. However, I can’t even build the solution to explore it.

The new project I’m trying to build is c# ASP.net MVC.

ForceMagic's user avatar

ForceMagic

6,19012 gold badges66 silver badges88 bronze badges

asked Sep 17, 2013 at 11:41

user1405195's user avatar

4

Thanks for all the replies and suggestions. On the PC I’m using, the Documents directory and it’s contents are encrypted by default — including my IISExpress. Removing the encryption solved the problem.

answered Nov 15, 2013 at 1:22

user1405195's user avatar

user1405195user1405195

1,6674 gold badges22 silver badges35 bronze badges

7

Have you tried to manually install NuGet for VS 2013?

I had a similar issue, until I found that the VS 2013 setup — for some reason — did not install the NuGet package manager. After I installed it manually everything worked fine.

answered Oct 21, 2013 at 9:13

Hannes Sachsenhofer's user avatar

3

I’m running on Win 8.1 Pro (64 bits) with Visual Studio Express for web 2013

The were two problems in my machine, namely :

  • the applicationhost.config file in C:Users(insert your user log in name)DocumentsIISExpressconfig was not well formed. It seems this problem occurs because the .NET configuration system reads the applicationHost.config file without locking it. If the IIS configuration file is being written to while it is being read by the Windows Activation Service (WAS), that file may be corrupted. Anyhow, I binged around and downloaded a pristine copy of it.

  • After fixing the above problem, I subsequently encountered the same error message (unspecified error — exception from hresult: 0x80004005 (e_fail) ). I then tried to create an MVC web project via another way. I created a blank solution and added an MVC web project to it and this time the IDE spewed out a different message. The pop-up window dumped a cryptic line like so, «IIS could not read C:WindowsMicrosoft.NETFrameworkv4.0.30319Configweb.config — error». I proceeded to uninstall IIS 8.0 and re-installed the application. And voila, I can now create MVC web apps again! :)

answered Apr 4, 2014 at 1:18

wanglabs's user avatar

2

FOUND SOLUTION

Go to Control Panel -> Programs and Features -> Select your Visual Studio Version and hit «Change»

1) Click MODIFY and enable Web Developer Tools

2) Enable Web Developer Tools

3) Click Update

answered May 11, 2017 at 12:54

rohit patil's user avatar

Removing Read Only property from IISExpressConfig files (applicationhost, aspnet, redirection) solved the problem for me.

answered Apr 15, 2014 at 16:30

QuestionableSolutions's user avatar

1

Run Visual studio as administrator, it will solve this issue.

Tunaki's user avatar

Tunaki

132k46 gold badges331 silver badges418 bronze badges

answered Mar 5, 2017 at 13:06

kushal's user avatar

kushalkushal

18114 bronze badges

I had the same error.
I solved the error by running Visual Studio 2013 at «run as administrator» mode as when you use web application projects IIS Express is involved.

answered Oct 20, 2013 at 17:00

Asaf's user avatar

1

I got the same Unspecified error when creating a new Web Application with MVC. I then tried to install the NuGet Package Manager for VS 2013 and got a little bit more detail on what was happening:

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 Server110ToolsBinnManagementStudiossms.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()

I tried uninstalling VS 2010 (since I don’t use it anymore) with no luck. I then connected to my work VPN and then when opening VS2013 I got a message stating it was looking for my settings file in an odd place:

C:UsersZach\SomeNetworkServersomethingsomething

I updated the path for settings under Tools > Options > Import and Export Settings (which was actually the same odd path) and both NuGet and VS2013 now seem to be working correctly.

I have no idea where it got that path but I definitely saw different behavior when I was on my work’s VPN vs not.

answered Nov 14, 2013 at 3:51

zlongren's user avatar

1

I corrected this error by repairing IIS express. You can as well reinstall IIS express.

hunch_hunch's user avatar

hunch_hunch

2,2731 gold badge20 silver badges26 bronze badges

answered Oct 6, 2014 at 19:59

Prince Olelewe's user avatar

After two days of trying to resolve this issue.

VS 2012: All good (just disabled IIS)

VS 2013: 0x80004005: Unspecified error

VS 2015: 0x80004005: Unspecified error

IIS Express via command line: Error cannot find «My documentsIIS Expressconfigapplicationhost.config»

Solution:

Copied applicationhost.config AND redirection.config from %programfiles%IIS ExpressconfigtemplatesPersonalWebServer into the «IIS Expressconfig» folder under My Documents.

Make sure you copy the redirection.config file, it WILL NOT warn you about this, just fail with the obscure 0x80004005 error. Had to monitor file I/O to track it down.

Also open applicationhost.config in notepad and make sure that the %IIS_BIN%AppServerempty_wwwroot folder is WRITEABLE, most likely this folder is under «%programfiles%IIS Express» and thus not writeable by default.

Also quite possible you need to set %IIS_BIN% yourself to «%programfiles%IIS Express».

So:

  • Make sure %IIS_BIN% is set

  • Make sure you have BOTH config files copied into the config folder

  • Make sure the wwwroot is writeable

    • Make sure the «empty_wwwroot» referenced in the .config matches the x86 / x64 setting in Visual Studio (VS uses x86 by default, can be changed to x64 under Project settings => Web Projects)

answered Jul 31, 2016 at 12:09

user3734274's user avatar

user3734274user3734274

3511 gold badge3 silver badges5 bronze badges

I am facing exactly same Problem and this trick worked for mine.
i go to file

C:UsersuserDocumentsIISExpressconfigapplicationhost.config

where i found one of tag is missing «<» like this

application path="/" applicationPool="Clr4IntegratedAppPool"> 

i just put «<» in front of Application like this

<application path="/" applicationPool="Clr4IntegratedAppPool"> 

It looks very silly but believe me both VS13 and VS13 express working perfectly.

answered Nov 11, 2013 at 9:25

Umar Abbas's user avatar

Umar AbbasUmar Abbas

4,0212 gold badges22 silver badges21 bronze badges

October 26 2020, 08:30

Category:

  • IT
  • Cancel

Недавно я сначала обновил свою операционную систему «Windows 7» на «Windows 10», а затем обновил свою среду разработки «Visual Studio Community» с версии 2017 на версию 2019.

После этого я попытался создать новый проект в среде «Visual Studio Community 2019» и получил ошибку «Неопознанная ошибка (Исключение из HRESULT: 0x80004005 (E_FAIL))». Англоязычный вариант текста ошибки: «Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))».

Я думаю, эта ошибка в моем случае была связана с тем, что у среды «Visual Studio Community 2019» не было каких-то прав, возможно, связанных с созданием папок или файлов.

В моем случае для решения вышеуказанной проблемы было достаточно запустить среду «Visual Studio Community 2019» от имени администратора. Для этого я открыл меню кнопки «Пуск», нашел ярлык запуска среды «Visual Studio Community 2019», нажал на этот ярлык правой кнопкой мыши и в открывшемся контекстном меню нажал пункт «Дополнительно». Открылось подменю этого пункта и в нем я нажал на пункт «Запуск от имени администратора».

Открылось окно среды «Visual Studio Community 2019». При запуске от имени администратора в правом верхнем углу окна среды появляется надпись «АДМИНИСТРАТОР» (в обычном режиме этой надписи нет). Я создал новый проект в этом режиме, ошибок не возникло. После этого я вышел из программы, удалил папку проекта для чистоты эксперимента и запустил среду «Visual Studio Community 2019» в обычном режиме. Снова создал новый проект, на этот раз всё прошло без ошибок.

Visual Studio 2017 Professional on Windows 10, solution with 47 projects targeting .NET 4.5.2.

VS always rebuilds many projects in my solution even if unchanged and up to date. I this «very informative» message:

1>Project 'A' is not up to date. Error (0x80004005). 
1>------ Build started: Project: A, Configuration: Debug Any CPU ------
2>Project 'B' is not up to date. Error (0x80004005). 
2>------ Build started: Project: B, Configuration: Debug Any CPU ------

I cannot see any .suo files in the solution. Some projects in the solution are C# and others are VB.NET. However, as I was typing this, I notice that it is the C# projects only that throw the 0x80004005 error and compel rebuild.

Please help me solve this weird problem.

Thanks.

asked Dec 29, 2019 at 21:51

John Tamburo's user avatar

2

I found it!

In the .csproj file, there was this:

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" **ToolsVersion="12.0"**>

But if you change it to this:

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" **ToolsVersion="Current"**>

[ ** Highlighting mine]

Thanks!

answered Jan 12, 2020 at 2:04

John Tamburo's user avatar

I got the same error 0x80004005 on loading.
And all that was needed was to run build -> clean code solution

answered Jun 28, 2020 at 9:52

Miguel Tomás's user avatar

Miguel TomásMiguel Tomás

1,5861 gold badge10 silver badges21 bronze badges

  • Remove From My Forums
  • Question

  • I have installed Visual Studio 2015 Community version. I am using Windows 7 64 bit system. 

    I have performed following steps to create new web application and «Unspecified Error» is thrown. I have also repaired the visual studion 2015 but the error still throwing.

    1) Go to File > New > Project

    2) Clicked «Asp.net Web Application» with .Net Framework 4.5.

    Result: «Unspecified error (Exception from HRESULT: 0X80004005 (E_FAIL)) has occurred» error is thrown 

    Hint: I found that the «WebApplication1» folder is successfully created with App_DATA, App_Start,….., WebApplicaiton1.csproj folders/files. But the .sln file is not creating.

Answers

  • Hi Saurabh,

    For this particular issue, I searched some solutions below, hope they will helpful:

    1. Go to Control Panel -> Programs and Features -> Turn Windows Features on or off, inside that, we had to select Internet Information Services -> Web Management Tools -> IIS 6 Management Compatibility -> IIS Metabse
    and IIS 6 configuration compatibility.

    2. Edit the web application’s project file with a text editor and change this line from True to False:

    <UseIIS>True</UseIIS>

    3. Grant IIS AppPool identity permissions to the %systemroot%inetsrvconfig

    4.Run in command prompt: aspnet_regiis –i or aspnet_regiis.exe –ga

    If the above doesn’t work, please use the devenv /log to start visual studio and log all activity to the log file. You can get the log file at: %APPDATA%MicrosoftVisualStudioVersionActivityLog.xml, open it in the IE to see
    whether there are errors. Refer to:
    https://msdn.microsoft.com/en-us/library/xee0c8y7.aspx?f=255&MSPPError=-2147217396

    Best Regards,

    JiayiLi

    • Edited by

      Thursday, May 28, 2015 9:47 AM

    • Marked as answer by
      Barry Wang
      Thursday, June 4, 2015 1:30 AM

Can anybody shed any light on the above error? I’ve tried with both Express and Ultimate editions of VS 2013.

I’m running 64-bit Windows 7.

Solutions to similar problems I’ve found tend to be targetting x86 rather than AnyCPU from the Solution explorer. However, I can’t even build the solution to explore it.

The new project I’m trying to build is c# ASP.net MVC.

ForceMagic's user avatar

ForceMagic

6,13212 gold badges67 silver badges88 bronze badges

asked Sep 17, 2013 at 11:41

user1405195's user avatar

4

Thanks for all the replies and suggestions. On the PC I’m using, the Documents directory and it’s contents are encrypted by default — including my IISExpress. Removing the encryption solved the problem.

answered Nov 15, 2013 at 1:22

user1405195's user avatar

user1405195user1405195

1,6674 gold badges22 silver badges34 bronze badges

7

Have you tried to manually install NuGet for VS 2013?

I had a similar issue, until I found that the VS 2013 setup — for some reason — did not install the NuGet package manager. After I installed it manually everything worked fine.

answered Oct 21, 2013 at 9:13

Hannes Sachsenhofer's user avatar

3

I’m running on Win 8.1 Pro (64 bits) with Visual Studio Express for web 2013

The were two problems in my machine, namely :

  • the applicationhost.config file in C:Users(insert your user log in name)DocumentsIISExpressconfig was not well formed. It seems this problem occurs because the .NET configuration system reads the applicationHost.config file without locking it. If the IIS configuration file is being written to while it is being read by the Windows Activation Service (WAS), that file may be corrupted. Anyhow, I binged around and downloaded a pristine copy of it.

  • After fixing the above problem, I subsequently encountered the same error message (unspecified error — exception from hresult: 0x80004005 (e_fail) ). I then tried to create an MVC web project via another way. I created a blank solution and added an MVC web project to it and this time the IDE spewed out a different message. The pop-up window dumped a cryptic line like so, «IIS could not read C:WindowsMicrosoft.NETFrameworkv4.0.30319Configweb.config — error». I proceeded to uninstall IIS 8.0 and re-installed the application. And voila, I can now create MVC web apps again! :)

answered Apr 4, 2014 at 1:18

wanglabs's user avatar

2

FOUND SOLUTION

Go to Control Panel -> Programs and Features -> Select your Visual Studio Version and hit «Change»

1) Click MODIFY and enable Web Developer Tools

2) Enable Web Developer Tools

3) Click Update

answered May 11, 2017 at 12:54

rohit patil's user avatar

Removing Read Only property from IISExpressConfig files (applicationhost, aspnet, redirection) solved the problem for me.

answered Apr 15, 2014 at 16:30

QuestionableSolutions's user avatar

1

Run Visual studio as administrator, it will solve this issue.

Tunaki's user avatar

Tunaki

130k45 gold badges326 silver badges414 bronze badges

answered Mar 5, 2017 at 13:06

kushal's user avatar

kushalkushal

18114 bronze badges

I had the same error.
I solved the error by running Visual Studio 2013 at «run as administrator» mode as when you use web application projects IIS Express is involved.

answered Oct 20, 2013 at 17:00

Asaf's user avatar

1

I got the same Unspecified error when creating a new Web Application with MVC. I then tried to install the NuGet Package Manager for VS 2013 and got a little bit more detail on what was happening:

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 Server110ToolsBinnManagementStudiossms.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()

I tried uninstalling VS 2010 (since I don’t use it anymore) with no luck. I then connected to my work VPN and then when opening VS2013 I got a message stating it was looking for my settings file in an odd place:

C:UsersZachSomeNetworkServersomethingsomething

I updated the path for settings under Tools > Options > Import and Export Settings (which was actually the same odd path) and both NuGet and VS2013 now seem to be working correctly.

I have no idea where it got that path but I definitely saw different behavior when I was on my work’s VPN vs not.

answered Nov 14, 2013 at 3:51

zlongren's user avatar

1

I corrected this error by repairing IIS express. You can as well reinstall IIS express.

hunch_hunch's user avatar

hunch_hunch

2,2751 gold badge20 silver badges26 bronze badges

answered Oct 6, 2014 at 19:59

Prince Olelewe's user avatar

After two days of trying to resolve this issue.

VS 2012: All good (just disabled IIS)

VS 2013: 0x80004005: Unspecified error

VS 2015: 0x80004005: Unspecified error

IIS Express via command line: Error cannot find «My documentsIIS Expressconfigapplicationhost.config»

Solution:

Copied applicationhost.config AND redirection.config from %programfiles%IIS ExpressconfigtemplatesPersonalWebServer into the «IIS Expressconfig» folder under My Documents.

Make sure you copy the redirection.config file, it WILL NOT warn you about this, just fail with the obscure 0x80004005 error. Had to monitor file I/O to track it down.

Also open applicationhost.config in notepad and make sure that the %IIS_BIN%AppServerempty_wwwroot folder is WRITEABLE, most likely this folder is under «%programfiles%IIS Express» and thus not writeable by default.

Also quite possible you need to set %IIS_BIN% yourself to «%programfiles%IIS Express».

So:

  • Make sure %IIS_BIN% is set

  • Make sure you have BOTH config files copied into the config folder

  • Make sure the wwwroot is writeable

    • Make sure the «empty_wwwroot» referenced in the .config matches the x86 / x64 setting in Visual Studio (VS uses x86 by default, can be changed to x64 under Project settings => Web Projects)

answered Jul 31, 2016 at 12:09

user3734274's user avatar

user3734274user3734274

3511 gold badge3 silver badges5 bronze badges

I am facing exactly same Problem and this trick worked for mine.
i go to file

C:UsersuserDocumentsIISExpressconfigapplicationhost.config

where i found one of tag is missing «<» like this

application path="/" applicationPool="Clr4IntegratedAppPool"> 

i just put «<» in front of Application like this

<application path="/" applicationPool="Clr4IntegratedAppPool"> 

It looks very silly but believe me both VS13 and VS13 express working perfectly.

answered Nov 11, 2013 at 9:25

Umar Abbas's user avatar

Umar AbbasUmar Abbas

3,9812 gold badges22 silver badges21 bronze badges

Can anybody shed any light on the above error? I’ve tried with both Express and Ultimate editions of VS 2013.

I’m running 64-bit Windows 7.

Solutions to similar problems I’ve found tend to be targetting x86 rather than AnyCPU from the Solution explorer. However, I can’t even build the solution to explore it.

The new project I’m trying to build is c# ASP.net MVC.

ForceMagic's user avatar

ForceMagic

6,13212 gold badges67 silver badges88 bronze badges

asked Sep 17, 2013 at 11:41

user1405195's user avatar

4

Thanks for all the replies and suggestions. On the PC I’m using, the Documents directory and it’s contents are encrypted by default — including my IISExpress. Removing the encryption solved the problem.

answered Nov 15, 2013 at 1:22

user1405195's user avatar

user1405195user1405195

1,6674 gold badges22 silver badges34 bronze badges

7

Have you tried to manually install NuGet for VS 2013?

I had a similar issue, until I found that the VS 2013 setup — for some reason — did not install the NuGet package manager. After I installed it manually everything worked fine.

answered Oct 21, 2013 at 9:13

Hannes Sachsenhofer's user avatar

3

I’m running on Win 8.1 Pro (64 bits) with Visual Studio Express for web 2013

The were two problems in my machine, namely :

  • the applicationhost.config file in C:Users(insert your user log in name)DocumentsIISExpressconfig was not well formed. It seems this problem occurs because the .NET configuration system reads the applicationHost.config file without locking it. If the IIS configuration file is being written to while it is being read by the Windows Activation Service (WAS), that file may be corrupted. Anyhow, I binged around and downloaded a pristine copy of it.

  • After fixing the above problem, I subsequently encountered the same error message (unspecified error — exception from hresult: 0x80004005 (e_fail) ). I then tried to create an MVC web project via another way. I created a blank solution and added an MVC web project to it and this time the IDE spewed out a different message. The pop-up window dumped a cryptic line like so, «IIS could not read C:WindowsMicrosoft.NETFrameworkv4.0.30319Configweb.config — error». I proceeded to uninstall IIS 8.0 and re-installed the application. And voila, I can now create MVC web apps again! :)

answered Apr 4, 2014 at 1:18

wanglabs's user avatar

2

FOUND SOLUTION

Go to Control Panel -> Programs and Features -> Select your Visual Studio Version and hit «Change»

1) Click MODIFY and enable Web Developer Tools

2) Enable Web Developer Tools

3) Click Update

answered May 11, 2017 at 12:54

rohit patil's user avatar

Removing Read Only property from IISExpressConfig files (applicationhost, aspnet, redirection) solved the problem for me.

answered Apr 15, 2014 at 16:30

QuestionableSolutions's user avatar

1

Run Visual studio as administrator, it will solve this issue.

Tunaki's user avatar

Tunaki

130k45 gold badges326 silver badges414 bronze badges

answered Mar 5, 2017 at 13:06

kushal's user avatar

kushalkushal

18114 bronze badges

I had the same error.
I solved the error by running Visual Studio 2013 at «run as administrator» mode as when you use web application projects IIS Express is involved.

answered Oct 20, 2013 at 17:00

Asaf's user avatar

1

I got the same Unspecified error when creating a new Web Application with MVC. I then tried to install the NuGet Package Manager for VS 2013 and got a little bit more detail on what was happening:

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 Server110ToolsBinnManagementStudiossms.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()

I tried uninstalling VS 2010 (since I don’t use it anymore) with no luck. I then connected to my work VPN and then when opening VS2013 I got a message stating it was looking for my settings file in an odd place:

C:UsersZachSomeNetworkServersomethingsomething

I updated the path for settings under Tools > Options > Import and Export Settings (which was actually the same odd path) and both NuGet and VS2013 now seem to be working correctly.

I have no idea where it got that path but I definitely saw different behavior when I was on my work’s VPN vs not.

answered Nov 14, 2013 at 3:51

zlongren's user avatar

1

I corrected this error by repairing IIS express. You can as well reinstall IIS express.

hunch_hunch's user avatar

hunch_hunch

2,2751 gold badge20 silver badges26 bronze badges

answered Oct 6, 2014 at 19:59

Prince Olelewe's user avatar

After two days of trying to resolve this issue.

VS 2012: All good (just disabled IIS)

VS 2013: 0x80004005: Unspecified error

VS 2015: 0x80004005: Unspecified error

IIS Express via command line: Error cannot find «My documentsIIS Expressconfigapplicationhost.config»

Solution:

Copied applicationhost.config AND redirection.config from %programfiles%IIS ExpressconfigtemplatesPersonalWebServer into the «IIS Expressconfig» folder under My Documents.

Make sure you copy the redirection.config file, it WILL NOT warn you about this, just fail with the obscure 0x80004005 error. Had to monitor file I/O to track it down.

Also open applicationhost.config in notepad and make sure that the %IIS_BIN%AppServerempty_wwwroot folder is WRITEABLE, most likely this folder is under «%programfiles%IIS Express» and thus not writeable by default.

Also quite possible you need to set %IIS_BIN% yourself to «%programfiles%IIS Express».

So:

  • Make sure %IIS_BIN% is set

  • Make sure you have BOTH config files copied into the config folder

  • Make sure the wwwroot is writeable

    • Make sure the «empty_wwwroot» referenced in the .config matches the x86 / x64 setting in Visual Studio (VS uses x86 by default, can be changed to x64 under Project settings => Web Projects)

answered Jul 31, 2016 at 12:09

user3734274's user avatar

user3734274user3734274

3511 gold badge3 silver badges5 bronze badges

I am facing exactly same Problem and this trick worked for mine.
i go to file

C:UsersuserDocumentsIISExpressconfigapplicationhost.config

where i found one of tag is missing «<» like this

application path="/" applicationPool="Clr4IntegratedAppPool"> 

i just put «<» in front of Application like this

<application path="/" applicationPool="Clr4IntegratedAppPool"> 

It looks very silly but believe me both VS13 and VS13 express working perfectly.

answered Nov 11, 2013 at 9:25

Umar Abbas's user avatar

Umar AbbasUmar Abbas

3,9812 gold badges22 silver badges21 bronze badges

  • Remove From My Forums
  • Question

  • Specifically Visual Studio 2012 Premium. i’m trying to create a task sequence for our developers group, but it fails everytime when it comes to installing VS. The only error code i get is 0x80004005, and the smsts.log has no errors that I can find.
    I’ve already published it to the application catalog, and it installs without issue from there (the command line i’m using is «vs_premium.exe /adminfile AdminDeployment.xml /quiet /norestart»), but I cannot get it to install as part of a task sequence. When
    I check the box to allow the task sequence to continue if an app fails to install, all of my other apps install fine. So is there anything I should know about VS 2012 specifically to get it to install as part of an imaging process?

    p.s. I wasn’t sure what forum this question would best be suited for, so if I should ask somewhere else please let me know

Answers

  • Turns out it was the .net 4.5 per-requisite that was the problem. It installs fine from the VS 2012 installation package in the app catalog, but when being installed from a task sequence .net 4.5 doesn’t get install first, causing VS to error out. When
    I updated our base image to include .net 4.5, VS 2012 is able to be deployed as part of the imaging process with no errors

    • Marked as answer by

      Friday, November 16, 2012 7:50 PM

    • Edited by
      acole83
      Friday, November 16, 2012 7:51 PM

HAYL, для начало сделайте очистку проекта(решение), потом пересобрать проект(решение).
или
попробуйте создать такой же новый проект.
Перенесите код из старого проекта.

Или попробуйте так

Способ 1. Попробуйте запустить Microsoft Visual Studio от имени администратора
Как бы просто это ни звучало, в ряде случаев это было доказано как решение для ошибки 0x80004005 в Microsoft Visual Studio. Просто щелкните правой кнопкой мыши значок Visual Studio и выберите “Запуск от имени администратора“.

Способ 2. Попробуйте запустить VS IDE в безопасном режиме и восстановить настройки по умолчанию
Как утверждает Microsoft, это один из лучших методов, который можно использовать при решении любых проблем с Visual Studio. Просто откройте командную строку Visual Studio и выполните эти команды:

Devenv.exe /SafeMode

Devenv.exe /ResetSettings

Способ 3. Проверьте, доступны ли все файлы, включенные в проект Visual Studio
Если при открытии сохраненного проекта возникает ошибка 0x80004005, велика вероятность того, что некоторые файлы проекта были удалены, переименованы или в настоящее время недоступны.

Способ 4. Убедитесь, что ваш проект VS совместим с установленной версией Visual Studio
Если ошибка 0x80004005 также может возникнуть при попытке загрузить проект, созданный с использованием более новой версии Visual Studio.

Понравилась статья? Поделить с друзьями:
  • Неопознанная ошибка 0x8000222 при установке visual c
  • Нельзя нивелировать оценки ученикам ошибка
  • Нельзя не заметить ошибок
  • Нельзя менять часть массива ошибка
  • Нельзя изменить часть массива как убрать ошибку