Home > Net >  Asp.net WeChat pay error "will object reference not set to an instance of an object"
Asp.net WeChat pay error "will object reference not set to an instance of an object"

Time:10-13



The latest edition of the asp.net WeChat pays sweep the SDK - demo code to the error, this is what causes, is there a friend encountered this problem, the. Net is not very well, hope to solve the grateful

CodePudding user response:

The result should be returned a failure data
So there is no code_url value, null. ToString error

CodePudding user response:

Check the GetValue method, error due to its returns null,

CodePudding user response:

refer to the second floor exception92 response:
check the GetValue method, error due to its returns null,





Eventually to perform here, don't know the role of this method, the file is not within the project file

CodePudding user response:

Because the id key IP wrong? Bosses to solve didn't lead to the url is empty

CodePudding user response:

The result to be typed,,, this directly and see what is not to know,

CodePudding user response:

O=null bai

CodePudding user response:

This kind of problem from already debugged, or play a log to see

The error log is very clear,

First to see if the result is null

Look at the result. GetValue (" code_url ") is null

CodePudding user response:

F12 in that way, what is the underlying implementation through, then what do you mean by the incoming parameters, if there is no data??? This kind of issues that need to be basic debugging can, this I have not used this payment,

CodePudding user response:

Obviously the GetValue method returns null,
Then discuss GetValue (" code_url "),
You said this is the order, return the qr code,
I see you order the return results of the interface, the result is unity
Then you look at the result of value, to determine the following two questions
1 is appeared abnormal, after you place the order to check the result should be to know
2 code_url isn't spelled correctly, investigation result have this property

CodePudding user response:

Getvalue returns a null
Like upstairs said,
Through the breakpoints view under WeChat server returns what is the content of the
1, if is a failure or error, see error message
2, if successful and return correctly, will confirm whether the qr code link in code_url node, if not modified into the right line
  • Related