PDA

Click to See Complete Forum and Search --> : Code behind edit problem


venerable bede
Feb 5th, 2004, 10:13 AM
I copied my site onto a live server and found that I was having trouble with my SMTP mail.

I opened the code behind page of the email page in Notepad (on the server) and commented out a large chunk of code.

When I saved the page and tried to run the site the site ran as normal, as if the changes never occured.

Can someone explain this to me please ?

Thanks in Advance

hellswraith
Feb 5th, 2004, 10:26 AM
Sure, the dll never changed, only the code behind file. You would need to recompile your app so the changes are in the dll, then stick the new dll with the changes into the bin directory over top the old one.

ASP.Net doesn't compile the code on the fly to IL, you do that from the IDE or command line when you select build. The dll that is created is the IL compiled version of all your code. That is what the asp.net worker process uses to run your web app.

venerable bede
Feb 5th, 2004, 10:48 AM
Thanks.

Is there any way to compile the code behind without Visual Studio.net ?

venerable bede
Feb 5th, 2004, 10:49 AM
It just seems a pain having to copy over an entire sites files when I have only changed 1 line of code.