.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

What's the point of serialising a POCO proxy when using WCF?

Posted By:      Posted Date: October 12, 2010    Points: 0   Category :WCF

I'm quite new to WCF, and am trying to get to grips with it. I'm using the Entity Framework (Visual Studio 2010 Professional, .NET v4), and have been reading about using POCOs instead of sending EntityObject derived stuff across the wire.

It seems that WCF can't serialise the POCO proxies, so you either have to switch them off, or add code to serialise them. I found an MSDN article http://msdn.microsoft.com/en-us/library/ee705457.aspx that shows how to do this, as well as http://msdn.microsoft.com/en-us/library/dd456853.aspx and http://msdn.microsoft.com/en-us/library/ee705457.aspx amongst others.

All in all, it seems that serialising POCO proxies is a standard thing to do. What I can't understand is why you would want to do this? From my brief, but fairly in-depth study of WCF, it seems to be a data service, and does not send anything but data across the wire. If so, surely the proxies are useless as they won't manage the change tracking?

Have I got this completely wrong? I can't see what benefit you would get by serialising a proxy. Isn't that the whole point of self-tracking entities?

I would be grateful if someone can enlighten me, 'cos I'm confused!

If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at

View Complete Post

More Related Resource Links

learn basic about share point.

This learn basic about share point.

how to set break point at inline code

I set the element height value by using inline code 
<%# Eval("s") %>
where "s" is the variable declared in page load event. when i run the application it don't set the height. 
Is there any way, i can set break point into .aspx file. i mean how i can check if my Eval("s") get the value.  

deploying to msdeploy does not support a proxy server


I am trying to deploy through webmatrix but my system Proxy server configuration is not being used. I assume that webmatrix would detect the proxy server settings and use that for the msdeploy calls under the hood. Can anyone confirm this is a know issue? 

Dynamic Data, Domain datasource, Poco and lookups


Mr. Edward,

Excuse my question but: it is necessary to involve in our projects something more than just Dynamic Data or should we make use of all other features available in VS2010 (which will make assume taht they had been left out of the Dynamic Data framework) like: wef, poco, azure, wcf, cloud, mvc, silverllight, ajax, odata, agile, workflow, etc.?

Sorry my ignorance, I'm just transcribing names as they come to my mind and of which I don't know anything about


Carlos Porras (El Salvador)

Northwind POCO

You cannot vote on your own post

I am trying to create a POCO with EF4 for Northwind db. I am running into problem where the table name Order Details has a space.
If i create a POCO Class OrderDetails it throws exception saying  System.Data.SqlClient.SqlException: Invalid object name 'dbo.OrderDetails'.

public class OrderDetail

    public int OrderID { get; set; }

    public Order Order { get; set; }

    public Product Product { get; set; }

    public double UnitPrice { get; set; }

    public int Quantity { get; set; }

    public int Discount { get; set; }


Proxy Detection: Take the Burden Off Users with Automatic Configuration in .NET


Proxy settings can be a real pain in the neck and very frustrating for users to configure properly. In this article, Durgaprasad Gorti discusses how you can use automatic proxy configuration via script and how it works in the Microsoft .NET Framework 1.1 and 2.0.

Durgaprasad Gorti

MSDN Magazine August 2005

ASP.NET Proxy Page - Used for Cross Domain Requests from AJAX and JavaScript

The article ASP.NET Proxy Page - Used for Cross Domain Requests from AJAX and JavaScript was added by Aamir Hasan on Thursday, August 19, 2010.

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn't allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull content

Send email throught proxy



i want to send a mail via my mvc application hosted by cassini ,but  i access to the internet connexion throught proxy

i add this lines on my web config :

    <defaultProxy  enabled="true" >
      <proxy proxyaddress=""/>
        <network />
and in my code i have :
 MailMessage mail = new MailMessage();
             mail.From = new MailAddress("yyy@xxx.fr");
                    mail.Subject = "Test";

                    string Body = "Hi, this mail is to test sending mail" 
                    mail.Body = Body;
                    mail.IsBodyHtml = true;
                    SmtpClient smtp = new SmtpClient("");
                    smtp.Port = 25;

                catch (Exception ex)
                    string exep = "Send Email Failed." + ex.Message;

 i have un exception :"Unable to connect to the remote server"

Primary Key In Share Point 2007/ 2010


Can I create 3 columns Primary key in a list using the MOSS 2010 or 2007

Actually My requirement  is

I collect some information by Country,State,Dist wise Temperature


1.  India-Andraprades-Hyderabad-Temp-30

2.  India-Andraprades-KarimNagar-Temp-30

here first 2 column is Same but 3rd column is different that's I required 3 column is Primary Key


Any one help me.



How to work around Share point accessibility requirement ?



I am somewhat new to things related to accessibility in SharePoint. I am trying to work on section 508 accessibility requirements for SharePoint site. I have tried to see few articles from the internet and still looking for more information on the subject matter including what to consider fro preparing requirement.  

I am looking to know what is possible and what is not with SharePoint?

How to achieve all the possible accessibilities in SharePoint?

Is it possible to make accessible all site types (Publishing, team sites,.)?

Please help me in understanding everything around SharePoint accessibility and first in preparing the requirement document. I have tried to see AKS site but there were some issues that are not clear for me at this level.

Thank you in advance,


Is MSDN uses Share point?



Is MSDN uses Share point?


Not able to edit user profile in share point


Hi ,

I am new to share point, and not able to edit user profile data in sharepoint2007. I am getting an error "can't edit the property try with user profile services".

I have ran full crawl still getting the same problem. Also let me know how I can fetch data from Active Directory to share point 2007.



How to create WSP or Package for workflow in Share Point 2007?



I am working on SharePoint 2007. I have created 2 List called "Config List" (this is a list) and "Vacation Form" (this is form library & form designed in infopath). I have also created a workflow on form library "Vacation Form" in Share Point Designer 2007.

With the use of this workflow I am creating some task and updating "Vacation Form".

Now I want to deploy these three thing (Config List, Vacation Form & workflow) on other server.

How do I create a package or WSP file to install these things on different server.


G. Goyal

Share Point integrated SSRS reports rendering when access from external site


Our client has a SharePoint (moss2007) site on Windows 2008, SQL2008 R2 Enterprise, and Reporting service is integrated with SharePoint

The authentication on the share point integration is set to windows, else the authentication for the SSAS datasource gives and error

The extranet zone ( forms) and intranet (Customer Forms) and default (Windows) zones are all access from inside the firewall and the reports render in each with no issues, as the datasources are configured to pass a sql username and password.

However, report rendering is a problem from the internet (external site), the following error is displayed:

An unexpected error occurred while connecting to the report server. Verify that the report server is avai

Point of sale


Hello all!!

I'm Requiered to build a web app thats almost like a point of sale, but web based. Thats cool, but i'm stucked with the part where you select items and put them in some sort of shopping cart, all in the same page. What components would you guys use to do something like this.

Thanks in advance!

Share point website connection with Certral administration


Here is the situation , although I have SBS server 2008 I posted this same problem there , but I want here also to ask.

I followed link http://technet.microsoft.com/en-us/library/dd548330(WS.10).aspx and here are the  results.

In SBS console there is companyweb and it is marked as online. DNS also has entry for companyweb and nslookup works.  When I try to recreate internal website , which is described as 2nd step, my IIS server  is started, in IIS7 my website is running, but when I try to see in central administration if my site exist (web application list)  it isn't listed. So I tried to recreate it and I  followed directions from upper link in section repair user access to the internal website but when I want to delete web site , it is not listed. And after when I want to extend I cannot once again because it is not listed. Any suggestions and is there an

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend