Publishing site in IIS gives debug error

1

I have a rather strange problem. I'm developing a MVC site in VS2013, I have a IIS site set up for my project.

As soon as I publish my site to IIS , then when I launch the debugging site (VS) I get a IIS error Visual Studio (can not find the .dll of Web.Helpers ). As soon as I deleted everything in the IIS website folder I can run debug without any problem.

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

    
asked by anonymous 11.05.2017 / 13:39

1 answer

0

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

    
11.05.2017 / 14:07