Menu

 

Thursday, April 21, 2011

Could not resolve mscorlib for target framework '.NETFramework,Version=v4.0'. This can happen if the target framework is not installed

I faced The Below Problem Few Days Back With The follwing Error .

"Could not resolve mscorlib for target framework '.NETFramework,Version=v4.0'. This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted."


OR

Build Failed Without Errror Description

Solution :


As I as Using XP It was MAX_PATH I just Kept the Path below "240".

Means :-

C://MyProject/Folder/Foder..

The path Should be Under "256 Character".


That Solved It.

Hope It Help Somebody.

9 comments:

  1. i dont understand what is "240" or "256 character"

    ReplyDelete
  2. Example :- C://Project/Myproject/serviceRefernce/Myservice/Mysvc.svc

    The complete path is More then 240 char long..
    when I was Using Xp this Sucking error Arrived and it used throw error when u used to Properties page of Project.

    and some time on running solution

    ReplyDelete
  3. Gracias por tu aporte, me resolvió mi problema.

    ReplyDelete
  4. Thanks, it had done the Trick for me.

    ReplyDelete
  5. En serio, parece dificil de creer pero yo tambien resolvi mi problema y si es por el path...

    ReplyDelete
  6. Excelente, resolvió mi problema. esto se debe difundir para evitarle a tantas personas la perdida de tiempo productivo. Gracias por esta solucion.

    ReplyDelete
  7. Many thanks, it's been solved!!!

    ReplyDelete
  8. Thanks a lot. This solution saved me.

    ReplyDelete