Can not build an ASMX service for the second time

To reproduce:

Open visual studio and create a new project - RemObjects Mercury, ASP.Net Classic Web Service Application:

Press Next and Create. The new project is loaded.
Click on Build, build Webservice:

After the build fails (because of some errors in the template, already gave Marc the details), try to do this again. You can’t because the menus are gone:

Logged as bugs://E25651.

bugs://E25651 was closed as fixed.

For existing projects, you will need to manually fix the .elements file, replacing __VSVERSION__ in the import with the appropriate version number (eg 16 or 17)

<Import Project=“$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v__VSVERSION__.0\WebApplications\Microsoft.WebApplication.targets” />


<Import Project=“$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets” />
1 Like

Changed the elements file and the problem is gone. :+1:

1 Like