Hi,
I was reading an exellent article about how to use dependency injection with WCF Services.
Unfortunately, it only shows how to instantiate and register the Windsor Container in a global.asax file. I'm looking to use WAS for my hosting so global.asax will not get called. Does anyone know where I should register the container? Do I...
Hi,
I am having this problem.
I have integrated structuremap with wcf like it is described here:
http://www.lostechies.com/blogs/jimmy_bogard/archive/2008/07/29/integrating-structuremap-with-wcf.aspx
the problem is that I am having classes which have constructor parameters like userId and applicationId that I must pass in order structu...
I have a WCF over SSL service that works no problem. I am able to add a reference to this service to my Silverlight Project. Everything is hosted in IIS7. When My app runs I get the following error
An error occurred while trying to make a request to URI 'https://wikittybam/BurgerCounter.svc'. This could be due to attempting to acc...
I'm making a very simple WCF (C#, .NET 4.0) licensing program that automatically emails a user a key they can use to activate the software they just bought.
My idea is my website would call a function provided by my service which would generate a key and then send the key the email provided. Later my software would also call that servic...
Hi,
I recently started using a custom ServiceHostFactory because I want to use dependency injection with WCF. Both my client and service are being run from VS2010 on my local machine and the service is using the ASP.NET Development Server. Why am I having this problem now? I've had success with wsHttpSecurity in the past, having both...
I'm using DTOs between my business and presentation layers and have some mapping code in the service that converts DTO <-> domain object. I'm currently allowing the PL to partially populate a DTO and send it to an Update service, which updates only the changed properties on the associated DO.
What's the usual way of dealing with non-nul...
I'd like my WCF service to return an xml file that has been signed.
I found documentation that shows how to sign an XmlDocument on msdn, but since a WCF function can't return an XmlDocument I'm not sure if the following would work (similar to thisquestion)
public XmlElement GetXml() {
var doc = new XmlDocument();
// add...
i created a WCf service with a method that can receive GET requests using WebGET attribute, i want the same method to receive Soap calls too (that when the programmer does a Service reference to the WCF, he will be able to call the method).
my interface is:
[ServiceContract]
public interface IService1
{
[OperationContract]
[Web...
Hi,
I am getting an error when i try to add a service reference of a WCF service. Error details is below. My web service is hosted on a different server and my client is on different server. When i run the service directly from IE i can see the service but adding it in .net web application i get error. Please advise
There was an err...
Hello,
I am trying to host WCF serviec in managed Windows Service. Basically i have 1 solution CustomersWCFLibrary which contains 3 Projects.
1) CustomersWCFLibrary :-
This is my app.config :-
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="Customers...
Hello,
I am new to WCF and I am trying to create a Windows Phone 7 app which calls a self hosted WCF service. I have created WCF service hosted in a console app. I am unable to call the service from Windows 7 app running in emulator, but I am able to call it from another client console application running on the same machine the WCF ser...
We’re considering using WIF for authenticating our users, so I’ve started to gather some information on how to do this the right way. Mainly how we should create the STS. I’ve had a hard time finding some information about our scenario where we have a “main” service that will be used by clients both internal and external.
Internal clien...
Hi there
I'm working on a distributed app with a server and a client, where the server exposes services via WCF. The server uses the Entity Framework, and its various methods return EntityObjects.
In the client, I have no references to the server. So in the client, the classes are wholly generated proxies.
I have a delete method in th...
WCF supports several different protocols for communicating. My WCF services are deployed on the same machine only. I just wanted to know whether TCP is more effecient than HTTP or should i go with HTTP?
...
Hi,
we are hosting a WCF service inside IIS 6. A ServiceHostFactory creates the ServiceHost when the first request to a service appears. In the OnOpening() Method of the ServiceHost, we load some data into a cache implemented as a static property.
Since loading the data takes about 1 minute we do not want the "first user of the day" t...
Hi,
I am trying to create a zip file and save it using DotNetZip library.
But for some reason i get a "Access to the path is denied" error when i try to save it. Code4 is below
Dim zipFile As New ZipFile()
zipFile.CompressionLevel = Ionic.Zlib.CompressionLevel.BestCompression
zipFile.AddFile(filePath)
Dim tempFilePath As String = "abc...
Imagine a duplex WCF service that contains a list of subscribers. At some point the service sends data to all subscribers, and some of them may immediately call into the service again. The ConcurrencyMode of the service is Single, so this call fails with an exception.
I would like to avoid that exception and found two possible solutions...
I'm currently building an application that has two parts, the user front end and the administration backend. The front end is a ASP.NET MVC application and the backend is a silverlight application. I started the project by creating a silverlight business application called Administration and two projects got added, the silverlight app ...
Using .net 4.0 , IIS 7.4 Windows Server 2008 R2
I have an asp.net application that sits between WCF web services and routes the requests according to some rules.
The iis error page setting is set to 'Detailed errors for local requests and custom ....'
the asp.net routing service calls the WCF service using HttWebRequest object.
I am ...
I have a relatively simple use case which is failing. Consider the following code:
[OperationBehavior(TransactionScopeRequired = true)]
public IEnumerable<StatusRecord> ReadActive(int contactID, bool isActive)
{
var result = from n in ORM.Default.Table<StatusRecord>()
where n.lng_contact_id == contactID && n.dte_effec...