1.Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a new proy, restoring to default configuration, or refreshing the service.
Error is : The underlying connection was closed: The connection was closed unexpectedly.
this is my 3 file...
public List<Vehicle_Master> GetVehicle()
//Configuration.ProxyCreationEnabled = false;
var result = (from var in dcdc.Vehicle_Masters select var).ToList();
<add name="Database1ConnectionString1" connectionstring="Data Source=najar-pc\sqlexpress;Initial Catalog=Database1;Integrated Security=True">
<compilation debug="true" targetframework="4.0" />
<servicemetadata httpgetenabled="true" />
<servicedebug includeexceptiondetailinfaults="false" />
<servicehostingenvironment multiplesitebindingsenabled="true" />
<modules runallmanagedmodulesforallrequests="true" />
I have spend so much time but i have not solve it. please help me..
Its always a good idea to return your collection as an Array rather a lit from WCF .
Please check the following in your applicaiton
--> Your object has some some uninitialised object internally and its not getting serialized.
--> Convert signature from List to Array (always a good idea to avoid dirty serialization issues )
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)