Where local IIS is saving login and Registering User from Asp.Net Core (2.0 & 2.2)Issue with serving some static files within ASP.NET Core MVCASP.NET Core 2.0 authentication middlewareCan authentication cookie be shared between two .Net Core 2.0 applications?asp.net core 2.0 IsInRole()Can't get my Asp.Net Core project to work published to folder on localhostFromUri in ASP.NET CORE 2.0ASP.NET core local IISChanging home page in ASP.Net Core 2.1 with Razor pagesforce innodb engine with Pomelo.EntityFrameworkCore.MySql 2.1.4Register New user manually ASP.NET CORE 2.2

Issue with Expansions of Nested Macros

When does Haskell complain about incorrect typing in functions?

3D Statue Park: Daggers and dashes

Do the books ever say oliphaunts aren’t elephants?

Are the named pipe created by `mknod` and the FIFO created by `mkfifo` equivalent?

Why is 'n' preferred over "n" for output streams?

Examples of simultaneous independent breakthroughs

How did Mysterio have these drones?

Learning Minor scales through 7 patterns (Guitar)

The Sword in the Stone

Did the meaning of "significant" change in the 20th century?

Does academia have a lazy work culture?

How should we understand λαμβάνω in John 5:34?

How do I stop my characters falling in love?

How to judge a Ph.D. applicant that arrives "out of thin air"

Japanese reading of an integer

Why did House of Representatives need to condemn Trumps Tweets?

What is the most common end of life issue for a car?

Defining a Function programmatically

Vertical tennis ball into fancy new enumerate

Is cardinality continuous?

Melee or Ranged attacks by Monsters, no distinction in modifiers?

Trapped in an ocean Temple in Minecraft?

Commercial jet accompanied by small plane near Seattle



Where local IIS is saving login and Registering User from Asp.Net Core (2.0 & 2.2)


Issue with serving some static files within ASP.NET Core MVCASP.NET Core 2.0 authentication middlewareCan authentication cookie be shared between two .Net Core 2.0 applications?asp.net core 2.0 IsInRole()Can't get my Asp.Net Core project to work published to folder on localhostFromUri in ASP.NET CORE 2.0ASP.NET core local IISChanging home page in ASP.Net Core 2.1 with Razor pagesforce innodb engine with Pomelo.EntityFrameworkCore.MySql 2.1.4Register New user manually ASP.NET CORE 2.2






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I create a new clean project, In VS.2017 everything run well, but when i publish into my local Windows 10 IIS



I can register or login user (but no show name or this options:)



  • HttpContext.User.Identity.Name not working in IIS


  • SignInManager.IsSignedIn(User) not working in IIS


I look into my Database and users created are not there, but if I tried try recreate them register option say they already exists.



All the code is by default except the connection
appsetting.jon




"ConnectionStrings":
"DefaultConnection": "Data Source=DataCenter;Initial Catalog=ContaOnPrueba;User Id=Pavel;Password=MyPassWord21;MultipleActiveResultSets=True;App=EntityFramework"
,
"Logging":
"LogLevel":
"Default": "Warning"

,
"AllowedHosts": "*"



And Startup.cs



public class Startup

public Startup(IConfiguration configuration)

Configuration = configuration;


public IConfiguration Configuration get;

// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)

services.Configure<CookiePolicyOptions>(options =>

// This lambda determines whether user consent for non-essential cookies is needed for a given request.
options.CheckConsentNeeded = context => true;
options.MinimumSameSitePolicy = SameSiteMode.None;
);

services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlServer(
Configuration.GetConnectionString("DefaultConnection")));
services.AddDefaultIdentity<IdentityUser>()
.AddDefaultUI(UIFramework.Bootstrap4)
.AddEntityFrameworkStores<ApplicationDbContext>();

services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);


// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)

if (env.IsDevelopment())

app.UseDeveloperExceptionPage();
app.UseDatabaseErrorPage();

else

