TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
PRASAD GODBOLE
NA
12
6.7k
Adding view in MVC giving error
Nov 9 2015 4:03 AM
Hi All,
I am developing sample MVC application by selecting empty MVC project and trying to add view via controller. While adding view I am getting error.
I am using VS 2015, .NET Framework 4.5 and Entityframework.dll
Code is attached. Please have a look.
While adding view if I set the Template as "Empty (without model)", its allowing me to add the view but when I am setting the Template as "Details" and set Model Class as "UserLogin (SampleMVCWork.Models)",
Data context class as "AppEntitiesDBContext (SampleMVCWork.Models)"
then its throwing error "There was an error running the selected code generator" 'Object reference not set to an instance of an object'"
Can anyone please advice that what I am doing wrong here?
Thanks and Regards
Prasad
Attachment:
attached code.zip
Reply
Answers (
2
)
how to use adobe adobe dreamweaver for web designing?
Search with Dropdownlist