Last post Jun 07, 2010 07:41 AM by Vinija
Jun 07, 2010 03:49 AM|pinoyz|LINK
Hi to all,
I'm using a WCF in my application, this service is included in the page(s) (class is seperated from svc file). I configured the wcf as a ajax enabled(compatibility) and i also used pagemethod to kill the session and cookies.
Unfortunately in our production, I got an error of 'Could not load file or assembly App_web_....'.
To fix my problem, I need to delete the svc file and copy the svc file from my project bin and paste it to the prod...
Of course i need a solid solution for this.
Jun 07, 2010 05:45 AM|Vinija|LINK
Is your class (code behind) file in seperate project?
Does your .svc file ahs CodeBehind attribute in it?
(If so, delete it)
Jun 07, 2010 06:51 AM|pinoyz|LINK
My Class is in seperate project.
<%@ ServiceHost Language="C#" Debug="true" Service="MAXCustomService.CustomService" %>
Jun 07, 2010 07:01 AM|Vinija|LINK
Check the namespace of the service class
Jun 07, 2010 07:18 AM|pinoyz|LINK
Actually, It runs okay last friday (GMT+8) but now i got that error...
My leads test it and got an error in ajax (MAXCustomService is undefine) and checked the service. I got that error.
I resolve the issue when i copy the svc file to my project and paste it to the production.
this is the second time it happened. But i need a solid solution for this :(
Jun 07, 2010 07:41 AM|Vinija|LINK
It could be that whenever you change method signature (Add / remove methods, change parameters. change method names etc.) it may happend.
You need, whenever you deploey the service class'es DLL, to copy the .svc file as well.