Click here to Skip to main content
15,889,034 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: MVC and Custom Routes Pin
Richard Deeming30-Nov-17 8:24
mveRichard Deeming30-Nov-17 8:24 
GeneralRe: MVC and Custom Routes Pin
#realJSOP1-Dec-17 1:04
mve#realJSOP1-Dec-17 1:04 
QuestionHow do I insert dropdown Text, not the value, into the database? Pin
samflex17-Nov-17 9:58
samflex17-Nov-17 9:58 
AnswerRe: How do I insert dropdown Text, not the value, into the database? Pin
W Balboos, GHB6-Dec-17 7:27
W Balboos, GHB6-Dec-17 7:27 
GeneralMessage Closed Pin
24-Jan-19 11:19
Sarah George24-Jan-19 11:19 
GeneralRe: How do I insert dropdown Text, not the value, into the database? Pin
W Balboos, GHB25-Jan-19 1:14
W Balboos, GHB25-Jan-19 1:14 
GeneralRe: How do I insert dropdown Text, not the value, into the database? Pin
Richard Deeming25-Jan-19 2:33
mveRichard Deeming25-Jan-19 2:33 
QuestionOne Step Forward, Two Steps Back - Can't create controller using scaffolding Pin
#realJSOP10-Nov-17 2:04
mve#realJSOP10-Nov-17 2:04 
Fully patched Win7
VS2013/5
.Net 4.5
EF6.2
MVC5

Everything has been going almost okay up until today. All of a sudden, when I try to add a new controller with views, I get this:

There as an error running the selected code generator:

"Exception has been thrown by the target of an invocation."


I was able to add a new controller yesterday with NO PROBLEM with the same dbcontext.

---------------

In the web.config (which has not change since I started the project):

1) There are no instances of "configsource" in the sections.
2) The configSections element is the first element.
3) The entityframework section looks correct (some people have had the wrong provider specified).
4) None of the sections are duplicated.

I've tried the following, and STILL have the problem.

1) The model object appears to be defined correctly, and is implemented as a DbSet<> in the dbcontext).
2) I tried changing the model implementation in the dbcontext to IDbSet<>.
3) I tried adding a controller (with a different name, of course) for a model that I already created a controller for.
4) I updated EF6 to from 6.13 to 6.2 out of desperation.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

AnswerRe: One Step Forward, Two Steps Back - Can't create controller using scaffolding Pin
#realJSOP11-Nov-17 11:16
mve#realJSOP11-Nov-17 11:16 
QuestionSys.WebForms.Res is undefined when javascript executed inside updatepanel Pin
Claudio Trenca8-Nov-17 4:38
professionalClaudio Trenca8-Nov-17 4:38 
QuestionMVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 1:59
mve#realJSOP7-Nov-17 1:59 
AnswerRe: MVC5 - Logoff does not work in Chrome Pin
Richard Deeming7-Nov-17 2:22
mveRichard Deeming7-Nov-17 2:22 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 2:39
mve#realJSOP7-Nov-17 2:39 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
Richard Deeming7-Nov-17 2:45
mveRichard Deeming7-Nov-17 2:45 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 2:47
mve#realJSOP7-Nov-17 2:47 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
Richard Deeming7-Nov-17 2:53
mveRichard Deeming7-Nov-17 2:53 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 2:59
mve#realJSOP7-Nov-17 2:59 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
Richard Deeming7-Nov-17 3:03
mveRichard Deeming7-Nov-17 3:03 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 3:01
mve#realJSOP7-Nov-17 3:01 
AnswerRe: MVC5 - Logoff does not work in Chrome Pin
aijaj hussain18-Nov-17 20:09
aijaj hussain18-Nov-17 20:09 
QuestionMVC5 checkbox size (RESOLVED - kinda) Pin
#realJSOP1-Nov-17 2:37
mve#realJSOP1-Nov-17 2:37 
AnswerRe: MVC5 checkbox size Pin
Richard Deeming2-Nov-17 5:53
mveRichard Deeming2-Nov-17 5:53 
GeneralRe: MVC5 checkbox size Pin
#realJSOP2-Nov-17 8:06
mve#realJSOP2-Nov-17 8:06 
AnswerRe: MVC5 checkbox size Pin
#realJSOP3-Nov-17 3:50
mve#realJSOP3-Nov-17 3:50 
SuggestionRe: MVC5 checkbox size Pin
Richard Deeming3-Nov-17 5:07
mveRichard Deeming3-Nov-17 5:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.