Ошибка 0x80004005 visual studio

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 infor...

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,5921 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 badges68 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

130k46 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: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,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,9912 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 badges68 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

130k46 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: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,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,9912 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

27 ответов

Спасибо за все ответы и предложения. На ПК, который я использую, каталог документов и его содержимое зашифрованы по умолчанию — включая мой IISExpress. Удаление шифрования решило проблему.

user1405195
15 нояб. 2013, в 02:27

Поделиться

Вы пытались выполнить вручную установить NuGet для VS 2013?

У меня была аналогичная проблема, пока я не обнаружил, что установка VS 2013 — по какой-то причине — не установила менеджер пакетов NuGet. После того, как я установил его вручную, все работало нормально.

Hannes Sachsenhofer
21 окт. 2013, в 10:46

Поделиться

НАЙДЕННОЕ РЕШЕНИЕ

Перейдите в Панель управления → Программы и компоненты → Выберите версию Visual Studio и нажмите «Изменить»

1) Нажмите «ИЗМЕНИТЬ» и включите средства веб-разработки

2) Включить инструменты веб-разработчика

3) Нажмите «Обновить»

rohit patil
11 май 2017, в 13:27

Поделиться

Я запускаю Win 8.1 Pro (64 бит) с помощью Visual Studio Express для веб-сайта

В моей машине были две проблемы, а именно:

  • файл applicationhost.config в C:Users (введите имя пользователя вашего пользователя)DocumentsIISExpressconfig не был сформирован. Похоже, эта проблема возникает из-за того, что система конфигурации .NET считывает файл applicationHost.config без его блокировки. Если файл конфигурации IIS записывается во время чтения службой активации Windows (WAS), этот файл может быть поврежден. Во всяком случае, я повесился и загрузил нетронутую копию.

  • После исправления вышеуказанной проблемы я впоследствии столкнулся с тем же сообщением об ошибке (неопределенная ошибка — исключение из hresult: 0x80004005 (e_fail)). Затем я попытался создать веб-проект MVC по-другому. Я создал пустое решение и добавил к нему веб-проект MVC, и на этот раз IDE извергало другое сообщение. Всплывающее окно сбрасывало загадочную строку так: «IIS не смог прочитать C:WindowsMicrosoft.NETFrameworkv4.0.30319Configweb.config — ошибка». Я продолжил удаление IIS 8.0 и снова установил приложение. И вуаля, я могу теперь создавать веб-приложения MVC снова!:)

wanglabs
04 апр. 2014, в 01:42

Поделиться

Удаление свойства Read Only из файлов IISExpressConfig (applicationhost, aspnet, redirection) решило проблему для меня.

QuestionableSolutions
15 апр. 2014, в 16:47

Поделиться

Запустите Visual Studio как администратор, он решит эту проблему.

kushal
05 март 2017, в 13:24

Поделиться

Я исправил эту ошибку, восстановив IIS express. Вы также можете переустановить IIS express.

Prince Olelewe
06 окт. 2014, в 21:24

Поделиться

Удалите все выпуски VS2013, которые у вас есть и переустановите.

TravisO
19 сен. 2013, в 14:36

Поделиться

Я получил эту проблему, потому что папка по умолчанию для новых проектов находится внутри папки OneDrive. Создание проекта в другом месте обошло ошибку.

nopskazoid
07 фев. 2019, в 09:47

Поделиться

Лучшее решение для этого — открыть визуальную студию «Запуск от имени администратора». Если вы откроете свой visual stdio 2015, 2017 в качестве администратора, то эта проблема не возникнет.

Sandeep Parashar
20 авг. 2018, в 07:02

Поделиться

Еще одна причина и решение здесь.

Во-первых, я устраняю неполадки, закрывая и открывая созданный проект (который существовал, хотя и с проблемами). При этом я получил более значимую ошибку, предполагающую, что C:WindowsMicrosoft.NETFrameworkv4.0.30319ConfigWeb.Config был недопустимым XML.

