开发者

Allow debugging with WCF fileless activation in .NET 4.0

I have been testing out the new WCF fileless activation stuff in .net 4 that allows you to use config rather than having a physical svc file.

The relevant part of my web.config looks like this:

<serviceHostingEnvironment>
      <serviceActivations>开发者_运维技巧;
        <add relativeAddress="Service1.svc" service="WcfService1.Service1" factory="WcfService1.UnityServiceHostFactory" />
      </serviceActivations>
    </serviceHostingEnvironment>

This runs ok but if I add any breakpoints, they do not get hit. When using svc files, they have debug="true" in the markup but I do not know how to allow this when doing it through config.

Any ideas?


Oops. It seems as though I was mistaken. After being called on to something else for a while, I have revisited this code and it appears to be working normally. The debug flag in normal svc files doesn't actual do anything.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