views:

1727

answers:

6

I have a ASP.net 2.0 app and I have made some changes the the source file ( cs files ). I uploaded the changes with the belief that it would auto-recompile. I also have the compiled dll in MY_APP/bin. I checked it and noticed that it did not recompile. Please understand I am new to this.

A: 

Where did you upload the changes? Source control, web server?

Did you run a build first? Local or remotely?

pete blair
A: 

In VS menu you have Build -> Rebuild Solution

zappan
+5  A: 

my #1 way to do this, add white space to the top of the web config file, after the xml declaration tag.

It forces the node to re-cache and recompile. We even have a page deep in the admin called Flush.aspx that does it for us.

DevelopingChris
+1  A: 

It's always best to just actually run a build after making .cs changes.

Where are you running it? Is this for debugging or production?

Sara Chipps
+2  A: 

I use a similar method to ChanChan, but instead of whitespace I put a comment in the web.config to indicate when/why the config was edited.

Chuck
A: 

Editing the web.config file for my .net 1.1 application, the code is not being re-compiled. I also do not have a solution file. I am editing on the production server, making just minor changes. Is there any way to make the application recompile?

Libert