Затем я заменил C:WindowsMicrosoft.NETFrameworkv4.0.30319ConfigWeb.Config на копию C:WindowsMicrosoft.NETFrameworkv4.0.30319ConfigWeb.Config.default и проблема была решена.

Tom Walker
26 апр. 2018, в 07:54

Поделиться

Если вы связываетесь с любыми родными/COM-библиотеками, то измените цель сборки решения с AnyCpu на x86

Sachith
05 март 2017, в 14:27

Поделиться

Я изменил разрешения, предоставив всем пользователям доступ к папке проектов — и перезагрузился — это исправило это для меня.

niico
03 окт. 2016, в 15:21

Поделиться

Я думал, что тоже должен ответить на этот вопрос, так как я не видел свое решение, отправленное кем-то еще… У меня была такая же ошибка при создании проекта, и, кроме того, мне также не удалось открыть веб-проекты (я получил сообщение об ошибке «Создание виртуального каталога localhost: xxxxx с ошибкой: не удалось получить доступ к метабазе IIS. У вас недостаточно привилегий для доступа к веб-сайтам IIS на вашем компьютере» ).

Как оказалось, я вошел в систему, используя мою учетную запись Active Directory, и срок действия пароля истек, и я изменил его на другой машине. Однако по какой-то причине эта машина (одна с Visual Studio на ней) продолжала разрешать мне входить в систему с моим старым паролем, даже если он истек (Windows 7/x64).

Войдя в мою компанию VPN, затем запустив мой компьютер, а затем войдя в систему с моим новым паролем, я смог заставить его синхронизировать машину с новым паролем, и это решило обе мои проблемы. Мое лучшее предположение заключается в том, что при доступе к файлам Visual Studio выполняет некоторые проверки разрешений, которые Windows Explorer не делает, и не очень информативен, когда что-то идет не так.

electrikshepherd
24 авг. 2016, в 23:40

Поделиться

После двух дней попытки решить эту проблему.

VS 2012: все хорошо (только отключенный IIS)

VS 2013: 0x80004005: Неопределенная ошибка

VS 2015: 0x80004005: Неопределенная ошибка

IIS Express через командную строку: Ошибка не может найти «Мои документы IIS Expressconfigapplicationhost.config»

Решение:

Скопировано applicationhost.config И redirection.config из% programfiles%IIS ExpressconfigtemplatesPersonalWebServerв папку «IIS Expressconfig» в разделе Мои документы.

Убедитесь, что вы скопировали файл redirection.config, он НЕ предупреждает об этом, просто сбой с ошибкой 0x80004005. Чтобы отслеживать ввод/вывод файлов, отслеживать его.

Также откройте файл applicationhost.config в блокноте и убедитесь, что папка% IIS_BIN%AppServerempty_wwwroot WRITEABLE, скорее всего, эта папка находится под «% programfiles%IIS Express» и, следовательно, не может быть записана по умолчанию.

Также вполне возможно, что вам нужно установить% IIS_BIN% на «% programfiles%IIS Express».

Итак:

  • Удостоверьтесь, что% IIS_BIN% установлено

  • Убедитесь, что файлы конфигурации BOTH скопированы в папку конфигурации

  • Убедитесь, что wwwroot доступен для записи

    • Убедитесь, что «empty_wwwroot», указанный в .config, соответствует параметру x86/x64 в Visual Studio (по умолчанию VS использует x86, его можно изменить на x64 в разделе «Настройки проекта» > «Веб-проекты» ).

user3734274
31 июль 2016, в 12:09

Поделиться

У меня была эта проблема с Visual Studio 2015 и Windows10pro TH2, и я исправил ее, обновив/переустановил «Nuget Package Manager» до последней сборки

Arash
19 июль 2016, в 20:23

Поделиться

У меня была такая же проблема, оказалось, что просто требуется перезапуск Visual Studio 2013. Мое лучшее предположение заключается в том, что это связано с проблемой управления версиями. Помощник по команде проверил изменения каким-то образом, не получив никаких указаний.

