Publishing site on IIS gives debug error

Asked

Viewed 99 times

1

I have a little strange problem. I’m developing a website MVC on VS2013, I have a website IIS configured for my project.

So I make Publish of my website for the IIS, then when I launch the debug site (in VS) I get an error (500) from IIS in the Visual Studio (can’t find the . dll’s Web.Helpers). As soon as I deleted everything in the folder of IIS I can run in debug without any problem.

Has anyone experienced anything like this? How can I resolve this conflict to have a compiled version of the site running on IIS, but at the same time can make changes to the project and test them in debug?

  • How are you doing the Publish thing?

  • @jbueno click on the right side of the mouse on top of my project -> Publish (for a folder configured for a website on my IIS)

1 answer

0

Your code uses a DLL that does not exist on the server. Find the Web reference.Helpers in the project, open the properties (select the reference and press F4) and mark the option to always copy when publishing/doing deploy. So you can debug on the server after the next post.

  • I already have this option checked. debug is not supposed to use only what is in the project, ignoring the posts I do?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.