WcfProxy Issue

WcfProxy Issue

Old forum URL: forums.lhotka.net/forums/t/7965.aspx


jfreeman posted on Monday, November 09, 2009

I'm running a WinForm app that calls the WcfProxy on an app server. Fetching data works great but I just starting getting an error when trying to do an Update. I get a 404 Page Not Found. I have a grid on my screen that pulls in a lot oif records. The user may only update a few records and then save. If I limit the grid to only pull back 30 records, updates work fine. When I bring back all the records in the table, the error starts showing up. I've been playing with the maxReceivedMessageSize and maxItemsInObjectGraph settings in my config files but the issue still exists. I set both of the values to 2147483647. Any ideas on what is going on?

Thanks,
Jonathan

sergeyb replied on Monday, November 09, 2009

It is probably asp limit of 4 MB.



Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation


-----Original Message-----
From: jfreeman [mailto:cslanet@lhotka.net]
Sent: Monday, November 09, 2009 5:42 PM
To: Sergey Barskiy
Subject: [CSLA .NET] WcfProxy Issue

I'm running a WinForm app that calls the WcfProxy on an app server. Fetching data works great but I just starting getting an error when trying to do an Update. I get a 404 Page Not Found. I have a grid on my screen that pulls in a lot oif records. The user may only update a few records and then save. If I limit the grid to only pull back 30 records, updates work fine. When I bring back all the records in the table, the error starts showing up. I've been playing with the maxReceivedMessageSize and maxItemsInObjectGraph settings in my config files but the issue still exists. I set both of the values to 2147483647. Any ideas on what is going on?

Thanks,
Jonathan

jfreeman replied on Monday, November 09, 2009

What are my options?

Jonathan

sergeyb replied on Monday, November 09, 2009

Just increase the size to whatever number you need. The size is in KBs. is about 100 MB.

Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation


-----Original Message-----
From: jfreeman [mailto:cslanet@lhotka.net]
Sent: Monday, November 09, 2009 5:55 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: WcfProxy Issue

What are my options?

Jonathan

jfreeman replied on Tuesday, November 10, 2009

I bumped it up to 2097151 which is the max allowed and I still get a 404 error. I installed Fiddler on my PC and ran the program to see if I find anything. It just show a 404 error but I noticed the following:

Content-Length: 36392990

That is considerably larger than the MaxRequestLength. What can I do to get this working.

Thanks,
Jonathan

jfreeman replied on Wednesday, November 11, 2009

Sergey, Do I need to start trying to do compression since the file is so large? Thanks. Jonathan

sergeyb replied on Wednesday, November 11, 2009

Probably so.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: jfreeman [mailto:cslanet@lhotka.net]
Sent: Wednesday, November 11, 2009 9:17 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: WcfProxy Issue

 

Sergey, Do I need to start trying to do compression since the file is so large? Thanks. Jonathan

jfreeman replied on Wednesday, November 11, 2009

Can you give me any tips or samples to get me started? I'm not sure how to setup compression. Can I call and pick your brain for a few minutes? Thanks.

Jonathan

RockfordLhotka replied on Wednesday, November 11, 2009

http://www.lhotka.net/cslanet/faq/DataPortalFaq.ashx

sergeyb replied on Wednesday, November 11, 2009

There is a sample project in Silverlight folders that is part of Samples download that you can steal all the code from. If your is WPF app, just search the forum, someone posted source code for WCF compression at some point.

Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

-----Original Message-----
From: jfreeman [mailto:cslanet@lhotka.net]
Sent: Wednesday, November 11, 2009 2:01 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: WcfProxy Issue

Can you give me any tips or samples to get me started? I'm not sure how to setup compression. Can I call and pick your brain for a few minutes? Thanks.

Jonathan

jfreeman replied on Monday, November 16, 2009

My app is WinForms. Is there a way to change WCF to pass binary between the WcfPortal and WinForms?

Jonathan

RockfordLhotka replied on Monday, November 16, 2009

WCF configuration is the same regardless of the UI technology you are using.

The .NET data portal doesn't have the same hooks for compression as the Silverlight data portal, because there are various compressed bindings you can purchase for .NET WCF.

But the use of binary XML with WCF is the same for Windows Forms, WPF, Web Forms or any other type of UI.

Copyright (c) Marimer LLC