Hi Rajat.
I have references to the following specified in both server & client solutions:
System
Ssystem.Net
System.Runtime.Remoting
System.Runtime.Serialization
System.ServiceModel
But still getting the same RealProxy.cs error (see below)
Locating source for 'f:\dd\NDP\clr\src\BCL\System\Runtime\Remoting\RealProxy.cs'. (No checksum.)
The file 'f:\dd\NDP\clr\src\BCL\System\Runtime\Remoting\RealProxy.cs' does not exist.
Looking in script documents for 'f:\dd\NDP\clr\src\BCL\System\Runtime\Remoting\RealProxy.cs'...
Looking in the projects for 'f:\dd\NDP\clr\src\BCL\System\Runtime\Remoting\RealProxy.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\crt\src\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\crt\src\vccorlib\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\include'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: f:\dd\NDP\clr\src\BCL\System\Runtime\Remoting\RealProxy.cs.
The debugger could not locate the source file 'f:\dd\NDP\clr\src\BCL\System\Runtime\Remoting\RealProxy.cs'.
Below is my Client
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.ServiceModel;
namespace WindowsFormsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
ServiceReference2.Service1Client client = new ServiceReference2.Service1Client();
string xxx = client.GetData("TEST123");
}
}
}
Here is my Server code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
namespace WcfServiceLibrary7
{
public class Service1 : IService1
{
public string GetData(string value)
{
return string.Format("You entered: {0}", value);
}
public CompositeType GetDataUsingDataContract(CompositeType composite)
{
if (composite == null)
{
throw new ArgumentNullException("composite");
}
if (composite.BoolValue)
{
composite.StringValue += "Suffix";
}
return composite;
}
}
}
As you can see it is just a standard wcf client/server. But each time I attach to process and press F11 on
string xxx = client.GetData('TEST123')
I get the RealProxy.cs error.Is there anything obvious that I am doing wrong ?
regards
Pat