How to get publish to work properly  in Microsoft Visual Studio 2017

Manuel Hidalgo
Manuel Hidalgo used Ask the Experts™
on
I was up and running using Microsoft Visual Studio 2013, and had no problems generating a build or published web application.  I was upgraded to
Microsoft Visual Studio 2017 and now can still do a build successfully, and run a local copy of my application.  However, now when I attempt to
publish, the published version does not work and fails  I noticed in the published code apsx pages, the <% page directive has been corrupted.

Alll aspx. pages have corrupted page declaration. Inherit parameter has gibberish in it, and the codebehind has disappeared.

Any idea on how to fix this issue?  I got a copy of Microsoft Visual Studio 2013 and ran a publish and it was fine.  However, do not have a permanent
licensed copy of 2013 but I now have for 2017 but it won't publish.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Ron MalmsteadInformation Services Manager

Commented:
Once you fix the corrupted pages.  Try the Rebuild option then try Publish
Lmk your results.

Did you import this project and run the upgrade option?

What are the errors you get when you try to publish?
Top Expert 2016

Commented:
Where are you trying to publish to? what are the errors?

Author

Commented:
I have updated Microsoft Visual Studio 2017 to the latest version 15.xx.xx

I am attaching the Publish output comments (nothing of help). Also, an example of a aspx page with the @page
directive corrupted.

I edited page directives for each .aspx and tried a republish to no avail.

thx
Manuel
MS-Visual-Stundio-2017-Publish-error.pdf
I finally figured out the issue.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial