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.

34 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. Thanks a lot. This solution saved me.

    ReplyDelete
  8. If path is too long we get this error....Thanks for the solution..It worked for me

    ReplyDelete
  9. Problema Resuelto...Muchas Gracias..!

    ReplyDelete
  10. so i have to uninstall the dot.net framework and then install it in a minimized path.

    ReplyDelete
  11. so how do i reduce the path....anyone plz help???????? pliiiiiz

    ReplyDelete
    Replies
    1. The dot net code which is facing the error, that should be moved to physical location with shorter path. E.g. 'C:\Code', this is where your whole code resides. Try to rebuild it then

      Delete
  12. really, amazing solution! thank u so much

    ReplyDelete
  13. I'M NEW TO VISUAL STUDIO.. SHOW ME HOW TO DO THIS PLZZZ.

    ReplyDelete
  14. I've saved the project path shortly, but still not solve, my os is win7. Pls help...

    ReplyDelete

  15. This blog is very useful for me and thanks for sharing
    .Net Online Training

    ReplyDelete
  16. Solved, thanks for the solution. Gracias por la solución exito a todos.

    ReplyDelete
  17. mil mil mil gracias, dure investigando este error por meses.. gracias buen blog... uno de los mejores en este tema.

    ReplyDelete
  18. This is the exact information I am been searching for, Thanks for sharing the required infos with the clear update and required points.


    Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery



    ReplyDelete
  19. on which we want to apply this `C://MyProject/Folder/Foder..`
    on command prompt or we should follow the path on my VB 2010
    i did`nt understand .
    my system is using Windows 10 and my visual studio is VISUAL BASIC 2010 EXPRESS
    Will it work on my system
    i`m a student and i need it

    ReplyDelete
  20. can you explain , i did`nt understand . were to apply , were the options are

    ReplyDelete
  21. Slots Casino in MD | DRMCD
    Slots Casino is Pennsylvania's favorite destination for fun, 대구광역 출장안마 adventure, and gaming 나주 출장마사지 fun! Find your favorite slot machines & table 인천광역 출장마사지 games. Slots Casino has one of 통영 출장마사지 the newest 경상남도 출장마사지

    ReplyDelete