I want to change a redirection in my web project. However, when I change the rewrite rule in my web.config file the update is not considered and I still got the old url destination. I tried cleaning the project, but in vain. I think that there's somewhere a version cached of my web.config and I can't figure out how to find it and override it.
            Asked
            
        
        
            Active
            
        
            Viewed 1,864 times
        
    3 Answers
0
            
            
        Restart the application pool in which you are running your ASP.Net application. Simply updating the web.config on the server won't work, as you've already noticed.
 
    
    
        citronas
        
- 19,035
- 27
- 96
- 164
- 
                    I am using IIS Express on local, do you know how can I do that ? – Mehdi Benmoha Jan 20 '16 at 13:09
- 
                    Sorry, I'm not sure about IIS Express. Have a look at http://stackoverflow.com/questions/12590963/can-visual-studio-restart-iis-express-on-new-debugging-session , this may help – citronas Jan 20 '16 at 13:14
0
            
            
        This question is old but relevant.
What solved this problem for me was clearing cache in the web browser
 
    
    
        Sergei F
        
- 15
- 5
0
            
            
        The reason why IIS does not update your ruling is that there is an error in web.config. I've had the same issue, clearing the mistake in web.config did the trick
 
    
    
        Eric
        
- 9,870
- 14
- 66
- 102
