- Remove From My Forums
-
Question
-
User333319149 posted
I have installed VS community after that VS Enterprise 2017. In <g class=»gr_ gr_147 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins replaceWithoutSep» id=»147″ data-gr-id=»147″>enterprise</g> version, <g class=»gr_ gr_97 gr-alert gr_spell
gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace» id=»97″ data-gr-id=»97″>Mvc</g> core 2.1 projects <g class=»gr_ gr_141 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace» id=»141″ data-gr-id=»141″>is</g> not running showing
the error»The following error occurred when trying to configure IIS Express for <g class=»gr_ gr_375 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep» id=»375″ data-gr-id=»375″>project</g> <g class=»gr_ gr_376 gr-alert
gr_gramm gr_inline_cards gr_run_anim Punctuation multiReplace» id=»376″ data-gr-id=»376″>….</g> You do not have permission to access the IIS configuration file. Opening and creating <g class=»gr_ gr_490 gr-alert gr_spell gr_inline_cards gr_run_anim
ContextualSpelling ins-del» id=»490″ data-gr-id=»490″>web sites</g> on IIS requires running Visual Studio under an Administrator account.I have tried deleting /Document/IIS Express folder, Running as Admin, Reinstalled <g class=»gr_ gr_276 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace» id=»276″ data-gr-id=»276″>IiS</g> Express, Repair VS Enterprise.
Answers
-
User-788056197 posted
Solution is:
Turn Off «Real-time protection» in Windows Defender Security Centar.I try exclude almost everything in»Exclusion» section of Virus & threat protection setting of Windows Defender, but solve my problem is turn Off «Real-time protection».
If anybody know what exactly need to exclude, I am glad to know it.
-
Marked as answer by
Thursday, October 7, 2021 12:00 AM
-
Marked as answer by
We are two immediate neighbors who forged our own powers to form concatenated relationship. Who are we?
Why do Thanos’s punches not kill Captain America or at least cause some mortal injuries?
Juery Ui & Autocomplete error
Set a camera to free fall like a Rigid Body?
Early arrival in Australia, early hotel check in not available
Exception propagation: When to catch exceptions?
As programers say: Strive to be lazy
Is there enough time to Planar Bind a creature conjured by a 1-hour-duration spell?
Thesis’ «Future Work» section – is it acceptable to omit personal involvement in a mentioned project?
How can I make a vertical rule that extends to the edges of an fbox?
Is the schwa sound consistent?
Does kinetic energy warp spacetime?
Can you book a one-way ticket to the UK on a visa?
How to deal with inappropriate comments during interviews for academic positions?
Was there a contingency plan in place if Little Boy failed to detonate?
find not returning expected files
What does i386 mean on macOS Mojave?
Find all edge self-avoiding path of a graph
Is it a Munchausen Number?
Cannot parse JSON object containing escape characters
Why can’t RGB or bicolour LEDs produce a decent yellow?
What is the best way for a skeleton to impersonate human without using magic?
Is it a bad idea to replace pull-up resistors with hard pull-ups?
Renting a house to a graduate student in my department
“Opening and creating websites on iis requires running visual studio under an administrator account”
MSBuild doesn’t copy references (DLL files) if using project dependencies in solutionHow to Run Visual Studio as Administrator by defaultError ‘LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt’ after installing Visual Studio 2012 Release PreviewCan you force Visual Studio to always run as an Administrator in Windows 8?Visual Studio debugging/loading very slowHow do I open an old MVC project in Visual Studio 2012 or Visual Studio 2013?Unable to launch the IIS Express Web serverSpecified argument was out of the range of valid values. Parameter name: siteUnable to launch the IIS Express Web server, Failed to register URL, Access is deniedVisual Studio 2017 error: Unable to start program, An operation is not legal in the current state
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I’m seeing this error in a pop-up window when attempting to run/debug my web project from Visual Studio
The following error occurred when trying to configure IIS Express. Opening and creating websites on iis requires running visual studio under an administrator account
This happened completely out of the blue. One second I was working as normal, regularly going in and out of debug in my browser, then this error pops up. It happens when attempting to run any web project, and it doesn’t matter if it’s in debug, release mode or what.
Stuff I’ve tried:
- Run Visual Studio as Administrator
- Uninstall/Reinstall IIS Express (via «Turn Windows Features On or Off» in Control Panel)
- Update Visual Studio
- Delete project’s
.vs
folder
But still the error persists.
Is there anything else I can reinstall, update or otherwise check?
Thanks.
visual-studio visual-studio-2017 iis-express
Stuart AitkenStuart Aitken
I’m seeing this error in a pop-up window when attempting to run/debug my web project from Visual Studio
The following error occurred when trying to configure IIS Express. Opening and creating websites on iis requires running visual studio under an administrator account
This happened completely out of the blue. One second I was working as normal, regularly going in and out of debug in my browser, then this error pops up. It happens when attempting to run any web project, and it doesn’t matter if it’s in debug, release mode or what.
Stuff I’ve tried:
- Run Visual Studio as Administrator
- Uninstall/Reinstall IIS Express (via «Turn Windows Features On or Off» in Control Panel)
- Update Visual Studio
- Delete project’s
.vs
folder
But still the error persists.
Is there anything else I can reinstall, update or otherwise check?
Thanks.
visual-studio visual-studio-2017 iis-express
Stuart AitkenStuart Aitken
0
I’m seeing this error in a pop-up window when attempting to run/debug my web project from Visual Studio
The following error occurred when trying to configure IIS Express. Opening and creating websites on iis requires running visual studio under an administrator account
This happened completely out of the blue. One second I was working as normal, regularly going in and out of debug in my browser, then this error pops up. It happens when attempting to run any web project, and it doesn’t matter if it’s in debug, release mode or what.
Stuff I’ve tried:
- Run Visual Studio as Administrator
- Uninstall/Reinstall IIS Express (via «Turn Windows Features On or Off» in Control Panel)
- Update Visual Studio
- Delete project’s
.vs
folder
But still the error persists.
Is there anything else I can reinstall, update or otherwise check?
Thanks.
visual-studio visual-studio-2017 iis-express
Stuart AitkenStuart Aitken
I’m seeing this error in a pop-up window when attempting to run/debug my web project from Visual Studio
The following error occurred when trying to configure IIS Express. Opening and creating websites on iis requires running visual studio under an administrator account
This happened completely out of the blue. One second I was working as normal, regularly going in and out of debug in my browser, then this error pops up. It happens when attempting to run any web project, and it doesn’t matter if it’s in debug, release mode or what.
Stuff I’ve tried:
- Run Visual Studio as Administrator
- Uninstall/Reinstall IIS Express (via «Turn Windows Features On or Off» in Control Panel)
- Update Visual Studio
- Delete project’s
.vs
folder
But still the error persists.
Is there anything else I can reinstall, update or otherwise check?
Thanks.
visual-studio visual-studio-2017 iis-express
visual-studio visual-studio-2017 iis-express
Stuart AitkenStuart Aitken
Stuart AitkenStuart Aitken
Stuart AitkenStuart Aitken
Stuart AitkenStuart Aitken
Stuart AitkenStuart Aitken
Solved it by going through a day of hell, and to be honest the ‘solution’ was very brute force…
TL;DR: Fully deleting and reinstalling Visual Studio seemed to do the trick.
Since the usual methods weren’t working, I tried a full reinstall of Visual Studio. That didn’t help. I then tried a System Restore. That made everything far worse, with my project showing about 500 error messages!
I then undid the System Restore, completely deleted all traces of Visual Studio from my computer, reinstalled everything, then tried VS2019 preview edition, tried 2017 edition again, uninstalled and reinstalled NetCore 2.0, 2.1, 2.2… all just to get around the minefield of error messages I’d created for myself.
In the end I just needed to do a full NuGet clear and restore then run dotnet restore --force
in the NPM console, after which all those error messages were gone. As well as this, the original IIS Administrator error was gone too, presumably fixed via the original reinstall of Visual Studio.
Lost a whole day to this quagmire.
Stuart AitkenStuart Aitken
Your Answer
StackExchange.ifUsing(«editor», function ()
StackExchange.using(«externalEditor», function ()
StackExchange.using(«snippets», function ()
StackExchange.snippets.init();
);
);
, «code-snippets»);
StackExchange.ready(function()
var channelOptions =
tags: «».split(» «),
id: «1»
;
initTagRenderer(«».split(» «), «».split(» «), channelOptions);
StackExchange.using(«externalEditor», function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using(«snippets», function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: ‘answer’,
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: «»,
imageUploader:
brandingHtml: «Powered by u003ca class=»icon-imgur-white» href=»https://imgur.com/»u003eu003c/au003e»,
contentPolicyHtml: «User contributions licensed under u003ca href=»https://creativecommons.org/licenses/by-sa/3.0/»u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href=»https://stackoverflow.com/legal/content-policy»u003e(content policy)u003c/au003e»,
allowUrls: true
,
onDemand: true,
discardSelector: «.discard-answer»
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave(‘#login-link’);
);
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin(‘.new-post-login’, ‘https%3a%2f%2fstackoverflow.com%2fquestions%2f55313167%2fopening-and-creating-websites-on-iis-requires-running-visual-studio-under-an-ad%23new-answer’, ‘question_page’);
);
Post as a guest
Required, but never shown
Solved it by going through a day of hell, and to be honest the ‘solution’ was very brute force…
TL;DR: Fully deleting and reinstalling Visual Studio seemed to do the trick.
Since the usual methods weren’t working, I tried a full reinstall of Visual Studio. That didn’t help. I then tried a System Restore. That made everything far worse, with my project showing about 500 error messages!
I then undid the System Restore, completely deleted all traces of Visual Studio from my computer, reinstalled everything, then tried VS2019 preview edition, tried 2017 edition again, uninstalled and reinstalled NetCore 2.0, 2.1, 2.2… all just to get around the minefield of error messages I’d created for myself.
In the end I just needed to do a full NuGet clear and restore then run dotnet restore --force
in the NPM console, after which all those error messages were gone. As well as this, the original IIS Administrator error was gone too, presumably fixed via the original reinstall of Visual Studio.
Lost a whole day to this quagmire.
Stuart AitkenStuart Aitken
Solved it by going through a day of hell, and to be honest the ‘solution’ was very brute force…
TL;DR: Fully deleting and reinstalling Visual Studio seemed to do the trick.
Since the usual methods weren’t working, I tried a full reinstall of Visual Studio. That didn’t help. I then tried a System Restore. That made everything far worse, with my project showing about 500 error messages!
I then undid the System Restore, completely deleted all traces of Visual Studio from my computer, reinstalled everything, then tried VS2019 preview edition, tried 2017 edition again, uninstalled and reinstalled NetCore 2.0, 2.1, 2.2… all just to get around the minefield of error messages I’d created for myself.
In the end I just needed to do a full NuGet clear and restore then run dotnet restore --force
in the NPM console, after which all those error messages were gone. As well as this, the original IIS Administrator error was gone too, presumably fixed via the original reinstall of Visual Studio.
Lost a whole day to this quagmire.
Stuart AitkenStuart Aitken
0
Solved it by going through a day of hell, and to be honest the ‘solution’ was very brute force…
TL;DR: Fully deleting and reinstalling Visual Studio seemed to do the trick.
Since the usual methods weren’t working, I tried a full reinstall of Visual Studio. That didn’t help. I then tried a System Restore. That made everything far worse, with my project showing about 500 error messages!
I then undid the System Restore, completely deleted all traces of Visual Studio from my computer, reinstalled everything, then tried VS2019 preview edition, tried 2017 edition again, uninstalled and reinstalled NetCore 2.0, 2.1, 2.2… all just to get around the minefield of error messages I’d created for myself.
In the end I just needed to do a full NuGet clear and restore then run dotnet restore --force
in the NPM console, after which all those error messages were gone. As well as this, the original IIS Administrator error was gone too, presumably fixed via the original reinstall of Visual Studio.
Lost a whole day to this quagmire.
Stuart AitkenStuart Aitken
Solved it by going through a day of hell, and to be honest the ‘solution’ was very brute force…
TL;DR: Fully deleting and reinstalling Visual Studio seemed to do the trick.
Since the usual methods weren’t working, I tried a full reinstall of Visual Studio. That didn’t help. I then tried a System Restore. That made everything far worse, with my project showing about 500 error messages!
I then undid the System Restore, completely deleted all traces of Visual Studio from my computer, reinstalled everything, then tried VS2019 preview edition, tried 2017 edition again, uninstalled and reinstalled NetCore 2.0, 2.1, 2.2… all just to get around the minefield of error messages I’d created for myself.
In the end I just needed to do a full NuGet clear and restore then run dotnet restore --force
in the NPM console, after which all those error messages were gone. As well as this, the original IIS Administrator error was gone too, presumably fixed via the original reinstall of Visual Studio.
Lost a whole day to this quagmire.
Stuart AitkenStuart Aitken
Stuart AitkenStuart Aitken
Stuart AitkenStuart Aitken
Stuart AitkenStuart Aitken
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave(‘#login-link’);
);
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin(‘.new-post-login’, ‘https%3a%2f%2fstackoverflow.com%2fquestions%2f55313167%2fopening-and-creating-websites-on-iis-requires-running-visual-studio-under-an-ad%23new-answer’, ‘question_page’);
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave(‘#login-link’);
);
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave(‘#login-link’);
);
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave(‘#login-link’);
);
Sign up using Email and Password
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Hello,
Trying with admin account didn’t work.
Trying on different machine worked but still need to make it work on my main development machine.
I tried updating the .Net Framework on my machine to .NET Framework 4.6.2 and then to .NET Framework 4.7
And also added some attributes to catch the exception details.
At first I got this message :
Managed Debugging Assistant ‘FatalExecutionEngineError’ : ‘The runtime has encountered a fatal error. The address of the error was at 0x70c5f13b, on thread 0x2338. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.’
Now I am getting this message (copied from Visual Studio debugger)
e.Message
One or more errors occurred.
e.StackTrace
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelEngine.Start(Int32 count)
at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.Start[TContext](IHttpApplication`1 application)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Start()
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host, CancellationToken token, String shutdownMessage)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
at cmpcore.Web.Startup.Program.Main(String[] args)
e.InnerException.Message
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
e.InnerException.StackTrace
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.NativeMethods.uv_loop_init(UvLoopHandle handle)
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.loop_init(UvLoopHandle handle)
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvLoopHandle.Init(Libuv uv)
at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelThread.ThreadStart(Object parameter)
e.InnerException.Source «Microsoft.AspNetCore.Server.Kestrel»
e.InnerException.Source.TargetSite
{Int32 uv_loop_init(Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvLoopHandle)}
Please advise,
I still not able to use your product since more the a month of trying every day .., it’s becoming a bit urgent for me to getting work,
Thank you for your assistance
I am trying to load existing c# web applications and getting below errors while loading any web project:
Creation of the virtual directory http://localhost:/ failed with the
error: You do not have permission to access the IIS configuration
file. Opening and creating web sites on IIS requires running Visual
Studio under an Administrator account.. You will need to manually
create this virtual directory in IIS before you can open this
project.The following error occurred when trying to configure IIS Express for
project xxx.WebApi. You do not have permission to access the IIS
configuration file. Opening and creating web sites on IIS requires
running Visual Studio under an Administrator account.
I tried following, but in vain:
- Running VS 2017 pro as an administrator.
- I ensured that I have access to %systemroot%System32inetsrv and C:WindowsSystem32inetsrvConfig folders.
- I have installed all IIS compatibility windows features through control panel.
- Restarted IIS manager.
- Created virtual directories.
- Changed registry path of HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerShell FoldersPersonal from u: to C:UsersMyUserDocuments.
- Uninstalled IIS Express 10.0 from control panel and reinstalled it through VS2017 installer by clicking – Individual components – cloud, database server – IIS Express.
- Repaired VS 2017.
- Got admin access on machine.
- Created new empty web project but getting same error while new console app runs without errors.
- Restarted machine after every installation related change.
All the solutions tried are mentioned on stackoverflow but are not working for me. Is there something trivial that I am missing? Please guide me to crack these IIS errors.
asked May 21, 2019 at 7:32
I was able to solve this issue doing the following:
1- Go to C:WindowsSystem32inetsrv
and double click on directory config
and accept the warning message.
2- Go to C:WindowsSystem32inetsrvconfig
directory and double click on directory Export
and accept the warning message.
Then you will be able to run the app in your local IIS without being an administrator. You can follow the path in the given Image.
answered Jun 6, 2020 at 3:07
jordenyspjordenysp
2,56421 silver badges17 bronze badges
6
This solved the problem for me with Visual Studio 2017, .Net Core 2.2 and IIS Express 10.
You need to ensure devenv.exe has sufficient permissions. You can find it at:
C:Program Files OR Program Files (x86)Microsoft Visual Studio nn.nCommon7IDE
Right click on the exe, select Properties, Security. I gave Administrators full control as I’m running VS under admin.
answered May 8, 2020 at 12:07
EddieEddie
4014 silver badges6 bronze badges
1
My Simple solution was to right click on Visual Studio and click Run as Administrator. But a solution above tells you how to have Visual Studio always run without having to run as an administrator.
answered Jun 19, 2020 at 15:36
Dwain BDwain B
1671 silver badge6 bronze badges
All these solutions could not work for me. The issue was, I have accidently uninstall IIS from control panel even it was install and showing me. but was removed from control panel. I reinstall IIS latest version and able to fixed the problem. This might help for others.
This link help me
VS2017 RC — The following error occurred when trying to configure IIS Express
answered Jan 26, 2021 at 5:01
1
The issue for me was caused when I modified my project to override application root URL. After a push/merge and new branch my project would not load any longer. reverted the changes and all is well again.
answered Jul 20, 2022 at 13:26
Open an elevated command prompt and enter the following command to substitute a drive path for U drive.
c:windows:system32> Subst u: C:UsersMyUserDocuments
I had replaced ‘U:’ path in registry with ‘C:UsersMyUserDocuments’ previously. I think that was not sufficient. Some references of u: might have been hindering IIS.
The total substitute command must have replaced all references and the IIS config error got resolved. Hopefully, now I’ll be able to load my web apps.
answered May 21, 2019 at 12:01
P DeshpandeP Deshpande
4271 gold badge4 silver badges5 bronze badges
I had the same issue, but instead of the workarounds (such as first double-clicking certain directories each time or running the security risk of always having to always run my VS as administrator), was able to permanently resolve the issue by deleting the «ProjectName.csproj.user» file and that fixed it. I guess there was some incompatible setting in the user file that VS couldn’t deal with.
answered Mar 17, 2021 at 16:34
Robert NRobert N
1,1462 gold badges14 silver badges31 bronze badges
For older versions, change the option from IIS to your solution name, before clicking on the green play like run button, to build and run the application.
answered Dec 1, 2021 at 8:50
We resolved this by removing the project and adding it back.
answered Jan 6, 2022 at 23:19
TuanTuan
5,3431 gold badge21 silver badges17 bronze badges
If you’re used to run your Visual Studio via shortcut with ‘Run as administrator’ checkbox marked, double check it is indeed still selected. For some reason mine had unchecked itself resulting in inability to load an IIS project. I was 100% sure my VS had these administrative privileges as usual, which made me try all the Internet proposed solutions except for the most obvious one.
answered Mar 1, 2022 at 20:41
TarecTarec
3,2384 gold badges29 silver badges45 bronze badges
Restarting Visual Studio worked for me.
answered Nov 4, 2022 at 20:13
NightShovelNightShovel
2,9521 gold badge29 silver badges35 bronze badges
kollchaitanya
@kollchaitanya
I am getting the error as
Microsoft Visual Studio
The following error occurred when trying to configure IIS Express for project SelfServe-Core. Filename: ?
C:UserschkollaDocumentsVisual Studio 2017ProjectsManagementSelfServe-Core.vsconfigapplicationhost.config
Error: Cannot write configuration file
Do anyone has faced this issue
anyone still around, guess you are busy working out the bugz
up to anything interesting?
I have been in a cave trying to put together some tutorials
I suck at making videos….
I haven’t tried making videos
but I made docker work inside a VM,
I write long README .md files
cause I am using a clean VM for filing
is wcf coming to .net core?
makes my life a LOT harder
is the asp.net core sockets a wcf successor?
I wanted a nice modern replacement, not a copy
now there is ZERO incentive to remove WCF
in a lot of projects … but meh
I have been playing with gitpitch to make my tutorial
after your tweet @davidfowl
how do you know wcf is coming do .net core?
the client part is done accept for net.tcp
but that is being worked on
to be fair it will help me out in the short term, I have a number of services that can’t be moved or created because they need data out of WCF only services
is there a planning for the server part?
I haven’t found one either
this week was Red Hat Summit
Scott Hunter was at Summit
I have issues of my own (releases next week) gonna be busy
I don’t think there is a recording available yet
well, techniaclly I do a few rreleases a week but next week is some big features
I’m going to bed, good luck with your releases!