无法将元数据公开为外部 [英] unable to expose meta data to as external

查看:75
本文介绍了无法将元数据公开为外部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法将元数据公开为外部
我收到500个错误无法找到文件".
我的操作系统是带有Service Pack 3和iis 5.1的XP.
如果我想将其公开到另一台机器上,则无法正常工作.
我听说iis 5.1仅支持一个网站,请清除我是否有任何误解.

也欢迎使用wcf或asp.net解决方案!

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!

推荐答案

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();
}


尝试在WCF中执行类似的操作....


Try doing something like this in WCF....


这篇关于无法将元数据公开为外部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