請看下面的代碼。它在handler.asxh中。值不能爲空。參數名稱:字符串
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "application/json";
new RequestManagementFacade().PinRequest(Int32.Parse(context.Request.QueryString["requestId"]), (Boolean.Parse(context.Request.QueryString["isPinned"])));
}
這是示出了下面的錯誤。
值不能爲空。參數名:字符串
有,因爲我有checke D出現上下文請求的查詢字符串傳遞價值,但在這個階段的代碼中斷。
該處理程序將連接到業務邏輯層。
有人能請指教嗎? 在此先感謝
都庫什
可能重複當我錯過了[什麼是.NET一個NullReferenceException?](http://stackoverflow.com/questions/4660142/what-is-a- nullreferenceexception-in-net) –
當然,requestId或isPinned爲null,評估它們並捕獲一些錯誤! –