app.UseExceptionHandler("/Home/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();


app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseCookiePolicy();

app.UseAuthentication();

app.UseMvc(routes =>

routes.MapRoute(
name: "default",
template: "controller=Home/action=Index/id?");
);











share|improve this question






























    0















    I create a new clean project, In VS.2017 everything run well, but when i publish into my local Windows 10 IIS



    I can register or login user (but no show name or this options:)



    • HttpContext.User.Identity.Name not working in IIS


    • SignInManager.IsSignedIn(User) not working in IIS


    I look into my Database and users created are not there, but if I tried try recreate them register option say they already exists.



    All the code is by default except the connection
    appsetting.jon




    "ConnectionStrings":
    "DefaultConnection": "Data Source=DataCenter;Initial Catalog=ContaOnPrueba;User Id=Pavel;Password=MyPassWord21;MultipleActiveResultSets=True;App=EntityFramework"
    ,
    "Logging":
    "LogLevel":
    "Default": "Warning"

    ,
    "AllowedHosts": "*"



    And Startup.cs



    public class Startup

    public Startup(IConfiguration configuration)

    Configuration = configuration;


    public IConfiguration Configuration get;

    // This method gets called by the runtime. Use this method to add services to the container.
    public void ConfigureServices(IServiceCollection services)

    services.Configure<CookiePolicyOptions>(options =>

    // This lambda determines whether user consent for non-essential cookies is needed for a given request.
    options.CheckConsentNeeded = context => true;
    options.MinimumSameSitePolicy = SameSiteMode.None;
    );

    services.AddDbContext<ApplicationDbContext>(options =>
    options.UseSqlServer(
    Configuration.GetConnectionString("DefaultConnection")));
    services.AddDefaultIdentity<IdentityUser>()
    .AddDefaultUI(UIFramework.Bootstrap4)
    .AddEntityFrameworkStores<ApplicationDbContext>();

    services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);


    // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
    public void Configure(IApplicationBuilder app, IHostingEnvironment env)

    if (env.IsDevelopment())

    app.UseDeveloperExceptionPage();
    app.UseDatabaseErrorPage();

    else

    app.UseExceptionHandler("/Home/Error");
    // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
    app.UseHsts();


    app.UseHttpsRedirection();
    app.UseStaticFiles();
    app.UseCookiePolicy();

    app.UseAuthentication();

    app.UseMvc(routes =>

    routes.MapRoute(
    name: "default",
    template: "controller=Home/action=Index/id?");
    );











    share|improve this question


























      0












      0








      0








      I create a new clean project, In VS.2017 everything run well, but when i publish into my local Windows 10 IIS



      I can register or login user (but no show name or this options:)



      • HttpContext.User.Identity.Name not working in IIS


      • SignInManager.IsSignedIn(User) not working in IIS


      I look into my Database and users created are not there, but if I tried try recreate them register option say they already exists.



      All the code is by default except the connection
      appsetting.jon




      "ConnectionStrings":
      "DefaultConnection": "Data Source=DataCenter;Initial Catalog=ContaOnPrueba;User Id=Pavel;Password=MyPassWord21;MultipleActiveResultSets=True;App=EntityFramework"
      ,
      "Logging":
      "LogLevel":
      "Default": "Warning"

      ,
      "AllowedHosts": "*"



      And Startup.cs



      public class Startup

      public Startup(IConfiguration configuration)

      Configuration = configuration;


      public IConfiguration Configuration get;

      // This method gets called by the runtime. Use this method to add services to the container.
      public void ConfigureServices(IServiceCollection services)

      services.Configure<CookiePolicyOptions>(options =>

      // This lambda determines whether user consent for non-essential cookies is needed for a given request.
      options.CheckConsentNeeded = context => true;
      options.MinimumSameSitePolicy = SameSiteMode.None;
      );

      services.AddDbContext<ApplicationDbContext>(options =>
      options.UseSqlServer(
      Configuration.GetConnectionString("DefaultConnection")));
      services.AddDefaultIdentity<IdentityUser>()
      .AddDefaultUI(UIFramework.Bootstrap4)
      .AddEntityFrameworkStores<ApplicationDbContext>();

      services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);


      // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
      public void Configure(IApplicationBuilder app, IHostingEnvironment env)

      if (env.IsDevelopment())

      app.UseDeveloperExceptionPage();
      app.UseDatabaseErrorPage();

      else

      app.UseExceptionHandler("/Home/Error");
      // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
      app.UseHsts();


      app.UseHttpsRedirection();
      app.UseStaticFiles();
      app.UseCookiePolicy();

      app.UseAuthentication();

      app.UseMvc(routes =>

      routes.MapRoute(
      name: "default",
      template: "controller=Home/action=Index/id?");
      );











      share|improve this question
















      I create a new clean project, In VS.2017 everything run well, but when i publish into my local Windows 10 IIS



      I can register or login user (but no show name or this options:)



      • HttpContext.User.Identity.Name not working in IIS


      • SignInManager.IsSignedIn(User) not working in IIS


      I look into my Database and users created are not there, but if I tried try recreate them register option say they already exists.



      All the code is by default except the connection
      appsetting.jon




      "ConnectionStrings":
      "DefaultConnection": "Data Source=DataCenter;Initial Catalog=ContaOnPrueba;User Id=Pavel;Password=MyPassWord21;MultipleActiveResultSets=True;App=EntityFramework"
      ,
      "Logging":
      "LogLevel":
      "Default": "Warning"

      ,
      "AllowedHosts": "*"



      And Startup.cs



      public class Startup

      public Startup(IConfiguration configuration)

      Configuration = configuration;


      public IConfiguration Configuration get;

      // This method gets called by the runtime. Use this method to add services to the container.
      public void ConfigureServices(IServiceCollection services)

      services.Configure<CookiePolicyOptions>(options =>

      // This lambda determines whether user consent for non-essential cookies is needed for a given request.
      options.CheckConsentNeeded = context => true;
      options.MinimumSameSitePolicy = SameSiteMode.None;
      );

      services.AddDbContext<ApplicationDbContext>(options =>
      options.UseSqlServer(
      Configuration.GetConnectionString("DefaultConnection")));
      services.AddDefaultIdentity<IdentityUser>()
      .AddDefaultUI(UIFramework.Bootstrap4)
      .AddEntityFrameworkStores<ApplicationDbContext>();

      services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);


      // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
      public void Configure(IApplicationBuilder app, IHostingEnvironment env)

      if (env.IsDevelopment())

      app.UseDeveloperExceptionPage();
      app.UseDatabaseErrorPage();

      else

      app.UseExceptionHandler("/Home/Error");
      // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
      app.UseHsts();


      app.UseHttpsRedirection();
      app.UseStaticFiles();
      app.UseCookiePolicy();

      app.UseAuthentication();

      app.UseMvc(routes =>

      routes.MapRoute(
      name: "default",
      template: "controller=Home/action=Index/id?");
      );








      iis asp.net-core asp.net-core-2.0






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 26 at 21:05







      Glenn Pavel

















      asked Mar 26 at 18:56









      Glenn PavelGlenn Pavel

      13 bronze badges




      13 bronze badges






















          1 Answer
          1






          active

          oldest

          votes


















          0














          According to your description, I guess you may not enable the windows auth and disable the anonymous auth in the IIS.



          I suggest you could open the IIS management console to check the authentication settubg.



          enter image description here



          Make sure you have enable the windows auth and disable the anonymous auth.



          enter image description here



          Result:



          enter image description here






          share|improve this answer






















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



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55364455%2fwhere-local-iis-is-saving-login-and-registering-user-from-asp-net-core-2-0-2%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            According to your description, I guess you may not enable the windows auth and disable the anonymous auth in the IIS.



            I suggest you could open the IIS management console to check the authentication settubg.



            enter image description here



            Make sure you have enable the windows auth and disable the anonymous auth.



            enter image description here



            Result:



            enter image description here






            share|improve this answer



























              0














              According to your description, I guess you may not enable the windows auth and disable the anonymous auth in the IIS.



              I suggest you could open the IIS management console to check the authentication settubg.



              enter image description here



              Make sure you have enable the windows auth and disable the anonymous auth.



              enter image description here



              Result:



              enter image description here






              share|improve this answer

























                0












                0








                0







                According to your description, I guess you may not enable the windows auth and disable the anonymous auth in the IIS.



                I suggest you could open the IIS management console to check the authentication settubg.



                enter image description here



                Make sure you have enable the windows auth and disable the anonymous auth.



                enter image description here



                Result:



                enter image description here






                share|improve this answer













                According to your description, I guess you may not enable the windows auth and disable the anonymous auth in the IIS.



                I suggest you could open the IIS management console to check the authentication settubg.



                enter image description here



                Make sure you have enable the windows auth and disable the anonymous auth.



                enter image description here



                Result:



                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 28 at 5:32









                Brando ZhangBrando Zhang

                7,7672 gold badges8 silver badges33 bronze badges




                7,7672 gold badges8 silver badges33 bronze badges


















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55364455%2fwhere-local-iis-is-saving-login-and-registering-user-from-asp-net-core-2-0-2%23new-answer', 'question_page');

                    );

                    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







                    Popular posts from this blog

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    위키백과:대문 둘러보기 메뉴기부 안내모바일판 대문크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0CebuanoDeutschEnglishEspañolFrançaisItaliano日本語NederlandsPolskiPortuguêsРусскийSvenskaTiếng ViệtWinaray中文العربيةCatalàفارسیSrpskiУкраїнськаБългарскиНохчийнČeštinaDanskEsperantoEuskaraSuomiעבריתMagyarՀայերենBahasa IndonesiaҚазақшаBaso MinangkabauBahasa MelayuBân-lâm-gúNorskRomânăSrpskohrvatskiSlovenčinaTürkçe

                    용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh