Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

Web page issue

We run Visual Studios.NET coding on a test machine and it compiles with no errors and runs all of our modifications without issues but when we upload the new coding to our Intranet site and someone does a search on a particular field on an asp page it goes to the IIS webpage of the test machine and not the desired webpage of the IIS Intranet server??  We upload code all the time and this is not may files that have changed and never had this issue.  We have debugged the new coding, tried breakpoints, step throughs but we are not finding where it is going to the webpage of the creation machine.  Any assistance offered would be greatly appreciated.  
0
regsamp
Asked:
regsamp
  • 3
  • 3
  • 2
  • +1
5 Solutions
 
FocusynCommented:
You apparently have a hard-coded reference to the development machine.  Try opening the source code back up in Visual Studio and use the find and replace feature - search for the test machine name and make sure to select "all files in solution" as your search parameter.
0
 
WelkinMazeCommented:
Also it is possible that the IP of the test machine is hardcoded.
0
 
Leo EikelmanDirector, IT and Business DevelopmentCommented:
Unless you have a service locator built in that finds the MACHINE that you are running on you are probably still targetting the development machine.  Check the link and see if

http://developmentmachine/URL 

is changed to

http://newmachine/URL

Leo
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
regsampAuthor Commented:
Did a complete search and found one reference in some old coding to a link to the development machine but it is not part of any file or folder that gets uploaded and should be causing this but maybe will have to upload and then check that file and line of coding to test.  
0
 
WelkinMazeCommented:
Maybe there is some old piece of code left on the productive machine that spoils the whole thing...
0
 
FocusynCommented:
Also check file references, i.e. included dll's etc.  If it only happens when using certain search fields, I'd guess it's somewhere in the search routine, probably in a select case or other dynamic call. I agree with searching by IP as well.  Good point also about possible IIS or DNS/host setting on prod machine.
0
 
regsampAuthor Commented:
Check the coding and it seems okay but noticed that everything works well until the Bin folder is uploaded and then it points to the development machine URL.  
0
 
WelkinMazeCommented:
so maybe the url is encoded in the binary files so the search does not find it. Maybe you can search in the sources that produce the binary files. Also to look for the IP address of the dev machine, maybe it is hardcoded.
0
 
regsampAuthor Commented:
I searched and found one instance of it being redirected to the URL in the dll and had to recompile the solution, upload and it worked.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now