When I'm going to add a controller. I get the following error:
What causes this error?
How do I solve it?
When I'm going to add a controller. I get the following error:
What causes this error?
How do I solve it?
You need a try catch block to figure out what the real error is like so:
try{
//your code here
}
catch(Exception e) {
throw e;
}
Then, you can use the debugger to check what the InnerException is. You can also print out the exception message in the catch block.