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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:41:32+00:00 2026-06-03T02:41:32+00:00

I’ve created a new C# asp.net mvc 4.0 (beta) Internet Application and I’m having

  • 0

I’ve created a new C# asp.net mvc 4.0 (beta) Internet Application and I’m having a somewhat odd behavior in the Add View dialog in Visual Studio 2010 (sp1).
When I decide to create a strongly-typed View, inside the Add View dialog, the Model class dropdown does not show my ViewModel class.

For the record, yes I did compile the application before triggering the Add View dialog.

I believe I have pinpointed the issue but do not know how to fix it.
Below are the repro-steps if anyone cares to reproduce the behavior:

  1. In Visual Studio 2010 (sp1), create a new C# asp.net MVC 4.0
    (beta) Internet Application.
  2. Inside the Models folder, create a new simple class called
    “GazouViewModel.cs”
  3. Build the application, open the HomeController, right-click the
    Index() ActionResult and select Add View…
  4. In the Add View dialog, check the “strongly-typed view” checkbox and
    in the Model class: dropdown, you’ll notice your “GazouViewModel”

  1. In Solution Explorer, right-click your project and select “Manage
    NuGet Packages”
  2. Search, find and install the “Bootstrapper.Autofac” package.
  3. Rebuild the application and verify if your “GazouViewModel” still
    displays inside the Add View dropdown’s dialog.
  4. The “GazouViewModel” should still be displaying in the dropdown.

  1. In Solution Explorer, right-click your project and select “Manage
    NuGet Packages”
  2. Search, find and install the “Autofac ASP.NET MVC4 (Beta)
    Integration” package.
  3. Rebuild the application and verify if your “GazouViewModel” still
    displays inside the Add View dropdown’s dialog.
  4. The “GazouViewModel” should still be displaying in the dropdown.

  1. In Solution Explorer, right-click your project and ADD a new class
    (Class1.cs) anywhere it doesn’t matter.
  2. Make that Class1 implement IAutofacRegistration and implement the
    interface.
  3. Rebuild the application and verify if your “GazouViewModel” still
    displays inside the Add View dropdown’s dialog.
  4. The “GazouViewModel” is no longer showing inside the Model class
    dropdown.

It appears that as soon as I create a class that implements the IAutofacRegistration interface and build the application, I’m no longer capable of viewing my ViewModels in that dropdown.

Can anyone confirm if they are getting the same results as me?
And more importantly, how can one fix this?

IMPORTANT: I have tried the exact same steps with an mvc 3.0 application and the exact same behavior occurs…so this is not relevant to the BETA version.

Sincerely
Vince

  • 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-03T02:41:33+00:00Added an answer on June 3, 2026 at 2:41 am

    UPDATE: As of this writing, I can no longer reproduce the error. Perhaps the NuGet packages I use have been updated to a newer version and incidentally fixed the error.

    I will mark this post as closed.

    Thanks for everyone’s input on this!

    Vince

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

Sidebar

Related Questions

I created a new ASP.NET MVC application. The home page looks like this: I
I have created a new ActionFilter for an ASP.NET MVC application that I'm creating.
I created a new ASP .net mvc 2 web application with that default template
I created a new ASP.net MVC Web Application project. Inside my application, I created
I started with a new ASP.NET MVC 2 Web Application template and created a
If I start a new ASP.NET MVC 3 Web Application with a Internet Application
I created a new ASP.NET MVC application with a Project Name of HelloWorld, and
I have created the following project structure for my new asp.net mvc project any
I'm new to MVP . can I use tutorials created for asp.net MVC to
It's been a while since I've created a new ASP.NET web application. (I've been

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.