c# - Does ASP.Net MVC4 Cache References? -


i ran issue today making me pull hair out.

i've created wcf service simple exposes 2 operations , no data contracts. wcf service sits on top of business logic layer. inside business logic layer dll exposes contracts (just plain interfaces).

i've created 2 test clients service. 1 console client , other mvc4 application. both reference same endpoints , both reference, through project reference, contract dll.

now, fine until change contract adding or removing method, or changing signature of existing method. @ point mvc4 app blows , throws on place. keep in mind i'm not changing wcf contract, internal contracts.

the reason inside of business logic layer initializing automapper profiles via static constructor. inside static constructor assemblies of current domain , iterate through them looking objects implement iprofile. it's when start trying types out of 1 of dlls reference contracts dll fatal exception: system.typeloadexception.

now, console client behaves fine. again, referencing same dll's through project reference. can change contracts dll day long , it's happy lark, mvc4 blows chunks. if go , make interface before mvc4 happy.

i noticed path assembly failing load in temporary asp.net files location. blasted entire directory , still no luck.

i can supply code, might better if gave dependency graph. there's 5k lines of code in bll.

thanks in advance.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -