Hey all,
I'm running into some wierd wcf errors that happen randomly:
- I got asp.net 4.0 web site, with one "FooService.svc" that inherits some service class (compiled in different project).
- I'm using windows forms as a client to talk to my FooService.svc
- All works well until the client starts getting "Cant activate service" exception
- If i browse my FooService.svc with IE i get something like:
[FileNotFoundException: Could not load file or assembly 'App_Web_ynlv0b1k, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
- if i browse other aspx pages, everything works fine.
What i think is happening (no clue):
- asp.net/app pool for some reason inits recompile/recycle of .svc?!
- the compiler for some reason fails to make "App_Web_yn1v0b1k.dll" (in the case i posted up)
- asp.net tries to use/reference the non-existing dll - then responses exception
To fix the problem i either have to restart iis, or make change in web.config to init re-compile again.
I googled a lot and found other users with same trouble, but no solutions that worked.
Anyone else had something similar?