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

  • SEARCH
  • Home
  • 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 7628369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:35:07+00:00 2026-05-31T05:35:07+00:00

very simple basic question I have only route: routes.MapRoute( Widget, // Route name Widget/Frame/{postUrl},

  • 0

very simple basic question
I have only route:

 routes.MapRoute(
                "Widget", // Route name
                "Widget/Frame/{postUrl}", // URL with parameters
                new { controller = "Widget", action = "Index", postUrl = UrlParameter.Optional } // Parameter defaults
            );

And when i try to open following url:”http://localhost:50250/Widget/Frame/qwerty”

I have an error:

The view ‘qwerty’ or its master was not found or no view engine
supports the searched locations. The following locations were
searched:

Well…why?

Controller code:

public class WidgetController : Controller
    {
        //
        // GET: /Widget/

        public ActionResult Index(string postUrl, int? blogEngineType)
        {
            return View(postUrl);
        }




    }
  • 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-31T05:35:08+00:00Added an answer on May 31, 2026 at 5:35 am

    I would hazard a guess and say it’s because it’s actually trying to use the action name of Index(), since that’s the default action that you’ve specified. You’re not passing an {action} parameter through the url, so where else will it get the action from?

    Can you change your url pattern to Widget/{action}/{postUrl} and see if it works then?

    Either that, or set the default value of action to Frame instead. Basically, it has no way of knowing that you’re looking for the Frame action, so it fails.

    Edit: I see what you’re doing now – the action’s name is actually Index, right? In that case, I’m not sure, we need to see your controller code. I’ll leave the above answer in case it’s useful.

    Edit 2: You’re passing the value “qwerty” as the view name – do you have a view named “qwerty” in the views folder?

    If you intend for it to be the model, and for the view name to be “Index”, you should call return View((object)postUrl); instead, so that it doesn’t get confused.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am implementing a very simple file database. I have 2 basic operations: void
Very simple math question. Say I have an image with a point being tracked
This is my first question on this site, and I only have a basic
i have rather very basic question. I have one GUI class and another which
I have a very basic question about MVC web applications in Java. Since the
My experience with MySQL is very basic. The simple stuff is easy enough, but
I want to create a simple http proxy server that does some very basic
Very simple question, is there any cloud server enviroments avaliable these days for us
Very simple question, I made the following program : #include <stdlib.h> int main(int argc,
Very simple question. What does the term 'seeding' mean in general? I'll put the

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.