I have a test version of my program that uses a class library that points to a server at an IP address. The production server has a different IP address. I copied the orginal program into a new folder to test in production. But it still points to the class library in the other folder. How can I change this?
Arep
Loading
Sam HobbsPosted Sep 2, 2011, 6:32 PM
For what it is worth, in a larger organization you might not be able to access the production data from a program that has not been implemented. In larger organizations you would have to at least implement into a semi-production ("release"?) library. Organizations such as banks where data security is important would require that there be a record of what source code was used corresponding with anything done to the data.
A RepaskyPosted Sep 2, 2011, 4:34 PM
I finally have time to answer your last statements. Other things have come up.
When I said the production version of the program, I did not mean that the program had been in production, I meant that it was going against the production database tables and not a copy of the database on another server.
As far as the program it is still in development (not a production program). The only thing that changed in the class library was the IP address, userid, & password. So it was all in Debug configuration still using actual source code. I thought I could just copy everything, code and all, into a new folder and change the code, but the problem was that it was still pointing at the old folder for the Class library. This program is being written to do research on info in the DB, so it will probably never be a production program.
I had tried a rebuild and it did not fix the problem. The Lead Programmer did know that. He had to go to a meeting and said to figure it out. So I posted to this forum. When he came back he told me what to try and my other post explain that. Now whether he did not know what to do before his meeting, I do not know. He does play games to see if I can figure out something so that it will be a better learning experience.
Thanks for trying to help.
arep
Sam HobbsPosted Aug 31, 2011, 1:46 PM
The lead programmer should have been able to tell you that you need to do a rebuild. Perhaps he did not know the answer and if so then he should have said so.
There should be a policy for how to perform maintenance. The policy should be documented. It should document how to obtain a copy of an application for maintenance purposes and how to implement (promote) the application back to production. If the policy is not clearly documented then you can suggest that that be done. The likely response is that they are too busy fighting fires to take the time to prevent fires. Of course, they won't say that using those words but it is essentially what they are likely to say using different words. So you can volunteer to do it. You could suggest that a committee be created for the purpose; management likes committees.
A RepaskyPosted Aug 31, 2011, 10:28 AM
I had copied the original code and all executables, the whole folder into a new folder. This included the class library and all source code. I hope this answers the first post from Sam. So in the new folder I was trying to just change the code to point at the new IP address and new Userid and password. But on the Open it aborted with a comm error, because the class library did not have the changes compiled, because it was still pointing to the original folder.
So here is what I did. In the new folder I deleted every executable in the Debug folder. Then I right clicked the Solution and did a Clean Solution and a Rebuild Solution. Now everything points to the correct folder.
Thanks,
Arep
Mahesh ChandPosted Aug 30, 2011, 11:29 PM
Sam HobbsPosted Aug 30, 2011, 5:48 PM
Also please define "points to a server". When I was young, I was taught that it is impolite to point.