Could someone please help me with this problem that I have in the publication of an asmx web Service developed in vs2015? the server is WS2012R2
I think you are referring to another version of Framework that you probably do not have installed, ensures that version 4.0 is installed and changes the% co_of% to 4.0 in your Web.config:
<compilation targetFramework="4.0" />