Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Adding view in MVC giving error
PRASAD GODBOLE
Nov 9 2015 4:03 AM
752
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
how to use adobe adobe dreamweaver for web designing?
Search with Dropdownlist