wcf

SVCUtil "update service reference" equivalent command parameters

Hey. I want to update service references in a Visual Studio 2010 solution by using SVCUtil because this solution has several projects and it's not good to get references refreshed one by one. I'd like to know your point, because I've to be sure I'm going to execute exactly same command than one done by Visual Studio 2010, or even if Vi...

Set WCF ClientCredentials in App.config

Is it possible to set clientcredentials for an WCF in App.config? I would like to avoid doing this: Using svc As New MyServiceClient svc.ClientCredentials.UserName.UserName = "login" svc.ClientCredentials.UserName.Password = "pw" ... End Using Rather the login and password should be part of the configuration. ...

Passing objects to multiple services

Hi, I have a need to run multiple WCF services at the same time, from a single windows service. Each WCF service is basically the same, but has one object specific to that instance. So with the following service class: public class MyService : IMyContract { public MyType MyObject { get; set; } public MyService(MyType myObject)...

netTcpBinding Behavior - Reconnection

Hi everyone. I have a WCF Service using netTcpBinding. the problem is that the host of this service not always active , so when a client tries to use the service it will succeed as long as the server is on-line. when the server re-starts the client must re-establist the channel (cause its netTcpBinding) using httpBinding will solve the p...

Json containg some other data, and gives me error : using wcf serivce

I am using the WCF Collection Service in asp.net, Just to learn I am using the SampleItem. The xml looks like this in the web browser: - <ItemInfoList xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt; <ItemInfo> <EditLink>http://localhost:8080/Service.svc/A&lt;/EditLink&gt; - <Item> <Value>A</Value> </Item> </ItemInf...

How to do inter-process communication between two instances of the same application?

I was thinking of using WCF, but then the endpoints would collide. What are the other options? The endpoints will collide because the second instance will be created from the same executable file. ...

Serving Json from WCF Service with no extension in IIS

I have a WCF service set up to serve data through multiple endpoints (SOAP, JSON and XML) the SOAP and XML is working perfect, but when I try to view the json I get a prompt to download a file with the json results instead of displaying the results in the browser. This probably won't matter as the client will most likely be consuming th...

WCF: Service calling service in same assembly

I have a WCF service (hosted in IIS 6) with two services, FileMonitorService ans JobService. In one of FileMonitorService's methods I want to call a method in JobService through WCF. This method in JobService is executed asynchronously (fire and forget). I suppose it'd be easy enough use a Thread Pool and signal when they are all done....

OData Save/Validate a Complex Type

I am trying out OData and have a scenario were a customer would like to submit an order. The order will contain/require order items and there is some validation that needs to take place. So say I have Order(customerid, etc...) Order Item (1) Order Item (2) etc... I am curious how to handle this scenario. I've seen examples on how to ad...

WCF Named pipe message size problems

I am trying to get working a WCF named pipe communication between two processes on the same computer (on XP), but I am having trouble with "large" messages disappearing. The messages that disappear contain a largish byte array and I have narrowed the failure down to when the array is around 16k in size. Smaller than that and the messag...

linq to sql in a multithreaded environment ( and WCF)

Hi All, we have designed a multi threaded server that use linq to sql at each of its threads. the test are not look so good... from reviewing our code, a big question has be raised: does linq to sql supports such environments at all? if yes, we assume that we should create a dedicated DataContext object for each thread? if yes, what is...

Consuming Ruby on Rails SOAP services in Silverlight 4

Hello, I don't know how it is possible but services provided by Rails are different consumed in WPF and Silverlight. When I seek for ****.com/api/wsdl/ (it is Rails SOAP service) WPF generates all the methods, events etc. When I seek for the same URI in Silverlight I have only: [System.CodeDom.Compiler.GeneratedCodeAttribute("System....

public class members seemingly unavailable in VB6 IDE

I've created a .net assembly that includes the data contract for a WCF (win32) service. I then exposed these objects via COM Interop so that the same assembly can be re-used on the client side for calling the WCF service. I've got the following pieces to my project: [wcf service] <====> { [wcf client assembly exposed through COM int...

CommunicationObjectAbortedException during reading large array from server

Hello, I'm receiving such exception during reading array of 40000 items. Is there an idea why does it happen. I've changed send/receive timeout to 30 min. Not helped. System.ServiceModel.CommunicationObjectAbortedException was unhandled by user code Message=The socket connection has been disposed. Source=mscorlib StackTrace: ...

WCF, ASP.NET sharing session when WCF is called from flash

I've followed the advice in various places, including other questions posted on stackoverflow about sharing the session state between a WCF service and an ASP.NET website, but cannot get my specific scenario to work: The website and WCF service are both virtual directories of the same application in IIS 7 and both share an app pool. Th...

Setting SPN on endpointaddress for NetNamedPipe service endpoint

I'm getting the "There was no endpoint listening at net.pipe://localhost" error as described in other places but I cannot seem to find a real answer. This is a great identifier of the problem: http://kennyw.com/indigo/102 When using WCF, Windows authentication is performed through SSPI-Negotiate, which in most cases will select ...

Question on WCF Security in a Client Application

What I'm trying to do is setup a call to a service on another server. So far.. I've created the proxy and got the config information. What I'm having trouble finding is how to set the security. They are using message security and client certificates. here is my app.config file..what I have so far. Any information on setting the sec...

System.ServiceModel.FaultException SQL Error, is it on their end?

So upon a method call to a webservice, I'm getting this error: "System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that ...

Thousand of messages in Event Viewer

I have a web service running in IIS, there are no errors being thrown and everything works great. BUT I notice that there are thousands of Messages in the Event viewer. Every time I send a request to the web service, a few of this messages are added to the Event viewer. Even Type = Information Event ID = 0 Category = None Source = /LM/W...

Disable Type Hinting in WCF JSON Services

I have what should be a relatively simple question that I can't seem to find an answer for. When WCF performs its serialization of objects, it automatically applies Type Hinting. For Json services, this results in an extra field on each complex object called __type. An object defined as: [DataContract] public class SomeObject { [Da...