Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4253322
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:55:50+00:00 2026-05-21T04:55:50+00:00

I’m just starting out with ASP.NET, all my prior experience has been with desktop

  • 0

I’m just starting out with ASP.NET, all my prior experience has been with desktop programming. VS2010 SP1 and I’m looking at Microsoft’s tutorial for a music store. I’m at the point of trying to make a hello, world page–but it’s just returning a 404.

Win 7 64-bit, IIS is installed and working for HTML, I have a static page I wrote that is served up correctly but now I want the server to do something useful.

When I hit the F5 in VS the ASP.NET development server shows up in the taskbar like it’s supposed to but all I get is a 404. Note that this is NOT the 404 from IIS, it looks very different. That says to me that I’m connecting to the ASP.NET server and not the IIS server.

I’m pretty sure it’s a configuration issue somehow (there’s so little else that I have a hard time picturing there being any other error) but Google isn’t turning up anything relevant. Where should I be looking?

Re: The comments–it’s reaching the server as I get back a 404 page, not a server can’t be found error.

The tutorial:
http://mvcmusicstore.codeplex.com/releases/view/59112#DownloadId=197609

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T04:55:50+00:00Added an answer on May 21, 2026 at 4:55 am

    To get the default page to display, you’ll want to create a controller in the Controllers folder called HomeController.

    public class HomeController : Controller
    {
        //
        // GET: /Home/
    
        public string Index()
        {
            return "Hello From Home";            
        }
    }
    

    In MVC, the Urls by default are wired to the controller name (minus “controller”) and the method name. Creating an Index method is basically the equivalent of creating an index.htm page. Once this controller is created, you should be able to bring up the following urls (assuming that the ASP.NET web server is running on port 12345):

    http://localhost:12345/
    http://localhost:12345/Home
    

    Both should display the text “Hello From Home”. Also, assume you create a controller like the one below:

    public class Default1Controller : Controller
    {
        //
        // GET: /Default1/
    
        public string Index()
        {
            return "This is the index";
        }
    
        public string MyNewPage()
        {
            return "This is the new page";
        }
    }
    

    This controller will display at the following Urls:

    http://localhost:12345/default1 - should show "This is the index"
    http://localhost:12345/default1/mynewpage - should show "This is the new page"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I've got a string that has curly quotes in it. I'd like to replace
In my XML file chapters tag has more chapter tag.i need to display chapters
I have an array which has BIG numbers and small numbers in it. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.