Code Monkey home page Code Monkey logo

Comments (21)

jimmyca15 avatar jimmyca15 commented on May 19, 2024

This appears to be a continuation of #1. Did you run the Configure-DevEnvironment.ps1 script mentioned in the readme?

from iis.administration.

MaherJendoubi avatar MaherJendoubi commented on May 19, 2024

@jimmyca15 no but I get this message
image

from iis.administration.

jimmyca15 avatar jimmyca15 commented on May 19, 2024

Oh thanks for finding that. The issue is that it is trying to invoke a script that had its name changed from constants.ps1 to globals.ps1. I will make the fix.

from iis.administration.

jimmyca15 avatar jimmyca15 commented on May 19, 2024

The issue with the development setup script was fixed in the latest commit. You should be able to run it and then run the api from visual studio.

from iis.administration.

MaherJendoubi avatar MaherJendoubi commented on May 19, 2024

image

from iis.administration.

jimmyca15 avatar jimmyca15 commented on May 19, 2024

Looks good. You should be a member of the IIS Administrators group now and the error you were getting from launching from VS should be gone.

from iis.administration.

MaherJendoubi avatar MaherJendoubi commented on May 19, 2024

Jimmy I still have the same error

from iis.administration.

MaherJendoubi avatar MaherJendoubi commented on May 19, 2024

image

from iis.administration.

jimmyca15 avatar jimmyca15 commented on May 19, 2024

Can you confirm that you are in the IIS Administrators group and try running without debugging? If that is true then this could be an issue in the Visual Studio tooling that is launching the process.

from iis.administration.

MaherJendoubi avatar MaherJendoubi commented on May 19, 2024

I am in the IIS Administrators group.

from iis.administration.

MaherJendoubi avatar MaherJendoubi commented on May 19, 2024

image

from iis.administration.

jimmyca15 avatar jimmyca15 commented on May 19, 2024

The script should have fixed that.
In "<SolutionRoot>.vs\config\applicationHost.config" change

       <section name="anonymousAuthentication" overrideModeDefault="Deny" />
       <section name="windowsAuthentication" overrideModeDefault="Deny" />

to

      <section name="anonymousAuthentication" overrideModeDefault="Allow" />
      <section name="windowsAuthentication" overrideModeDefault="Allow" />

This should be done automatically in a future version of the VS tooling.

from iis.administration.

jimmyca15 avatar jimmyca15 commented on May 19, 2024

I will try to reproduce your issue. The error should be gone if you remove the windows authentication requirements from the web.config for the Microsoft.IIS.Administration project.

from iis.administration.

MaherJendoubi avatar MaherJendoubi commented on May 19, 2024

Let me give you more context:

  1. I forked your project and I updated to 1.0.1 as mentioned in my PR #10

  2. even ".vs\config\applicationHost.config" change doesn't fix the problem.

  3. I suspect that the main problem is due to the tooling 1.0.1 aspnet/Tooling#779

from iis.administration.

jimmyca15 avatar jimmyca15 commented on May 19, 2024

I see. If you want to run the application you can remove the Windows Authentication requirements from the web.config then the tooling should no longer have an error connecting to the dotnet process. I will still investigate this to make sure there isn't another problem.

from iis.administration.

MaherJendoubi avatar MaherJendoubi commented on May 19, 2024

image

from iis.administration.

jimmyca15 avatar jimmyca15 commented on May 19, 2024

I just cloned the project and ran it on a separate machine. I was originally getting the same error you were

image

then I ran the Configure-DevEnvironment.ps1 script. After that I got this error, probably because the group settings the script just altered had not propagated through to VS.

image

I restarted visual studio. After that the error went away and I was able to debug.

from iis.administration.

MaherJendoubi avatar MaherJendoubi commented on May 19, 2024

I did the same steps you did but I still having this error :
image

from iis.administration.

MaherJendoubi avatar MaherJendoubi commented on May 19, 2024

Jimmy there is something weird on my Visual Studio, I can't start debugging any asp.net core app :(

from iis.administration.

MaherJendoubi avatar MaherJendoubi commented on May 19, 2024

@jimmyca15 I have this issue now #11

from iis.administration.

jimmyca15 avatar jimmyca15 commented on May 19, 2024

Debugging for the application is working now so I'm going to close this issue.

from iis.administration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.