Ran into an issue today:
Service 'N1.SN1.SN2.YourService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.
Inherently, I thought that there should be no difference between this:
namespace N1.SN1.SN2
{
class YourService {}
}
and this:
namespace N1
{
namespace SN1
{
namespace SN2
{
class YourService {}
}
}
}
I seem to not be exactly correct on that score. While either will compile with no error, using the first option I get the error posted at the top. I use the second, and all is hunky-dory with the world. Go figure. Hopefully this will help some others that run into a similar issue.
Anonymous comments are disabled
About Jonathan Bates
Jonathan Bates is involved in the local development community, once even serving time as the President of the Jacksonville Developers User Group.
He has had a long and storied path on the way to I.T. work. At one point, Jonathan had a near Neo-Luddite position about computers, believing them at worst to be the means to humanity's eventual slavery and at best tools for general evil. After landing a job powered by such advanced technologies as Windows 3.11 for Workgroups and MS Access, Jonathan began to change his opinion on computers. He began to believe that they might be for more than just improving the display and sound qualities on his Laserdisc movies. In time, he came to see that computers were nothing more than tools, not much different then a hammer (though not as good to drive nails with).
Jonathan Bates is an industry-certified and proven developer and trainer, facilitating the transfer of knowledge from conceptual client request to delivered and implemented solution. Jonathan enjoys sharing his knowledge and understanding about development principals with like-minded people. You can generally find him enjoying good company discussing his personal Unified Theory and how programming can be used to describe it. And if you can't find him, drop him a line with a time and place and he'll find you.
Contact him at jonathan.bates@batener.org.