Reputation: 950
I have an odd quirk in my IIS server. I have an ASP.NET 4.5 application pool that I upload an MVC website onto using FTP publishing in Visual Studio. The odd thing is, when I go and look on the files in the server (i.e., the inetpub folder), some of the files are old, or not there altogether.
For example, I had altered a controller class and added a few views and methods to access them. The views uploaded, but the controller stayed the same. Yet on the site, I was able to access the new views.
I've tagged this with a bunch of different things, as I'm not sure if this is happening somewhere in Visual Studio, or on the server.
Any idea why this happens/what I can do to fix it?
Thanks!
Upvotes: 0
Views: 122
Reputation: 12410
Code files and controllers get compiled into your bin
folder as dlls. The dll is then used by your application.
If you publish or deploy, VS is smart enough to know not to copy these files over.
Upvotes: 1