ASP.Net MVC – View Data Class is empty when Adding VIEW

Problem :

1.  Write Code in the Asp.net MVC controller class.

2. Right Click on the Action method and click Add View

3. Select  ‘Create a Strongly Typed View’

4.  View Data class drop down is empty or View Dataclass does not have the class name

Solution :-

Build / rebuild the Solution and make sure it compiles successfully.

Try Add View now. The view dataclass should be appearing in the drop down.

Advertisements

2 comments


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s