ASP NET Core in process hosting

Sdílet
Vložit
  • čas přidán 19. 06. 2024
  • In this video we will discuss
    1. In process hosting model in ASP.NET Core
    2. What is Kestrel server
    Text version of the video
    csharp-video-tutorials.blogsp...
    Healthy diet is very important for both body and mind. We want to inspire you to cook and eat healthy. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking.
    / @aarvikitchen5572
    Slides
    csharp-video-tutorials.blogsp...
    ASP.NET Core Text Articles & Slides
    csharp-video-tutorials.blogsp...
    ASP.NET Core Tutorial
    • ASP.NET core tutorial ...
    Angular, JavaScript, jQuery, Dot Net & SQL Playlists
    czcams.com/users/kudvenka...
  • Věda a technologie

Komentáře • 199

  • @MM-ts9jy
    @MM-ts9jy Před 4 lety +5

    You explain in such detail, and make all of these resources available for free. You're a hero!

  • @InshuMussu
    @InshuMussu Před 3 lety +2

    one of the best tutor in the world.

  • @musandlala7991
    @musandlala7991 Před 4 lety

    thanks to Venkat I am studying for my future job using this tutorial

  • @kazmirci1
    @kazmirci1 Před 5 lety

    Venkat is the King of .net.Thanks for .net core series.Pls upload quickly.Dont wanna wait :)

  • @raffaelrameh14
    @raffaelrameh14 Před 4 lety +2

    Very complete tutorial! Thanks for this work!

  • @salomonks-francais6752

    I am in till the end of the series. Very nice explanation. Many thanks.

  • @khosseny1625
    @khosseny1625 Před 5 lety

    Thanks Venkat for amazing content , Please I'm waiting the out of process hosting video .

  • @belkassem06
    @belkassem06 Před 5 lety

    Incredible Venkat!!!! Thanks again.

  • @dattatreyakulkarni857
    @dattatreyakulkarni857 Před 5 lety

    Hi Venkat it's really helpful for us ..thanks for these all videos

  • @LarryPeteet
    @LarryPeteet Před 3 lety

    October 2020, Great Job and thank you again!

  • @carlosinigo9225
    @carlosinigo9225 Před 4 lety

    Thank you for this tutorial series!

  • @DnyaneshWarade
    @DnyaneshWarade Před 4 lety +2

    I like the way you teach, thanks for putting so much efforts and record this course and make it available CZcams for free

  • @leonvanrijswijk8409
    @leonvanrijswijk8409 Před 5 lety +4

    I think your courses are very well structured and clear. I hope you will explain Razor Pages too, and not just MVC

  • @m.e858
    @m.e858 Před 5 lety

    Venkate I'm taking notes of all the things you say that you will explain them in the future video tutorials, we depend on you that you will deliver videos on them, on Angular you mentioned some future tutorials but seems you got busy and you didn't keep track, like the image upload in Angular, thanks lot for the good work, everyday I'm checking on your new videos

  • @udaybsvs8699
    @udaybsvs8699 Před 3 lety

    Thank you very much sir for providing good content.

  • @Auxillia
    @Auxillia Před 5 lety

    Nice videos, two thumbs up.

  • @vigneshupputuri5549
    @vigneshupputuri5549 Před 3 lety

    Maaaaaan........You deserve maaaany many more views.......thank you!!!!!!

  • @malarvizhi5913
    @malarvizhi5913 Před 4 lety

    Thankyou for the nice Tutorials

  • @vellalarshankar2665
    @vellalarshankar2665 Před 5 lety

    Thank you for the explanation.my question may wrong, have doubt if we use inprocess hosting method, will application run only iis in Windows???

  • @factworld4375
    @factworld4375 Před 5 lety +1

    Thank your sir.
    #LoveFromNepal

  • @salomonks9866
    @salomonks9866 Před 5 lety

    Thank you so much for teaching us

  • @BeLogicalAlways
    @BeLogicalAlways Před 2 měsíci

    I think you should explain the concept of In Process hosting model like where it is hosted, why it is introduced, what benefits it brings, how hosting is different from traditional .net framework etc.

  • @alihameed2457
    @alihameed2457 Před 5 lety +3

    Sir, kindly make videos on azure functions version 2 also. Kindly explain in those videos, how to perform blob storage, table storage, and queues storage in azure storage explorer using azure functions version 2 with visual studio 2017. It would be far better if you perform a complete CRUD operation in serverless micro services. You are such an excellent instructor. One of my best teachers.
    Thank you.

    • @studentfeedback
      @studentfeedback Před 5 lety +3

      Many people are waiting for Azure videos by Kudvenkat. Hope Kudvenkat sir realizes our expectation.

  • @tejaratahan949
    @tejaratahan949 Před 4 lety

    Great!!

  • @conaxliu9677
    @conaxliu9677 Před 4 lety +2

    What happens for "out of process" now is that when you execute "dotnet run", it builds your project (if you've made any changes) and then executes \bin\Debug
    etcoreapp3.1\EmployeeManagement.exe, therefore the process name is EmployeeManagement.
    To verify, follow these steps:
    1. Execute "dotnet run" as instructed by venkat.
    2. Open your Windows Task Manager, you will find EmployeeManagement.exe in there.
    3. Right-click EmployeeManagement.exe and select "Open File Location". You will be brought to the foler where EmployeeManagement.exe sits in.
    4. Ctrl-C out of dotnet run, and then manually execute EmployeeManagement.exe instead. Your will see the same messages shown in the console as when you executed "dotnet run", and then you can browse to localhost:5000 again.

  • @sheikhallauddin-punjabasse4876

    thanks for uploading this video but please upload next part

  • @impulsivefalcon
    @impulsivefalcon Před 3 lety

    great work

  • @ajaychoudhary3575
    @ajaychoudhary3575 Před 4 lety

    Sir very easy way can explain
    Thank for providing such a very informative ASP.net core video
    Really sir for who can't afford purchase the video tutorials you can provide all videos free
    I never forget your contribution to build my career.

  • @stanleyakachukwu5386
    @stanleyakachukwu5386 Před 5 lety

    Nice!

  • @johnsonmushonga8277
    @johnsonmushonga8277 Před 5 lety

    A big thank you

  • @belmiris1371
    @belmiris1371 Před 5 lety

    Thank you!

  • @jondyason336
    @jondyason336 Před 2 lety

    Superb teacher!

  • @devanjanbhattacharya9251

    Hi Venkat,
    I'm very eager to understand the CreateDefaultBuilder() method which you said you'll explain after explaining the Main method in Part 6 of this series. But I do not see CreateDefaultBuilder() teachings in subsequesnt videos. Please help Sir.

  • @mohamadalibrahim2995
    @mohamadalibrahim2995 Před 5 lety

    A big Like

  • @michigansafetyproducts1446

    thank you!

  • @farmanguliyev
    @farmanguliyev Před 5 lety

    The one true king

  • @kulashaker30
    @kulashaker30 Před 4 lety

    I noticed always in this series that it's like reading online documentation. It would be better if these videos are more on on-hand examples rather than explanation, we can read that online and we could understand that as we go along.. From the previous videos you mentioned many times 'I'll discuss in next videos' but in the next video I noticed you say that again so those things are getting stacked on us.

  • @DecentProgrammer
    @DecentProgrammer Před 3 lety

    informative video

  • @Akshay-Raut
    @Akshay-Raut Před rokem +1

    8:51 You said InProcess hosting model uses IIS or IIS Express but at this timestamp, you ran the app using CLI and we see it's using dotnet kestrel server, even though we had explicitly mentioned InProcess hosting model. Does that mean dotnet CLI uses Kestrel irrespective of the specified hosting model?

  • @naveedkhan742
    @naveedkhan742 Před 4 lety +1

    Sir please start a video series on Xamarin mobile development and on WPF.
    Thanks.

  • @MicroftHunter
    @MicroftHunter Před 4 lety +4

    I tried in VS2019 community edition to run the project in CLI, but in localhost:5000 displays the name of the project "EmployeeManagement" not the "dotnet". Why?

  • @ShabbirIsmailBabji
    @ShabbirIsmailBabji Před 5 lety

    Thank You

  • @conaxliu9677
    @conaxliu9677 Před 4 lety

    A question though, if In Process hosting uses IIS, does that mean the cross platform capability is only available for Out of Process hosting?

  • @NehaGupta-tk3eo
    @NehaGupta-tk3eo Před 5 lety

    Thank you

  • @ibknl1986
    @ibknl1986 Před 3 lety

    You are doing a great job. May Allah (God) guide and bless you.

  • @josefbas501
    @josefbas501 Před 4 lety

    Thanks for sharing this valuable information. Maybe you can create tutorial about how to upload it to hosting server, like Asphostportal, Azure, or other hosting provider that support .net core.

  • @ravikumar4
    @ravikumar4 Před 5 lety

    HI Venkat when i try to open the blog it says Blog has been removed please look into it.

  • @vinothrajendran858
    @vinothrajendran858 Před 3 lety

    It means, if you run in CLI , by default it will use kestrel web server even though the application is in-process hosting?

  • @ZenOfKursat
    @ZenOfKursat Před 4 lety

    So broi how can we publish an asp.net core website ? should we buy azure ? amazon ? why cannot publish as a casual asp.net website ? should we open our own hosting firm ? how should we publish to an using asp.net hosting service? not possible should we buy vps ? btw you are a gr8 teacher since 2010s

  • @AmarPawar0122
    @AmarPawar0122 Před 4 lety +1

    @kudvenkat It seems to be something strange in VS2019. When we use OutOfProcess then "System.Diagnostics.Process.GetCurrentProcess().ProcessName" is giving name of the project instead of "dotnet".

    • @conaxliu9677
      @conaxliu9677 Před 4 lety

      I'm glad I'm not the only one seeing this behaviour!

    • @anvayjoshi6283
      @anvayjoshi6283 Před 2 lety +1

      @Aman Pawar Use False property inside . Then it will give dotnet as a process name

  • @lifeinloop
    @lifeinloop Před 4 lety +1

    Hi. My aspnet core webapp is printing iisexpress without putting that line InProcess
    And when i run it with dotnet run the output is the name of the application, wich in my case is WebApplication2

  • @souravbasak1985
    @souravbasak1985 Před 4 lety +1

    The IIS web server is an old web server which has been in use for over 15 years by .Net community but the issue that came is that some applications which were built in that period were not compatible with recent technology and web services could not be used on them. Another issue was that as internet servers advanced the IIS web servers were not cope up to the speed of the internet servers making it slow, so a need for a faster web server became necessary. To do this, the .Net community used its set of previous information to create the most simple and quickest server ever possible and thus kestrel web server was born.
    Anyways, read the below. This might help.
    www.namasteui.com/asp-net-core-web-servers-iis-vs-kestrel-server-comparison-and-why-both-are-important/
    --
    Regards,
    Sourav Basak
    Namaste UI

    • @PramodRaiK
      @PramodRaiK Před 4 lety

      Great explanation for "Who is this new character Kestrel now?!!" Thanks a lot, it helped to know about what and why!

  • @vaibhavkhairnar7313
    @vaibhavkhairnar7313 Před 2 měsíci

    Is this in process and out of process related to load balancing in IIS ??

  • @abouishakA
    @abouishakA Před 2 lety

    thanks

  • @XashA12Musk
    @XashA12Musk Před 3 lety

    indian guy on youtube 😍😍

  • @deepikamehta5826
    @deepikamehta5826 Před 2 lety

    Hello Sir . I have my dotnet core 3.1 aapplication which previously deployed on iis. Now we have a requirement to host it using Kestral as a web server that is what you shown in above video , inprocess hosting. I have made the changes accordingly in my application and when i try to access the api after running from command prompt, as the project contains web api also then the error is coming which states that "An unhandled exception occurred while processing the request.
    InvalidOperationException: No authenticationScheme was specified, and there was no DefaultChallengeScheme found. The default schemes can be set using either AddAuthentication(string defaultScheme) or AddAuthentication(Action configureOptions)."... Please help me sir

  • @rubeushagrid4131
    @rubeushagrid4131 Před 2 lety

    .NET Core is the future.

  • @kibriamanzoor2338
    @kibriamanzoor2338 Před 5 lety

    First of all, I really like your voice.
    Secondly I could not understand one point. As kestrel server is using in out of process model. As in this video we have have set In process as process model in .csproj. so when you run the application by cli, why it is running in kestrel server. I think it should be iis server because we have set In process.

    • @rational_thinking_india
      @rational_thinking_india Před 4 lety

      in Next lecture Kudvenkat explained that when we run asp.net core application from dotnet core CLI, in built kestrel is the only web server that will be used, the hosting setting in proj file will be ignored irrespective of the value InProcess or OutOfProcess

  • @roronoa_d_law1075
    @roronoa_d_law1075 Před 4 lety

    What is the difference if I start the app by clicking the "IIS Express" button or by clicking debug and then start without debugging ?

  • @amansinha6495
    @amansinha6495 Před 4 lety

    Hi venkat, When i tried to execute the above method in visual studio 2017. I am getting the Dot net as an output not an IIS express. Could you please tell me why?

    • @gaurav5964
      @gaurav5964 Před 2 lety

      Same problem
      Same when I use Aspnetcorehostingmodel as Inprocess
      And in startup.cs I use system.diagnostics code
      But the output is dotnet....
      Why
      And if I change InProcess to OutofProcess the output is the remain same....dotnet....
      Please tell me y.....

  • @shreetammishra5900
    @shreetammishra5900 Před 2 lety

    When project is being run through cli, it uses out of process hosting, right?? But isn’t it still mentioned as inprocess in csproj file !!

  • @priyankajaiswal1829
    @priyankajaiswal1829 Před 4 lety +1

    Hello Venkat SIr, I gave a system configuration inprocess and while running I can see display output as 'dotnet'. What all changes i need to do to see the iisexpress where asp.net core has been hosted.

    • @samihussain6217
      @samihussain6217 Před 4 lety

      I have the same issue. So I just updated my visual studio then when running my VS with issexpress it shows process name "iisexpress" on bowser.

    • @subhasishdey9072
      @subhasishdey9072 Před 4 lety

      For beginners ,I would recommend that do not change configurations first.
      Follow these steps:
      1. install matched version of .net SDK,hosting bundle and .net runtime with .net core
      2. Try to use .net sdk 2.2 or 2.2 plus
      I have followed these steps and resolve my problem.Hope it will help you guys.
      Thanks.

    • @subhasishdey9072
      @subhasishdey9072 Před 4 lety

      Note : You are getting "dotnet" as output instead of "IIS Express" as hosting server that means your application is hosted as "OutOfProcess" hosting and it is using Kestrel server which is Asp.Net default hosting module.To clear this concept watch this and the next video in the playlist of OutOfProcess hosting.

  • @dengelkemier
    @dengelkemier Před 4 lety

    Following along in 2020 with VS 2017. I get an error: warning MSB3026: Could not copy "obj\Debug
    etcoreapp2.2\EmployeeManagement.dll" to "bin\Debug
    etcoreapp2.2\EmployeeManagement.dll". If I shut down Visual Studio then Kestrel runs fine, but can only have command line version or Visual Studio version running at a time not both.

  • @nolimitsREAL
    @nolimitsREAL Před 4 lety

    In 3.0 the HostingModel is by default InProcess. In 2.2 I liked it, because it was there explicitly but now I cannot find where it is, or I have to write it myself.

  • @ihsanullah4058
    @ihsanullah4058 Před 5 lety

    Its awsome. Sir record a video on linux server/ system locally

  • @yudhvirsingh420
    @yudhvirsingh420 Před 4 lety

    Hi Kudvenkat,
    I have one question , Can anybody please help me, What is the thing that makes .net core cross platform that does not have to the .net previous version.
    Please suggest your answers anybody.
    Thanks.

  • @roronoa_d_law1075
    @roronoa_d_law1075 Před 4 lety +1

    I don't have the AspNetCoreHostingModel tag

  • @anjananair3818
    @anjananair3818 Před 5 lety +1

    Hello Sir, When I tried to execute the program using both IISExpress (with InProcess hosting model in .csproj) and CLI, I'm getting dotnet as the output. Can you please clarify why it is displayed so? Thanks

    • @athiraprasad7375
      @athiraprasad7375 Před 5 lety

      Same thing , if you have an answer please do let me know

    • @gaurav5964
      @gaurav5964 Před 2 lety

      Same when I use Aspnetcorehostingmodel as Inprocess
      And in startup.cs I use system.diagnostics code
      But the output is dotnet....
      Why
      And if I change InProcess to OutofProcess the output is the remain same....dotnet....
      Please tell me y.....

  • @ajaypokle476
    @ajaypokle476 Před 4 lety

    Hello Sir this tutorial helps a lot me, but when creating a project and follow your steps then HTTPS page shown a projec Name instead of showing dotnet extension.

  • @rabeelkamboh1291
    @rabeelkamboh1291 Před 4 lety +8

    but when I run the application the process name is "dotnet"? and in your case is "iis express".

  • @bolbittu
    @bolbittu Před 5 lety

    And have a great day.

  • @yehtet8154
    @yehtet8154 Před 3 lety

    Microsoft.Aspnetcore.app is not compatible with .netcore 3.1.Which version should I download??

  • @purushothamgowthu2836
    @purushothamgowthu2836 Před 2 lety

    Can we learn asp dot net core directly without learning mvc

  • @gaurav5964
    @gaurav5964 Před 2 lety

    Same when I use Aspnetcorehostingmodel as Inprocess
    And in startup.cs I use system.diagnostics code
    But the output is dotnet....
    Why
    And if I change InProcess to OutofProcess the output is the remain same....dotnet....
    Please tell me y.....

  • @Random24521
    @Random24521 Před 3 lety

    i am on .Netcore 3.1 and I am only getting Dotnet as Output. Is it because of version Upgrade and packages are not included by default? Can someone please response ? And yes i am not running through Command Line but through Mac Visual Studio.

    • @reneschindhelm4482
      @reneschindhelm4482 Před 3 lety

      This hosting model is currently only applicable to IIS, which is the Web Server running on Windows. All other platforms have to use the OutOfProcess hosting model. Therefore, Visual Studio for Mac will run the app with the OutOfProcess hosting model, which uses the Kestrel web server (running under dotnet.exe).

  • @SIDHARTHPJBCG
    @SIDHARTHPJBCG Před 2 lety

    My kestrel output is EmployeeManagement and not dotnet..... is it because i am using .net 5?

  • @vinodhinimariappan5676

    i am getting dotnet instead of iisexpress. but in aspnetcoremodel, it sets as inprocess only

  • @dipanwitamitra3029
    @dipanwitamitra3029 Před 4 lety

    When I run the code through command prompt of VS. It is showing 'EmployeeManagement'. It is not showing 'dotnet'. I am using asp.net core 3.1. Please help me.

  • @kunalpuri6035
    @kunalpuri6035 Před 3 lety

    This is ambiguous. If in Out Of process hosting there are two web servers (Internal and External) and you said that Kestrel can be used alone as edge server to take http calls then that is considered to In Process or Out process?

    • @reneschindhelm4482
      @reneschindhelm4482 Před 3 lety +1

      If you're hosting ASP.NET Core apps on Windows, then your choice is one of running your app in IIS*, or Kestrel (HTTP.SYS would be an alternative to Kestrel, but it's only available on Windows, so I don't care).
      When you're going with IIS, then both InProcess and OutOfProcess hosting models are applicable:
      - If you're opting for InProcess, then your app is running inside of an IIS worker process (w3wp, iisexpress). This has many benefits, as IIS is a fully-fledged web server/platform shipping with process monitoring (automatic restart on crash, recycling etc.), logging, authentication, etc. and you do not need to call another webserver in order to fulfill any requests, which may increase requests/s.
      - If you're opting for OutOfProcess, then your app will use the Kestrel web server, and run in a separate process (not inside w3wp or iisexpress). IIS, which is the public facing webserver, has to forward any incoming requests to Kestrel in order to fulfill them. Next to no process monitoring, logging or any other benefits IIS could possibly deliver, you'll notice that the requests/s are less compared to when running the app in the InProcess hosting model due to the forwarding/proxying.
      Were you to skip the use of IIS on Windows, you could instead host your app using Kestrel. Kestrel now becomes the public facing web server. As the InProcess hosting model is (as of this date) only applicable when using IIS, you'd default to using the OutOfProcess hosting model.
      If you're hosting ASP.NET Core apps on any other platform, then only the OutOfProcess hosting model is applicable (and should be honored by your runtime). So even if you set the hosting model to InProcess, you'll end up with the OutOfProcess hosting model, where your app is hosted in Kestrel. You'd most likely use Apache or NGINX as the public facing web server though, and have them relaying to Kestrel (kind of like the IIS + OutOfProcess model above).
      * Apache/NGINX can also be used as public-facing web servers, acting as a reverse proxy to your app. See docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/when-to-use-a-reverse-proxy

  • @dhanasekarmurugesan5539

    When I run the project using dotnet run command, I am getting "EmployeeManagement" as the process name rather then "dotnet" as the process name. Can anyone tell me why?
    await context.Response.WriteAsync(System.Diagnostics.Process.GetCurrentProcess().ProcessName);

  • @user-pz5io2nx3k
    @user-pz5io2nx3k Před 4 lety +1

    the result in browser is "dotnet" don't show iisepress update visual or wrong?

  • @harshsugandhi07
    @harshsugandhi07 Před 5 měsíci

    Hello, I have installed .NET Core 3.1 SDK and created a project, when trying to run From CLI I am getting this Error, " The target framework 'netcoreapp3.1' is out of support and will not receive security updates in the future ". Please Help.

  • @roushangiri4722
    @roushangiri4722 Před 3 lety

    God cleanse my mind. I read something which I wasn't supposed to read 4:03

  • @malarvizhi5913
    @malarvizhi5913 Před 4 lety

    why i am getting donet as my process name for both InProcess and OutOfProcess

  • @kaling_108
    @kaling_108 Před 3 lety

    Pls help sir.. when am debugging the application in IIS express It is showing error that "could not able to connect the web server "iis express"". It is running fine when I am using VS 2019 asp.net core 2.1. but the error is coming while I am using core 3.1.
    I have tried all method from Google by deleting vs folder, running program as Admin , also I have changed the port number. But still the error is coming. Please help what to do...

  • @ickimadrasi8965
    @ickimadrasi8965 Před 5 lety

    Will you make a React tutorial anytime in future

  • @bharathyadav605
    @bharathyadav605 Před rokem

    Hi Sir, dotnet run command does not working for me, it gives my project name instead of process name please suggest me thanks

  • @sinchanar440
    @sinchanar440 Před 5 lety

    Sir, I have followed your creating new project vedios I have created the same but in project file there is no Inprocess not added in my project

    • @prmkishor
      @prmkishor Před 4 lety

      @sinchana, in next video hopefuly you will get your answer. if there is no setting in csprof file, it means OutOfProcess which is by default.

    • @Tommastein
      @Tommastein Před 4 lety

      You might have already done this by now but if you haven't then please add the above line in the PropertyGroup of csproj file.

    • @ryancabanas
      @ryancabanas Před 4 lety

      This Microsoft document says the opposite. It says, "ASP.NET Core apps default to the in-process hosting model."
      docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-3.1#in-process-hosting-model

  • @hetalchavan9446
    @hetalchavan9446 Před 3 lety

    When I am running my project from CLI instead of process name "dotnet" I am getting my project's name "EmployeeManagement". Why is this happening?

    • @abj136
      @abj136 Před 3 lety

      I get the same thing. Maybe the latest Kestrel prefers to present your application name instead of itself.

  • @nishantboro4728
    @nishantboro4728 Před 5 lety

    Should i watch asp.net videos before watching these videos?

  • @a_n_m3516
    @a_n_m3516 Před 4 lety +1

    Hi, I'm using vs 2019 with .net core 3.1. After running 'dotnet run' command on cli I get my project name as process name.
    Is this due to some changes in version 3.1 ?

    • @gopinathselvaraj478
      @gopinathselvaraj478 Před 4 lety

      I have the same issue, were you able to find what is the issue.

    • @a_n_m3516
      @a_n_m3516 Před 4 lety

      @@gopinathselvaraj478 not yet, have you? Will get back if I get the answer.

    • @gopinathselvaraj478
      @gopinathselvaraj478 Před 4 lety +1

      Looks like that's how it is in .net core 3.1, haven't been able to find any answer for this.

    • @EpinderSingh
      @EpinderSingh Před 4 lety

      Have you guys able to resolve the issue? I am having same issue.

    • @gopinathselvaraj478
      @gopinathselvaraj478 Před 4 lety

      @@EpinderSingh Read on a post saying that's how it is with .net core 3 and above. It is not a show stopper, happy learning 👍🏽

  • @rajuprasad82
    @rajuprasad82 Před 5 lety +1

    On running my code by adding System.Diagnostics.Process.GetCurrentProcess().ProcessName in startup.cs file, instead of IISExprees I got dotnet in the browser. Why is there difference in my case? Am I doing anything wrong?

    • @athiraprasad7375
      @athiraprasad7375 Před 5 lety

      If u have an answer do let me know

    • @raviverma4934
      @raviverma4934 Před 4 lety

      This is because in ASP.NET core the default hosting Process in OutOfProcess. In your case the ASPNetCoreHostingModel node might not be there and hence the default hosting model is coming as dotnet. Hope it helps.

  • @kumarshrey209
    @kumarshrey209 Před 3 lety

    23 April 2021

  • @pratikacharya9399
    @pratikacharya9399 Před 2 lety

    sir why i am not getting issexpress instead of hostname

  • @BikashGosai
    @BikashGosai Před 3 lety +3

    but when I run the application the process name is "EmployeeManagement"

    • @avijitroy5104
      @avijitroy5104 Před 3 lety

      Did u get your answer that why it shows "EmployeeManagement" instead of dotnet?

    • @BikashGosai
      @BikashGosai Před 3 lety

      @@avijitroy5104 no

    • @daophilac
      @daophilac Před 3 lety

      @@BikashGosai I believe some things have changed. When I was watching this tutorial at around February 2020, it would show dotnet. Now when I am re-watching it, it shows "EmployeeManagement" for some unknown reasons. I guess it's not a big deal though.

  • @DharmendraYadav-pp6ek
    @DharmendraYadav-pp6ek Před 5 lety +2

    Sir await context.Response.WriteAsync(System.Diagnostics.Process.GetCurrentProcess().ProcessName);
    show the process name for me as--
    dotnet
    any suggestion??

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  Před 5 lety

      Hi Dharmendra - The following video will answer your question. Please let me know if there is still a confusion on the process name. Hope this helps.
      czcams.com/video/u2S4TkkACVc/video.html

    • @ushakanthpeddinti98
      @ushakanthpeddinti98 Před 5 lety +1

      @@Csharp-video-tutorialsBlogspot Hi Venkat, Thanks for brief explanation. However i am still getting dotnet as host when i ran application through IIS Process & InProcess Hosting. Could you please let me know where it would have gone. Thanks in advance

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  Před 5 lety

      Hello Ushakanth - Did you watch the following video. This video should clarify the confusion around the displayed process name. Please let me know if it is still unclear.
      czcams.com/video/u2S4TkkACVc/video.html

    • @sonamagarwal4966
      @sonamagarwal4966 Před 5 lety +2

      @@Csharp-video-tutorialsBlogspot Hi Venkat , I am also getting dotnet as the output, where AspNetCoreHostingModel is InProcess and commandName is IISExpress.

    • @igorlevashov6378
      @igorlevashov6378 Před 5 lety

      Make sure you use 2.2 not 2.1

  • @eml9147
    @eml9147 Před 4 lety +1

    When you launch the page at 8:40 it displays 'dotnet'. But for me, it displays 'EmployeeManagement'. What have I done wrong?

    • @diwashshrestha4996
      @diwashshrestha4996 Před 4 lety

      i also got 'EmployeeManagement' as output.

    • @aadhithyasekar2703
      @aadhithyasekar2703 Před 4 lety

      Me too. Getting 'EmployeeManagement' as the display output.

    • @jakenguyen1150
      @jakenguyen1150 Před 4 lety

      Hello Venkat, in .net core 3 the name of the out of process hosting model changed to the name of the project, not 'dotnet', why? So if your project is called WebApplication1, then that's the name of the process.
      This is not my comment .

    • @conaxliu9677
      @conaxliu9677 Před 4 lety +1

      What happens now is that when you execute "dotnet run", it builds your project (if you've made any changes) and then executes \bin\Debug
      etcoreapp3.1\EmployeeManagement.exe, therefore the process name is EmployeeManagement.
      To verify, follow these steps:
      1. Execute "dotnet run" as instructed by venkat.
      2. Open your Windows Task Manager, you will find EmployeeManagement.exe in there.
      3. Right-click EmployeeManagement.exe and select "Open File Location". You will be brought to the foler where EmployeeManagement.exe sits in.
      4. Ctrl-C out of dotnet run, and then manually execute EmployeeManagement.exe instead. Your will see the same messages shown in the console as when you executed "dotnet run", and then you can browse to localhost:5000 again.

  • @srinivasbaipothu2469
    @srinivasbaipothu2469 Před 5 lety +1

    For InProcess hosting I am getting processname as "dotnet" instead of "iisexpress" while running the app from visual studio. Can anyone explain the reason?

    • @MrNuudleS
      @MrNuudleS Před 5 lety

      I have the same ProcessName as well. Did you ever find the answer to your question?

    • @MrNuudleS
      @MrNuudleS Před 5 lety

      nevermind, I found the answer below these comments

    • @srinivasbaipothu2469
      @srinivasbaipothu2469 Před 5 lety

      Nope not yet

    • @raviverma4934
      @raviverma4934 Před 4 lety

      ​@@srinivasbaipothu2469 This is because in ASP.NET core the default hosting Process in OutOfProcess. In your case the ASPNetCoreHostingModel node might not be there and hence the default hosting model is coming as dotnet. Hope it helps.

  • @alicoder9872
    @alicoder9872 Před 4 lety

    when I run the application by CLI , I see my project's name instead of 'dotnet' . Can you help me guys??

    • @lynnchen4048
      @lynnchen4048 Před 3 lety

      me too

    • @anantsaxena7037
      @anantsaxena7037 Před 3 lety

      Even I see EmployeeManagement??? my version of netcoreapp is 3.1 on visual studio 2019 running on a windows 10 machine

  • @mfaizan24
    @mfaizan24 Před 3 lety

    context.Response.WriteAsync not working on .Core3.1, after digging into details, I have to convert the string into byte array then pass it WriteAsync
    byte[] arr = Encoding.ASCII.GetBytes("this is test string");
    await context.Response.Body.WriteAsync(arr, 0, arr.Length);