Hi all.
I'm trying to achieve the following:
whenever a call to service is performed I want to be able to identify the client.
I thought about getting the calling assembly name by iterating over stack trace
but I failed to get the client assembly name.
Sample code:
private List<System.Reflection.Assembly> GetCallingAssemblies()
...
Hi,
consider a WCF service, which is heavily used and behaves normally. But then is stopps responding. In the sevice level message trace you can see the outgoing message on the client, but no incoming message on the server. On transport level theres a incoming message and then nothing. After 60 seconds the client throws a TimeoutExcepti...
Hi
IIS6
-- I have a server on my network which have a network name called Test_Server. It is connected to ISA proxy.
-- I have a server a domain name called Live_Server having the IP Live_IP. It is not connected to any proxy. or suppose to be.
-- off course I open all firewall ports
--I have a WCF REST service, I use HTTPS to conn...
Hi , I am trying to develop a WSIT client for a WCF Web service. I am currently stuck with a issue for more than 4 days and could not find a solution. I am writing a WSIT client for a WCF web service which requires a mutual certificate authentication. i received the .pfx file from the service provider which i imported to the java trustst...
I have the following code:
public partial class MyServiceClient : System.ServiceModel.ClientBase<...
if (m_MyClient == null)
m_MyClient = new MyServiceClient
("BasicHttpBinding_IMyService", remoteAddress);
WriteOutput("Successfully connected to service");
My question is how do i know that my client actually connected to ...
I maintain a program that sends messages between users. The clients connect to a WCF-service that is hosted in IIS 7.0 on my domainserver. Up to now I successfully used basicHttpBinding for this, without any configuration. Now, I want to change to wsHttpBinding because this should encrypt the transport of the messages. The server has a c...
I have an idea, but I need help implementing it.
WCF does not support delegates in its contracts.
Instead it has a cumbersome callback contracts mechanism, and I'm looking for a way to overcome this limitation.
I thought about using a IDataContractSurrogate to replace each delegate in the contract with a token that will be serialized t...
Hello there, I am making a small report application for my company as specified in title. I am not experienced in n-tier application design, but I tried it. there are 3 tiers:
(Database) -> WCF data service -> Business Rules (client side) -> WPF UI
WCF data service: (data access objects, and data services)
The two above are at the sa...
"Not this again" I hear you say. Yeah, I know. But this one is different... I think.
The scenario:
I have a Windows service (running as SYSTEM) that consumes a remote WCF service. The machine sits behind an ISA proxy (no domain, and no proxy username/pwd) and I have added the proxy to my app.config. Here it is:
<system.net>
<defaultP...
Hi
We are developing an Silverlight with Wcf business application. We are using Wcf DataContract and DataMember.
We are setting DataMember at all fields and DataContract(IsReference=true) on all classes. Can we somehow set the compiler to automatically add DataMember and DataContract onbuild so we can skip to add DataMember and DataCon...
All,
My typical approach for a medium sized WCF service would be something like:
Define the interface using WCF data contracts and service operations. The data contracts would be POCO DTOs with no CRUD or domain logic.
Model the domain using fully featured business objects.
Provide some mechanism to go from DTO to BO and vice versa (...
Hi,
Is it possible to run custom code when the silverlight client polls everytime to the server to keep the connection alive. My application is a implementation of the comet style polling duplex communication which is available from silverlight3.
I found that it sends the following Soap message on every poll.
<s:Envelope xmlns:s="http:...
In my RESTful services layer, any exceptions that bubble up to me are caught as Fault Exceptions. Within that FaultException, there's a custom XML message that contains <errorNumber>, <errorCode> and a <message>. I re-package the exception as a WebFaultException so I can set the HttpStatusCode for the response header to 400, 401, 404, et...
I am using the polling duplex model for my silverlight app and wcf communication. The wcf service pushed data to the silverlight app.
While the app runs perfectly in my local environment and local iis (xp, iis5.0), it has a very unpredictable and abrupt behavior when i deploy it on my test server on IIs 7.
The default for the 'ServerPo...
From a little bit of reading around, it is my understanding that the only way to detect that a client has connected to my service is through writing my own code. I am using a Singleton service. I would like to display a message every time a client connects to my service that client x with ip xxx has connected. There is no built-in event ...
When attempting to connect/communicate with my service i have to wait for almost exactly 20 seconds each time before the exception is fired. Since this all gonna be running on a local network, I would like decrease that timeout period to 5 seconds? I tried decreasing the receiveTimeout on my client, but it didn't work. I looked all over ...
I have made a very simple Asp.net web site with a WCF service - "Person.svc" - that runs fine when hosted on Asp.Net development server(visual web developer 2010), but if I host on Mono's XSP 2 and access some parse error is thrown. Can WCF services live inside a XSP Web site?
...
I am encountering an issue trying to route my WCF client requests through Fiddler. I have searched the web high and low, and found only two references to Fiddler having problems when WCF services are configured to listen on IPv4, but IPv6 is enabled. However, while my issue is similar, it does not seem to be my problem.
I am encounterin...
What is the best way to pass data from one .NET application to another at run-time?
Basically I need to transfer a 10-100 kilobytes of data in a few minutes from one app to another (locally) and get response for this action.
Ideally - ability to sign on events in another app, and ability to call methods of classes in another app.
Than...
I am at a loss... not sure exactly why this is happening. I have gone through at least 50 pages in Google and scoured StackOverflow for this answer. When I run this code I keep getting the error message:
"There was a an error while trying to deserialize parameter http://tempuri.org/:message. The InnerException message was 'There was ...