logixologist
22 июнь 2016, в 18:56

Поделиться

У меня была такая же проблема, и я выбрал интернет для решений, потому что я не хотел переустанавливать VS 2013, только чтобы найти свое решение в чужой проблеме (о иронии).

У меня была эта ошибка, потому что мой applicationhost.config был пустым. Я понял эту часть, когда понял, что проект создан, просто не добавлен в решение. Итак, я попытался добавить проект вручную, и он утверждал, что в файле applicationhost.config произошла ошибка. Я смотрю на него, и он пуст.
По какой-либо причине это останавливает работу IISexpress.exe.
Итак, я удалил файл applicationhost.config и попытался добавить проект к решению, и вуаля, все работает как шарм.

Sanketh. K. Jain
03 фев. 2016, в 08:47

Поделиться

devenv/ResetSettings

работал у меня.

Anuraj
06 июль 2015, в 13:42

Поделиться

Я столкнулся с той же проблемой. Я выбирал шаблон «Пустой» MVC-проекта и получал ту же ошибку снова и снова.

Я попытался выбрать шаблон проекта MVC и получил ту же ошибку.

Выполнение небольшого количества поисковых запросов показало, что проблема с запущенным конфигурационным файлом приложения IIS express также может вызвать проблему. У меня был только один сайт, настроенный в IIS express, и я попытался выполнить его из командной строки. Это, когда он показал мне ошибку в файле applicationHostConfig IIS express, включая номер строки, где была ошибка. Я играл с файлом в прошлом и добавил сайт без указания имени.

Фиксирование этой проблемы решило проблему для меня.

Akhilesh
05 май 2015, в 07:45

Поделиться

Я получил такое же исключение из hresult: ошибка 0x80004005 (e_fail).

Это происходит после того, как я установил SQL Server 2014, до этого мой VS2013 работает нормально.

Я решаю это путем удаления IIS 8 Express и снова устанавливаю его.

Все работает отлично до сих пор.

Anthony Leung
08 янв. 2015, в 08:57

Поделиться

Если другие решения в этом потоке не помогли обновить графические драйверы. Я не получал ошибку, как показано выше, но я не мог щелкнуть параметры в окне создания нового проекта.

Я установил удаленный и переустановленный VS 2013 профессиональный, премиальный и экспресс несколько раз, но в конце концов он получал мои последние графические драйверы, бета-версию, из-за которых эта проблема уходила.

Я запускаю Windows 8.1 (с новым обновлением) и Radeon HD7850.

user3508667
07 апр. 2014, в 22:40

Поделиться

Я получил ту же ошибку Unspecified при создании нового веб-приложения с MVC. Затем я попытался установить диспетчер пакетов NuGet для VS 2013 и получил немного более подробную информацию о том, что происходит:

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

Я попытался удалить VS 2010 (так как я больше не использую его) без везения. Затем я подключился к своей работе VPN, а затем, открыв VS2013, получил сообщение о том, что он искал мой файл настроек в нечетном месте:

C:UsersZach \ SomeNetworkServerчто-точто-то

Я обновил путь к настройкам в меню «Инструменты» > «Параметры» > «Параметры импорта и экспорта» (который был фактически тем же самым нечетным путем), и теперь как NuGet, так и VS2013 работают корректно.

Я понятия не имею, где он получил этот путь, но я определенно видел другое поведение, когда был на моей работе. VPN против нет.

zlongren
14 нояб. 2013, в 04:38

Поделиться

У меня была такая же ошибка.
Я решил ошибку, запустив Visual Studio 2013 в режиме «работать как администратор», как при использовании проектов веб-приложений, в которых задействован IIS Express.

Asaf
20 окт. 2013, в 17:42

Поделиться

Я столкнулся с такой же проблемой, и этот трюк работал на мою.
я иду в файл

C:UsersПользовательDocumentsIISExpressConfigApplicationHost.config

где я обнаружил, что один из тегов отсутствует «<» как это

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

