how do I make an “http://www. “ call from a browser to a .net 8 core project residing on my web host?

iqworks Information Quality Works 316 Reputation points
2025-01-31T02:58:00.9066667+00:00

Hi, I have a visual studio .net 8 web application. I copied the projects folder up to my web host, but I don’t know how to call it from a web browser.

  With .net 4, I just copied my visual studio project folder up to my web host and put it in the web host wwwroot. Then, from the browser I just called the domain name.

  With .net 8, it has its own wwwroot, but no default.aspx.

  Not sure how to call it from a browser or where to put the .net 8 project folder on my web host? 

  Thanks for any advice or suggestions

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,769 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,399 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. SurferOnWww 3,816 Reputation points
    2025-01-31T06:47:55.08+00:00

    You cannot deploy the ASP.NET Core app to IIS in the same way you did for .NET Framework 4.x ASP.NET app.

    Just copying the Visual Studio folder to the site or application of IIS does not work. You will have to:

    • Install the .NET Core Hosting Bundle on Windows Server.
    • Create an IIS site in IIS Manager.
    • Deploy an ASP.NET Core app using Visual Studio.

    For details, please refer to the following Microsoft document:

    Publish an ASP.NET Core app to IIS


  2. JasonPan - MSFT 6,301 Reputation points Microsoft Vendor
    2025-01-31T07:07:18.0766667+00:00

    Hi @iqworks Information Quality Works •,

    We can check the official doc first(Publish an ASP.NET Core app to IIS), for hosting asp.net core application, we need to intsall .NET Core Hosting Bundle first.

    You need to copy all the files and paste them under the web host wwwroot. It means if we double-click the web host wwwroot , then we can find the content like below.

    User's image

    After deploying the application, we can access it via the url like : http://localhost:port .

    We need to verify your static IP or FQDN, go to your domain provider and navigate to DNS settings. Add an A record pointing to your Public IP Address or FQDN. Here is the document: Add Custom Domain to Azure VM or resource.

    Then we can access the site via the url : [https://www.]


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,

    Jason


  3. AgaveJoe 29,761 Reputation points
    2025-02-01T11:34:04.31+00:00

    I know that with .net 4, when you call your www.domain.com, you start the default.aspx. what starts when you call your www.domain.com for a .net core 8? thanks again for the advice and suggestions

    ASP.NET Core uses the concept of routing. I assume you've made no routing configuration changes.

    https://learn.microsoft.com/en-us/aspnet/core/fundamentals/routing?view=aspnetcore-9.0

    If this is a Razor Pages question, then the root folder in Visual Studio is "Pages." The default page is index.cshtml. The page that renders when calling www.domain.com is Pages/Index.cshtml.

    https://learn.microsoft.com/en-us/aspnet/core/razor-pages/?view=aspnetcore-9.0&tabs=visual-studio

    If this is an MVC question then the root folder in Visual Studio is "Controllers". The default controller is Controllers/HomeController.cs.

    https://learn.microsoft.com/en-us/aspnet/core/mvc/overview?view=aspnetcore-9.0

    You'll want to spend some time studying ASP.NET Core fundamentals if you are coming from Web Forms.

    https://learn.microsoft.com/en-us/aspnet/core/fundamentals/?view=aspnetcore-9.0&tabs=windows

    0 comments No comments

  4. Bruce (SqlWork.com) 70,611 Reputation points
    2025-02-02T04:51:09.6666667+00:00

    With asp.net core, you publish to a folder, then copy that folder to the hosting provider. The web host must be configured to host asp.net core.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.