CS1061 .. does not contain a definition for BeginContext

I stumbled upon the error CS1061 System.Colelctions.Generic.List does not contain a definition for BeginContext and no extensio method BeginContext accepting a first argument of type … … could not be found (are you missing a using directive or an assembly reference?)

Turns out to be a very simple cause for the error. I had forgotten the following inside the source code:

@{
Model.InventoryItems..
}

Just some unfinished code, but the error message was a little ‘misleading’ in my opinion 🙂

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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