A potentially dangerous Request.Path value was detected from the client (:).有潜在危险的Request的值(:) - 角http请求
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.Web.HttpException: A potentially dangerous Request.Path value was detected from the client (:).
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).] System.Web.HttpRequest.ValidateInputIfRequiredByConfig() +9560004 System.Web.PipelineStepManager.ValidateHelper(HttpContext context) +53
我的代码:
public List<GetPlayersSiteGoalViewModel> GetPlayers(string teamUrl)
{
var playersSiteGoal = new List<GetPlayersSiteGoalViewModel>();
return playersSiteGoal;
}
角服务方法:
dataBaseService.getPlayers = function (param) {
return $http({
method: 'GET',
url: getBaseUrl() + dataBaseService.apiController + '/GetPlayers/' + param.TeamUrl
});
};
更新:
param.TeamUrl
:
http://www.goal.com/en-us/teams/italy/juventus/1242?ICID=SP_TN_82
我该如何解决这个问题?
更新问题 – 2014-08-29 14:42:08