Reputation: 3338
as project is in developing state uploaded Files on webserver has not been compiled for easy editing and other reason , when i edit model
and add property
to view
, iis
say that your model has no that because of old compilation files , solution that Tested :
windows\microsoft.net
<compilation batch="false" debug="true" targetFramework="4.5" />
webconfig
to force new compileyet it run old compiled files
Upvotes: 0
Views: 442
Reputation: 18749
Based on the comments, I will add an answer...
You need to actually publish
the application: How to publish a web app. You can publish this locally on your desktop and copy the files onto the server, or you can publish direct to your server.
When you publish the application, the model(s)
get compiled into an assembly
in your bin
folder, so you cant directly modify these files on the fly.
You can chose a setting to allow for views to be updated, but this is very limited.
So, best approach is to set up a publish profile for your DEV server, and make your change, and then re-publish. It will take you less than a minute to get the latest code on the server.
Upvotes: 1