Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am unable to expose meta data to as external
I'm getting 500 errors "unable to find file".
My operating system is XP with service pack 3 and iis 5.1.
If I want to expose the same into another machine it was not working.
I have heard that iis 5.1 supports only the one website, please clear if there is any misunderstanding on my side .

The solution for wcf or asp.net are also welcome!
Posted
Updated 22-Nov-10 21:23pm
v2

1 solution

C#
using (ServiceHost sh = new ServiceHost(typeof(OpService)))
{
ServiceMetadataBehavior smb = new ServiceMetadataBehavior();
smb.HttpGetEnabled = true;
sh.Description.Behaviors.Add(smb);
sh.Open();
Console.WriteLine("Service running...");
Console.ReadLine();
sh.Close();
}

Try doing something like this in WCF....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900