开发者

Application_Start in WCF Web Services App

开发者 https://www.devze.com 2023-01-24 11:27 出处:网络
The Application_Start method in Global.asax.cs was being called in my WCF web services application when it was running under ASP.NET 2.

The Application_Start method in Global.asax.cs was being called in my WCF web services application when it was running under ASP.NET 2.

It has been recompiled with the .NET 4 framework and it now runs under ASP.NET 4. However, that method is not ever being called.

Anyone know what's开发者_开发问答 up with that?


It works for me. I am using WCF without .svc files in .NET 4.0.

I have seen an oddity that sometimes this requires creating APP_Code folder in the root of your site and copying flbal.asax and global.asax.cs to it. Give it a try.

0

精彩评论

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

关注公众号