0
我有一个WCF服务使用Global.asax文件来激活我的服务。所以,在我的部署箱我部署的虚拟目录看起来象服务路由表在IIS7中工作,但不在IIS6中工作?
的web.config 的Global.asax - 包含Services.dll和Services.pdb
的Services.dll是我服务的编译代码。 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/ ...