开发者

jQuery and WCF service problem

I am creating an application that uses jQuery to make ajax calls to ASP.NET WCF Web Service. Everything works fine most of the time but eventually (about twice per week) the service stops working with the error below. The only solution is to clear the ASP.NET Temporary Files. The problem seems to sta开发者_运维技巧rt by the time the application pool recycles but not on each recycle. Please help as I'm trying to figure this out for weeks now!

WebHost failed to process a request. Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/6957828 Exception: System.ServiceModel.ServiceActivationException: The service '/Chat2/Chat.svc' cannot be activated due to an exception during compilation. The exception message is: Could not load file or assembly 'App_Web_vpupi5wr, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.. ---> System.IO.FileNotFoundException: Could not load file or assembly 'App_Web_vpupi5wr, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.


Are you running the service/webapp in debug mode? If so, can you set the compilation element in your web.config to false?

<compilation debug='false'/>

The KB article that HurnsMobile linked to also mentions setting the batch attribute to false also.

<compilation debug='false' batch='false'/>

Also, if you could provide additional information about your environment (.NET version, IIS version, O/S, etc.), that would be helpful, too.


You will want to open a ticket with Microsoft for an exact answer but they will probably send you the following hotfix - http://support.microsoft.com/default.aspx?scid=kb;EN-US;934839

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