2012-10-17 6 views
1
내가 로컬 호스트에서 일하고있다

내 아약스 요청@ Html.Raw은 (Url.Action는 (...)) 배포 서버

$.ajax({ 
       url: '@Html.Raw(Url.Action("IdentityProviders", "Account", new { serviceNamespace = "traffictheory", appId = "http://traffictheory.cloudapp.net/" }))', ... 

작품 잘에 빈 문자열로 평가했다.

하지만 배포 서버 (윈도우 Azure 클라우드 서비스)에 URL이 비어

은 : '

내가 디버깅을 시작할 위치를 몰라'.

+0

[피들러 (여기에서 설명) (http://blogs.staykov.net/2010/08/how-to-debug-your-application-http.html) 웹 디버깅을 시작할 수있는 좋은 방법이다 신청. – astaykov

+0

푸른 하늘에 배포 된 MVC 4 프로젝트를 디버깅하는 것이 좋습니까? –

+0

디버깅에 좋습니다 ** ** HTTP 통신, 아무 곳에서나 호스팅 ** – astaykov

답변

0

해당 작업 경로에 필요한 매개 변수가 누락되지 않았는지 확인하십시오.

또한 매개 변수에 area을 언급하는 것을 잊지 않았는지 확인하십시오.

Url.Action("IdentityProviders", "Account", 
    new { 
     area = "did you forget the area?", 
     serviceNamespace = "traffictheory", 
     appId = "http://traffictheory.cloudapp.net/", 
     requiredParamThatYouForgot = "missing value" 
    })