I have a callback url that gets called, and I can process it. However - Google doesn\'t process my acknowledgment. This is all in EnvironmentType.Sandbox
.
I
It seems this question is solved by an answer to another question of mine: How can I create an http response from scratch? .
The solution is to add:
HttpContext.Current.Response.End();
See this "code behind" code from the .Net Library examples
If you are using an aspx file, remove all the HTML content in it as shown in aspx
source of the same example
Response.End()
will also work because it stops any further Reponse content from being returned (effectively does the same thing - prevents the HTML content in the Web Forms (aspx
file) from being sent).
You can also consider using a generic handler (ashx
) instead of an aspx page for your callback url.