WCF configuration files

A

Andrew Falanga

Hi,

I'm making a class library that must make use of a WCF client. I've
made the code and configuration files for the WCF client using svcutil
and put them into the library project. This works well (i.e. it's
building) but I'm wondering where are these files that svcutil pumped
out supposed to be located? How does the WCF client know to call
these files to know where to connect and so forth?

This is a concern because, obviously, this being a class library I'm
not sure from what directory it will run.

Thanks,
Andy
 
M

Mr. Arnold

Andrew Falanga said:
Hi,

I'm making a class library that must make use of a WCF client. I've
made the code and configuration files for the WCF client using svcutil
and put them into the library project. This works well (i.e. it's
building) but I'm wondering where are these files that svcutil pumped
out supposed to be located? How does the WCF client know to call
these files to know where to connect and so forth?

This is a concern because, obviously, this being a class library I'm
not sure from what directory it will run.

If the client is an ASP.NET Web solution, the WCF configuration entries must
go in the root Web.config, for the project.

If it's an exe that is the client, then the WCF configuration entries must
be placed in the app.config, which becomes exename.config located in a
location with the exe, for the project.

If it's a DLL that is the client, then it too must have WCF configuration
entries in app.config, which is placed in a Guid.tmp.config in the location
of the DLL that uses it, for the project.


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4265 (20090721) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top