Error setting the Shield UI ASP.NET MVC chart ZoomMode - asp.net-mvc-3

I am trying to enable the ZoomMode of a Shield ASP.NET MVC chart but I am receiving the following error:
Server Error in '/' Application.
________________________________________
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1502: The best overloaded method match for 'Shield.Mvc.UI.Chart.ChartBuilder<object>.ZoomMode(Shield.Mvc.UI.Chart.ZoomMode)' has some invalid arguments
According to documentation (https://www.shieldui.com/documentation/javascript.chart/api/zoomMode) there are 3 zoom modes:
Possible values are: 'x', 'y' and 'xy'.
Why do I receive that error since I declare it as in the documentation:
#(Html.ShieldChart()
.Name("chart")
.ZoomMode("XY")
.Export(false)
?

The mistake you are making is that you are using a string and not the predefined type that needs to be used when working with MVC. It is true, that for the JavaScript Shield UI chart the zoom mode is defined by passing a string parameter, but in MVC you need to use following code:
.ZoomMode(Shield.Mvc.UI.Chart.ZoomMode.XY)

Related

ASP Boilerplate always shows the default error message

I am using ASP Boilerplate (MVC + Jquery) to develop two different online applications. It works very good but there is a problem with ABP exception handler in both of them:
It always shows the default error message (An error has occurred! Error detail not sent by server) also in login validation.
How can I fix this problem?
I tried to debug this error and I realized that the error format that returned from server side is not a valid ABP error format.
please check in your web.config file that shoud be set to On
<customErrors mode="On" />

'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions - Error while integrating Kendo Grid with Angular 5

I have purchased the script of a Kendo Ui Grid, and I'm integrating it with Angular 5. However, when I'm trying to call the read method, its not getting getting invoked; and the following exception is showing -

Custom error handling

I am developing a component in joomla 2.5, my component sends a request to some url and gets the response object. If i pass wrong url, joomla takes me to the default page of Error : 500 - No response code found . I want that if user install my component and mistakenly they put wrong url , it should show some custom error message/page which should more meaningful to non-programming person rather than taking user to default error page. Is there some way to add this type of functionality in Joomla without editing template/error.php file in core.
You should have an error.php file in your template, if you don't add one and make it look the way you want. also remember that when you turn debugging off you won't get the stack trace etc.
However error 500 indicates something different than that the url does not exist ("wrong URL"), which would be a 404. 500 is an internal server error and you need to check your logs to figure out what is causing it.

ASP.NET MVC3: System.NotSupportedException: Specified method is not supported

Hello I am Developing a ASP.NET MVC3 application and MYSQL Database accessed by entity framework. I am done with the deployment part and now i am trying to deploy it on GO DADDY server after deploying it so far every page is working fine but only in one page the following error is coming
Specified method is not supported.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: Specified method is not supported.
i have tried a lot searching to find the solution of the error please help me with this
following is the snap shot of the error
You happen to have a query that results in the DbApplyExpression node in the command tree. This node is typically translated to CROSS/OUTER APPLY construct in SQL however MySQL does not support CROSS/OUTER APPLY. Most likely you will have to change your query a little bit to avoid the CROSS/OUTER APPLY. Take a look a this msdn article for more details. I also found something at DevArt website that can be helpful

MVC Error handling using Action Filters

I would like to know best practice to handle exceptions.
I have 3 types of exception flows
1) Warnings: - In this I am required to display the partial data received from the service and also the error code/ message.
2) Business errors: - In this no data just the error code is received but I want to display the view with all the controls (e.g. dropdown) and the error message.
3) System failure errors: - In this scenario I would like to redirect to custom error page.
I am using Using ASP.NET MVC and lang is C#
It sounds like (1) and (2) probably shouldn't be exceptions. If you can easily handle the error and present a page to the user and let them continue, I wouldn't use exceptions. These sound more like data or validation issues which could be handled in code without exceptions.

Resources