0

I have a dev server, and a live server. I make a change to the code behind on the dev server, and upload the files to the live server, but nothing changes.

I know I'm being dense, but what do I need to do? I've tried restarting the app pool, restarting the website etc but no luck!

If I make changes to the aspx file, this works, but any changes in the cs file and nothing happens.

11
  • what code. Does it live in the App_Code folder, or do you need to compile an assembly? Commented Nov 3, 2010 at 17:41
  • If possible, publish directly to where necessary, or it this is too risky, maybe on your dev server, and then copy it across (same effect, but allows sanity testing and confidence first) Also if doing this be wearing of Web config and other files that might differ between environments. Commented Nov 3, 2010 at 17:43
  • It's just in the virtual directory, the aspx page and cs page are the ones i'm uploading to the new location. Commented Nov 3, 2010 at 17:44
  • How did you get the code live in the first place? Was it by using the Visual Studio publish web site wizard? If so, your code is now compiled into a site dll and therefore uploading .cs changes will not work as the site will be referenced the compiled assembly instead. Commented Nov 3, 2010 at 17:49
  • If I rename the codebehind.cs file on the live server, the page still runs fine?!?!?!1 Commented Nov 3, 2010 at 17:49

1 Answer 1

1

Publish the website in VS, and upload the published folder including the DLL in the bin folder.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.