I'm sending a DTO over wire (WCF) which has on one property the DisplayName atribute from System.ComponentModel and on a other one the ScaffoldColumn attribute. On the client I have a ASP.NET MVC 2 app and I use the Html.EditorFor(x=>x.DTO) extension method.When the page is rendered it looks like the attributes wasn't there.
The DTO
[S...
Hi All,
Here is how my 2 projects are
I have a class library project which consumes multiple webservices.
I have created a test project in VSTS and try to call one of those service
But I'm receiving System.ServiceModel.EndpointNotFoundException. In my Test Project I have added one app.config file and added endpoint as available in m...
Hello
I'm following this brilliant piece of article to dissect and understand chat using WCF. The logic is that when a user joins a chat an event handler is created for that particular user and is stored in a dictionary.
lock (syncObj)
{
if (!checkIfPersonExists(person.Name) && person != null)
{
...
Hi all,
I have this issue:
I have WebSite with asp.net pages.
http://desiis:90/WebSite1
In this webSite, I have a Service WCF (service1.svc).
http://desiis:90/WebSite1/services/Service1.svc
When I call to the service, I get this error:
This collection already contains an address with scheme http
In my localhost all is OK.
any s...
In Visual Studio 2010 I have created a WebService (WCF) Application and a client to consume said service.
My 3 options as far as what servers to use for debugging are: Visual Studio Development Server, Local IIS Web Server, Custom Web Server.
I know I can't use the VS Development Server if I want my service to be accessible outside of ...
Hi all. I have a WCF service (.svc) that I am referencing in a SL4 client.
The call looks something like this:
private void Button_Click(object sender, RoutedEventArgs e)
{
var client = new SecurityBrokerServiceClient();
client.AuthenticateUserCompleted += client_AuthenticateUserCompleted;
client.Authentic...
We have a WCF service in our web application which is being called by browser through ajax(jquery and asp.net scriptmanager)
In this service some of the methods are WebGet and some of them are WebInvoke
Problem is now any request to WebInvoke method through asp.net scriptmanager is making request using http 'OPTIONS' instead of 'POST'....
I have a WCF service written using C# 3 which take some data as input and add theses data to a database and returns a GUID back to the client. I've created a VB.net console client to test this unfortunately I am getting Guid.Empty in the client even though the service returns a GUID from,same thing works correctly with C# 3 client. Any i...
Hi guys,
I have a sharp architecture project and I am making use of ApplicationServices in it as well.
There is requirement to provide a winform client that will use a wcf service. The wcf service will in turn use the ApplicationServices. I have not started working on the winform client yet but I am working on the wcf service.
Followi...
I am working on a project at the moment which is using WCF for all communication.
Standard sort of coding, using ChannelFactory and CreateChannel to access methods and objects running on the server.
Now, I have a form of event system setup, where a db table stores all the endpoints to inform given certain condiitons.
So something happen...
Hi,
I'm new to Silverlight and WCF services. I'm trying to write a client application that can manipulate an object server side.
My problem is that each time my Silverlight client makes a call to the service, it enters into the constructor systematically
public SilverLightEnabledWcfService()
{
}
In the below exampl...
I have a WCF service which has (at the current time) One endpoint defined, to a IMyService
which implements about 20 IDataTypeService which has the DB interfaces for the objects.
The service is pretty high usage and I am having occasional error re timeout and other high use errors.
I am looking for information as to whether to create ...
Hi I want to host a secure WCF service on azure using wsHttpBinding binding. On the blogs and various posts is ti mentioned that wsHttpBinding is not supported on cloud.
Is is true? Can't I use wsHttpBinding with WCF service to host it on Azure.
...
Hi,
Is is safe to use CallContext when request arrives to WCF service, initialize it with some call specific data (for instance using hook at the beginning of call: Inspector/ContextBoundObject), and then reuse it in the call, and be guarantied that data I access is all the time the same data?
Thanks, Pawel
...
I have binded my IIS7 with a third party 'Server certificate' (Not issued by my server).
I have deployed a secured WCF service on this server with Transport security.
When i try to consume this service, it only accepts those client certificates which are issued by my server (made using makecert). The third party client certificates just ...
I have a WCF service hosted in a windows service. This WCF service is only going to be used on the local machine so I have chosen named pipes for endpoint. However when I try to connect to WCF service from the client instantiated by JavaScript in IE, endpoint is not found.
However if I stop the windows service and run the executable (it...
Hi,
I have WCF data service working fine for some entities, but for some of them I have error
http://localhost/MyDataService.svc/MyEntityName
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
- <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code />
<message xml:lang="en-GB">An err...
Hi,
I want to know the difference between self signed and certificate generated by certification authority.
I can easily create a self signed certificate for domain xyz.com then what is the difference between this certificate and the one generated by CA?
Scenario
Suppose a site xyz.com is secured with a certificate issued to xyz.com a...
Is it possible to override the default WCF DataContractSerializer behaviour when Serialize/DeSerialize entities and use JSON.NET instead?
I have the following service contract for handling the City entity. For design reasons the City entity has IsReference=true, and therefore the default DataContractSerializer raise errors.
For the "GE...
I'm fairly new to WCF DataServices (OData) and I need to know the best way to instantiate the entity container on the client without hard-coding the URI. It seems like all of the examples on MSDN describe instantiating the client like this:
Uri uri = new Uri("http://www.someservice.svc");
DataServiceContext svc = new DataServiceContext(...