Open RIA Services User Support Silverlight OpenRIA - duplicated requests  Viewed 25411 time(s), 3 post(s)., 11/2/2015 1:34:00 PM - by Bruniasty

Bruniasty 11/2/2015 1:34:01 PM

I am using Silverlight 5, .NET 4.5.1 and OpenRIA.

A silverlight client calls a long-run OpenRIA operation. The operation is asynchronous. From the client side I can see that the function from a code is being called just once. From the IIS server-side on the other hand, the WCF function is called multiple times. The browser sends the request every 15 seconds until it gets first response of the operation from the server. The server stacks requests in a queue and sends responses to the client.

What I have logged through Fiddler - the operation was finished with an error. It was invoked once, but with a message „NOTE: This request was retried after a Receive operation failed.”

The situation occurs in IISExpres and IIS 7.5, locally and remotely.

What can be an issue?

This content has not been rated yet. 
25 Reputation 3 Total posts
Bruniasty 11/6/2015 9:57:53 AM

I have found the reason that causes an operation repeated. 

Failed to allocate a managed memory buffer of 134217728 bytes. The amount of available memory may be low.

What I can do to handle it with OpenRIA? I see no custom binding to have any effect to OpenRIA.

This content has not been rated yet. 
25 Reputation 3 Total posts
Bruniasty 11/6/2015 10:59:18 AM

The problem was 32-bit IIS. Using 64-bit version solves the problem.

P.S. Visual Studio has an option to use IIS-Express in 64-bit. You can also add to the registry:

reg add HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\WebProjects /v Use64BitIISExpress /t REG_DWORD /d 1

12.0 - Visual Studio 2013

Rated 5.00, 1 vote(s). 
25 Reputation 3 Total posts