https://bugzilla.novell.com/show_bug.cgi?id=687865

https://bugzilla.novell.com/show_bug.cgi?id=687865#c0


           Summary: Async methods of HttpWebRequest fail when compiled for
                    the Device
    Classification: Mono
           Product: MonoTouch
           Version: SVN
          Platform: iPhone
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16

I recently updated to MonoTouch 4, prior to this my app worked fine.

I am using HttpWebRequest asynchronously: I call Begin/EndGetRequestStream and
Begin/EndGetResponse, and pass private member methods of my class for
callbacks.

When running on the device, in Debug or Release, I get this exception:

System.ExecutionEngineException has been thrown.

Attempting to JIT compile method 'Omniprise.API.HttpServer:GetResponseCallback
(System.IAsyncResult)' while running with --aot-only.

 at System.Net.WebAsyncResult.CB (System.Object unused) [0x00000] in <filename
unknown>:0

I tried changing several minor things like putting PreserveAttribute on the
methods, making them non-private, etc., turning off linking, etc. but nothing
I've tried has gotten my code to work on MonoTouch 4.0, even though it works
fine on Windows and the previous version of MonoTouch.

Reproducible: Always

Steps to Reproduce:
1. Use async methods of HttpWebRequest
2. Build for the device, you can run in Debug
3. First request fails with above exception
Actual Results:  
ExecutionEngineException is thrown.

Expected Results:  
The request should complete.

This is holding us up from putting an update of our App to the app store.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to