locked
IIS Express Error: Project is not running in VS Enterprise 2017 but in community edition works fine. RRS feed

  • 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

    test

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

    Saturday, December 1, 2018 11:50 AM

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 Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 6, 2018 11:22 PM

All replies

  • User475983607 posted

    Try running Visual Studio as an administrator.  

    https://stackoverflow.com/questions/9654833/how-to-run-visual-studio-as-administrator-by-default/41758824

    Saturday, December 1, 2018 1:40 PM
  • User-788056197 posted

    Running Visual Studio as an administrator is not solving my problem. 
    I try delete all bin, obj, .vs folder, start, restart computer, VS2017 ..., nothing helped.
    This error sometime just not occur. I can not find pattern to reproduce it.

    This start happening with VS 2017 15.9.3 

    Thursday, December 6, 2018 9:32 PM
  • 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 Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 6, 2018 11:22 PM