Я просто положил «<» перед Приложением вроде этого

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

Это выглядит очень глупо, но считаю, что VS13 и VS13 Express работают отлично.

Umar Abbas
11 нояб. 2013, в 09:38

Поделиться

Ещё вопросы

  • 1Селектор длинных списков WP8 PullToRefresh и нулевой видовой экран
  • 1Почему таймер matplotlib ускоряется при нажатии кнопки PyQt?
  • 0foreignKey или inverseForeignKey для таблицы «многие ко многим»
  • 0Угловая функция разрешения ng-submit только в области видимости
  • 0Как получить значение флажка из диалогового окна в Jquery Var
  • 0Как создать таблицу в базе данных MySQL через приложение Android?
  • 0PayPal периодические платежи с одноразовыми платежами
  • 1Эффективный SQL-запрос один-ко-многим
  • 1Как изменить текст шаров в amchart
  • 0Как вы видите, что ошибки Firebug?
  • 1Вставить Java-апплет на страницу GitHub
  • 1OrangePi Измерение нулевой частоты
  • 0Изменение минимального и максимального значений нескольких ползунков JQueryUI на странице из Выбрать
  • 0нужно применить без переноса и отключить правый контроль карусели в Angularjs ui carousel
  • 1Расположение файла jetty.xml в проекте maven?
  • 1Tensorflow-GPU 1.9 не работает на Pycharm
  • 1Сборка Gradle с Ajc завершается неудачно из-за создания временного файла
  • 1Python создает регулярное выражение из списка и его вариаций
  • 1Как отфильтровать нормализованные вложенные данные JSON без массива?
  • 1отправить сообщение как статус без диалога: Android Facebook
  • 0JQuery динамически добавленный текст не будет загружать стиль веб-шрифта
  • 0Как добавить Zend REST API на существующий сайт Concrete5?
  • 0удалить дубликаты Camma из запроса MySQL
  • 1Ошибка при подключении к Estimote Beacon iOS
  • 1Sequelize & Express модель и ассоциированная установка
  • 1JavaScript Promise Chaining — почему не работает?
  • 1Как .NET AppDomains поддерживает работу размещенного процесса?
  • 0Более простой способ найти вложенный узел XML?
  • 0Установите размер img перед отображением
  • 1Стилизация добавила строки в ArrayAdapter ListView Android
  • 1Android Market-подобная вкладка
  • 0HTML отображается как необработанный
  • 0получить данные xml elemnts с помощью php
  • 1Dynamodb не находит совпадения между двумя диапазонами дат
  • 0jQuery — DIV больше не появляется после закрытия всего сайта
  • 1Подключение к базе данных, проверка данных, страница входа
  • 1Я пытаюсь сделать графический интерфейс на Java
  • 1Нулевые переменные FXML
  • 0доступ к телу таблицы HTML с помощью Jquery
  • 1Открытый плагин NetBeans и OpenOffice
  • 0Сделать изменение формы (например, черновик / отделка) на Symfony2
  • 1Android 2.1 / 2.2 Bluetooth последовательное соединение с настольным компьютером
  • 0Javascript перенаправить на конкретный путь в URL
  • 1Получение пути и порта сервера Apache Tomcat динамически
  • 0C ++ самоустанавливающаяся служба Windows
  • 1Отображение строк информационного кадра Pandas в массив numpy
  • 0Встраивание содержимого HTTP на сайт HTTPS
  • 1Новый тип приведения в Java 8 или я ошибаюсь?
  • 1Уникально идентифицировать устройство?
  • 1Сгенерированные компилятором перегрузки для операторов сравнения

Понравилась статья? Поделить с друзьями:
  • Ошибка 0x800703f1 при обновлении windows 10 как исправить
  • Ошибка 0x80004005 kmsauto windows 10
  • Ошибка 0x800703ee при копировании на флешку как исправить
  • Ошибка 0x80004005 bluetooth
  • Ошибка 0x800703ee при копировании на диск