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 8858301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:47:50+00:00 2026-06-14T14:47:50+00:00

I am building a MVC4 project with razor engine, although I don’t know if

  • 0

I am building a MVC4 project with razor engine, although I don’t know if that has relevance to my problem.
I have a VendorBillController with a Submit(String poId) ActionResult.
My link looks like this:
example.com/VendorBill/Submit?poId=790a2e76-5186-42c1-8087-c13b18d22023

However, when trying to go to this page, I get this error:

The view ‘722884’ or its master was not found or no view engine
supports the searched locations.

Why is it looking for the view 722884? Although I was pretty sure numbers, letters, and dashes were OK in html links, I tried html encoding the link as well but nothing changes.

if I put in

example.com/VendorBill/Submit?poId=asdf

It makes it to the function, but then fails because the poId is passed into new Guid() and asdf is not a guid.

Why does a guid in a URL fail? Is there a ‘normal’ work around for this, when a guid is the ID that needs to be passed?

edit:

Here is the code for my entire controller:

It doesn’t work with guid either, here is my entire controller, however I don’t think it’s even getting there so i’m not sure it’s the issue:

    public class VendorBillsController : Controller
    {
        public ActionResult Submit(Guid poId)
        {

            var purchaseOrderId = new Models.Entities().TempLinks.AsQueryable().Single(x => x.Guid == poId).PurchaseOrderId;


            return View(purchaseOrderId.ToString());
        }
    }
}
  • 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-06-14T14:47:51+00:00Added an answer on June 14, 2026 at 2:47 pm

    Does it work if you change the signature of Submit to Submit(Guid poId)?

    There is no issue with using GUIDs natively in MVC it will convert them for you.

    If the above doesn’t work, can you please include the code of the controller method so we can have a look at it?

    Update: No, your problem is this:

    return View(purchaseOrderId.ToString());

    If you pass a string into View, it assumes that what you’re passing is the name of the view (see this on MSDN), if you want your view model to be of type string then you’re going to have to pass the view name in as the first parameter, then the master view name, then the string value (this overload). Much easier to declare an explicit view model which has a single property PurchaseOrderId then pass that in to the view method. The way the View method overloads are setup you can use any view model type except string.

    You could just pass it in if it was a GUID, but you have to pass it in as a GUID, don’t call ToString()

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

Sidebar

Related Questions

I have an MVC4 internet project that uses the out of the box WebMatrix
Building an inventory system. I have lots of products and each product has three
Building a website that has English & Japanese speaking users, with the Japanese users
Building my first SL MVVM application (Silverlight4 RC) and have some issues i don't
Building a rails B2B application that will have various users. I'm pretty clear on
I've countered a very strange problem with my web service that I'm building with
Building a commercial product may use various open source libraries that have use of
I am building an online product using MVC4. Currently, I structured the project into
Building an app using a calendar on a Google Apps domain that has SSL
I am building a POC using MVC4. I have some jquery json calls to

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.