Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've made a change to the code in my controller but it doesn't seem to be picking up on the website. If I make a change to one of the view aspx pages that is picked up but not the controllers.

I'm using VS 2010
MVC 1
local hosted by VS2010

The things I've tried to change are
- modify a method to return a different string
- add a method and try and call that.

Any suggestion would be appreciated.

Thanks
Posted

Did you rebuild the project before redeploying?
 
Share this answer
 
I did recompile. It looks like VS has made it a web project instead of an MVC project. so I need to change it
 
Share this answer
 
Hi,
Many of the times I am also getting the same. At that time i just delete the publishing folder and redo the publishing.
 
Share this answer
 
I'm no ASP.NET expert - but could this be shadowing? ie. The way you can deploy stuff to a web server while it's still running. Try bouncing IIS and see if that rectifies the problem, if so, you have your cause.

Duh, you're not using IIS. In that case close your local webserver thing - although I'm not sure that supports shadowing.
 
Share this answer
 
v2
Hi,

I fixed this 7 months ago but to be honest with you can't remember what it was that I did to fix it.
 
Share this answer
 
Hi,

I fixed this about 7 months ago but to be honest with you can't remember what it was that I did to fix it.

Thank you for your suggested answers.
 
Share this answer
 
Comments
ANSAL P R 23-Dec-10 20:24pm    
Thanks for your response

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900