I have a WCF Service project in Visual Studio 2008 that contains about 12 methods, some of which return primitive types like bool or string. I also have a Visual Studio Unit Test Project that references the published WCF Service. The Test Project compiles successfully when all the return types are primitive.
If I add a new method to the...
Background:
I have a WCF service deployed on my local machine that in turns connects to the SQL Server 2005 database.
To consume the service, I have a client application that dynamically creates the service client to consume the methods exposed in wcf service.
Configuration:
OS: Windows XP
IIS : 5.1
Problem
When I run client FIRST...
What I found out was if you throw a FaultException from a new worker thread, it doesnt percolate up to the client but just crashes WCF.
Any solutions???
example:
var thread = new Thread(new ThreadStart(
delegate
{
new Killbot().KillAllHumans(); // Throws a FaultException
...
I have a Windows Service that hosts three different duplex WCF channels. Clients can connect to have updates sent to them via their callback contract. Essentially there are three pub-sub channels.
This service takes a long time to bounce when clients are connected. The call to ServiceHost.Close takes 10 seconds to return (so the serv...
I have a process, let's call it Process A, that is hosting a simple WCF service exposed though a basic Http binding. If I spin up that process I can then access the service from another process, Process B, with no problems.
However, my required use case isn't so simple. What I need to do is access the Service from a DLL that is hostin...
I'm new to WCF and am overwhelmed by the options available for securing my WCF service. What is the security model best suited for this situation?
Server:
Must have access to the context of a particular publicly available ASP.Net application, running on IIS 6. However, the the service should only be available to a single client on the...
Hello there,
I am working on a WCF Service(implemented with Fluent NH), and it is hosted as a Windows Service.
I am using a console application to test calling service methods.
Now, when I set connection string in hibernate.cfg.xml as
<property name="connection.connection_string">Server=dev;Initial Catalog=DBTest;Integrated Security...
I have an app that uses EF (i've seen the 'EF has a bug and StackOverflows' posts thanks). To test my stuff I generally wrap a simple console app around my code, run, rinse repeat till I get it right... So I was pretty surprised to see a stackoverflow when I moved my code to IIS.
Right now I get this problem on IIS 7.5 (windows 7 from ...
Hi guys,
Basically, I have a silverlight 2 client (hence my use of SLSvcutil) that needs to access a WCF service.
Anybody know how I can prevent SLSvcutil.exe from decorating OperationContracts with FaultContractAttributes?
I'm running SLSvcUtil against a WCF service who's operations are all decorated by Faultcontracts.
Unfortunately...
When I invoke a remote WCF service I get the following timeout:
The request channel timed out while waiting for a reply after 00:00:59.2810338. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.
Plea...
Hi.
I am having problems accessing methods in my WCF class library and am wondering if somebody could explain why?
I have a web project that has a single DLL file - WebAPILibrary.DLL in its /bin folder.
The SVC files in my Web Site are pointing to the corresponding contracts contained in the DLL file. So, for example, under the names...
Hi there,
I have some C# code, the server app, that access a WCF service, thE client app, using a WCF service hosted in the client app
WheN the server connects to the client it uses a DuplexChannelFactory and passed in an instance of a class to be used for the client to talk back to the server
The client is a singleton i.e.
[Service...
I have a fairly straightforward WCF service that performs one-way file synchronization for a bunch of smart clients. I've noticed that when there's a network or service interruption during a call, the client stops being able to communicate with the server until the entire application is restarted.
The service runs with BasicHttpBinding...
I've developed a self-hosted WCF service using basicHttpBinding, and all works fine when the client is on the local machine. But when I try and connect from any machine on the network, it just times out, giving me the following error:
There was an error downloading 'http://192.168.0.59:8888/DannyService?wsdl'.
Unable to connect to the r...
Hello. I'm rewriting an LOB application whose architecture is like this:
Silverlight && Windows Mobile -> WCF
-> Entity Framework -> Database.
The mobile app was supposed to be able to do certain things as the silverlight app. What benefits would I get from using RIA Services here? Whats the advantage and disadvantage of RIA Serv...
Hey all,
I have a problem but first i want to know if im working on the best solution.
I am making an application that will sit on hundreds of client machines and send data to/retreive data from a server. The server will get that data and store/process it.
I want the client apps to be as lightweight as possible so i want the server to...
Basically my requirement is:
WCF Service Application Hosted on IIS 7.0 with Partial Trust
Endpoint exposed with BasicHttpBinding
Would like to enable basic Authentication (UserName / Password)
Would like to use ASP.NET membership for User Authentication
I don't want to setup SSL
I have seen some tutorials but they are talking about f...
Hi,
We are 2 WCF service A) hosted on IIS and B) hosted as Windows service.
We are using WSHttp binding
When i am calling B from A i am receiving the below error
To prevent the service from aborting
idle sessions prematurely increase the
Receive timeout on the service
endpoint's binding
any idea???
...
enter code hereHi All,
I have a simple windows service application that connects to a WCF service. The windows service is deployed on our Development Application Server, and the WCF service onto our DEV Web Server. The service is setup to run under the appropriate service account (we have a couple of other services that also communicate...
Hello there,
I have two Services called TemplateService, TemplateReportService (both defined in one WCF Service Library) to be exposed to the client application.
How can I host these two services under one Windows Service?
Please guide.
Thank you!
...