ASP.NET MVC Project, How to Launch?

Leonard, Jared 56 Reputation points
2022-07-15T17:53:54.887+00:00

Hi all, I'm having some trouble understanding how one "launches" an ASP.NET Server Application (.asax). I have a folder containing many files like below:

221231-image.png

I assume the .asax file is the "target" of whatever launches ASP.NET Server Applications, but I don't know that for sure because I'm very unfamiliar with this architecture. I've installed the ASP.NET Core and SDK, and the "dotnet" command works in Command Prompt.

From here, what do I need to do to get a server running on local that hosts the above application?

Thanks!

Developer technologies ASP.NET Other
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2022-07-16T16:08:47.16+00:00

    You folder display looks like a compiled and published classic (not asp.net core) asp.net mvc project. If it was source, you’d see a controllers folder.

    IIS (or IIS Express) is required to host the code. Once IIS is installed with .net framework support, you configure an application and map to the folder you list.

    Unlike classic .net, asp.net core applications can self host, or be hosted by a web server.

    Note: asp.net core does not support .asax files or web.config.

    0 comments No comments

  2. Yijing Sun-MSFT 7,096 Reputation points
    2022-07-18T09:12:19.03+00:00

    Hi @Leonard, Jared ,
    According to the image of your folder, I suggest you need to check if you have a file suffix including of .proj or .sln. If it has, you just click the file to open. If you can't find the file, I'm guessing that your project has been deployed or published. And then you need to convert it into an application, you can refer to the document about how to convert to the application.

    Best regards,
    Yijing Sun


    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.

    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.