The following module was built either with optimizations enabled or without debug information

When you find this bug, follow the following steps in sequence:

1>Go to bin folder of you project and remove the dll where you find above error.
2> Browse the project and right click on bin folder and uncheck readonly checkbox. Click OK.
3> Right click on project and click on add reference option. Add the existing project as dependency project.
4> Build web service and test it.

It will resolve your problem. If you find more help send me reply he in comments.

Vijay Modi


About Vijay Modi

Having 12+ years of experience in web application development. Expertise in various domains like E-Commerce, E-Learning, Insurance. I have expertise in web application development, window application development, Performance improvement, bug fixing etc. I have worked on various Microsoft technologies including ASP.Net, MVC, WebApi, WCF, Entity Framework, WPF, Window Application Development, AWS, Azure, AngularJS 2.0 / 1.5.2, .NetCore framework, jQuery. I am believing in quality work and achieving deadlines. Also like to work on new technologies and quick learner.
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

14 Responses to The following module was built either with optimizations enabled or without debug information

  1. Raj says:

    Hello Just right click on solution then change from release mode to debug node thats it u r done

  2. Alok Gupta says:

    Thanx so lot for ur gr8 help !!!

  3. Jerrygp says:

    i think I will share what I have found for me

    In case you have many projects over your solution (Vs 2005)

    if it is a Windows forms Application ??

    if so

    Make sure you do a Ruild ALL

    also remove all reference from your EXE project
    then ADD again all your references to your all other projects that need those DLLs
    in the solution.

    the problem must not be showing anymore

  4. Gianni says:

    Ciao Everybody!
    I’m having the same problem, no previous advices worked for me. Checking out the “enable just my code (managed only)” stop annoying me with the warning messageBox, but still breakpoints wasn’t be hit.
    In my solution I have a web service and just one project that give me the warning; this project DO NOT reference the web service.
    I was wondering on that for a day an thinking on my solution iter I remembered that the project was my last added to solution…mmmm…
    I haven’t solved the problem finally, but I discovered that if I manually rebuild project by project first of all web service, than the problematic project, than other project all works fine! ??? Maybe could help.

  5. Dallas Developer says:

    I am using VS 2005. My solution has one website and two c# class libraries. Solution Rebuild All took care of the problem for me.


  6. taps says:

    hie in my bin folder there is no such errors what else can i do

  7. Pedro says:

    Muchas gracias, solucionó mi problema.

    Un saludo desde España

  8. kuldeep shige says:

    thanx a lot it works fine.

  9. Arpit Khandelwal says:

    Thanks a lot. Worked for me.

  10. Afroblanco says:

    Wow, thanks. You just saved me a ton of time and trouble.

  11. KingSo says:

    Thank you very much for the help. really appreciated

  12. babu says:

    the following module was built either Optimization enabled or without debugging information, i follow the above but ,that problem is not cleared

  13. gaurav says:

    very very helpful

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s