0

在我的 winJS 应用程序中调用该方法时遇到问题:

[OperationContract]
[WebInvoke(RequestFormat = WebMessageFormat.Json,
           ResponseFormat = WebMessageFormat.Json,
           BodyStyle = WebMessageBodyStyle.WrappedRequest)]
void newUserAndImageEntry(string pArrayImage,
    string pContentType, string pUserName, string pFileName);

我得到的错误是:

 "InnerException":null
 "Message":"Object reference not set to an instance of an object."
 "StackTrace":"
    at WebRoleUploadImages.UploadImagesAJAX.newUserAndImageEntry(String pArrayImage,
       String pContentType, String pUserName, String pFileName)
    at SyncInvokenewUserAndImageEntry(Object , Object[] , Object[] )
    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance,
       Object[] inputs, Object[]& outputs)
    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
Type:"System.Exception"}

我真的不知道如何找到哪个是空的对象..我检查了我发送的所有变量,它们至少都有一些东西,帮助?

4

0 回答 0