服务路由表在IIS7中工作但不在IIS6中工作?
我有一个WCF服务,它使用Global.asax文件来激活我的服务。因此,我在部署框上部署的虚拟目录看起来像
web.config中
Global.asax中
- 包含Services.dll和Services.pdb
Services.dll是我的Service.svc和Service.svc.cs文件的编译位。
如何在IIS6中使用此设置?我的Global.asax看起来像:
public class Global : HttpApplication
{
void Application_Start(object sender, EventArgs e)
{
RegisterRoutes();
}
private void RegisterRoutes()
{
WebServiceHostFactory factory = new WebServiceHostFactory();
RouteTable.Routes.Add(new ServiceRoute("MyService", factory, typeof(MyService)));
}
}
有任何想法吗?这适用于IIS7,我可以导航到http:// server / MyService / ...
没有找到相关结果
已邀请:
1 个回复
晤默报