Last post Jul 30, 2009 10:36 AM by baruchb1
Jul 29, 2009 02:09 PM|baruchb1|LINK
I have inherited a Website from previous developers. The production server source code contains modules that do not exist on test server (most likely left overs no longer needed in production but still accessible by visitors). I want to be able to run production
code on the test server so I can identify production errors I may receive from items not on the test source code. I copied all production code to my test server (to a directory like 'mySiteLive', to distinguish from 'mySiteTest' I already have on test server),
replaced web.config and the .bin folder of 'mySiteLive' with the ones from 'mySiteTest', loaded in VS2008 and try to run. It gives me a million errors the more prominent of which: 'Make sure that the class defined in this code file matches the 'inherits' attribute,
and that it extends the correct base class (e.g. Page or UserControl)...'. These modules match exactly what I have in the 'mySiteTest', where it runs with no problems. My questions are: 1. Does anyone knows why these errors and how to resolve them? 2. Is there
anything else I need to do to run a copy of Production code on the Test Server? Thanks so much for any help.
Jul 29, 2009 04:06 PM|ScottR27|LINK
Are you using the same version of .Net on both sites?
Jul 30, 2009 09:03 AM|baruchb1|LINK
Same IIS (6.0) same .Net (2.0).
Jul 30, 2009 09:48 AMfirstname.lastname@example.org|LINK
Configured in a separate app pool? Everything else identical between systems?
Jul 30, 2009 10:36 AM|baruchb1|LINK
This is pretty much the only web site running on production so it is not in its own app pool, however, to clarify my initial post, problem I am facing is the production code does not compile on the test server although the test code does. My question is
why would I get compilation errors compiling the production code on the test server for the same modules that test code (on same server with identical code) compiles fine? Am I missing something?