Click here to Skip to main content
15,881,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a strange problem.
Hopefully someone has an easy and very logical explanation on this 

The web based system is a course enrollment system.

An ASP.NET 2.0 site has been moved from Windows 2003 server (IIS) to a new Windows 2012 server (IIS).
After this potation a dynamically generated HTML file is rendered differently on the new 2012 server. A checkbox on 2003 server becomes a text box on the 2012 server.

What I have tried:

We have been investigating the ASP.NET code on both servers and this is identically. But the dynamically generated HTML pop up box is slightly different on the 2012 server. Below I have inserted the HTML code for both versions. It is the ID “6154” that is set (correctly) to type “checkbox” on 2003 server and wrongly to type “text” on 2012 server.

Windows 2003 Server:
====================
<input id="CH6156" type="checkbox" name="CH6156" /><label for="CH6156">


Windows 2012 Server:
====================
Bekræft *<input name="DF6156" type="text" maxlength="1" id="DF6156" class="INPUT" style="width:100px;" />



Because it is dynamically generated I cannot change the HTML file (the pop up box) This pop up box is new for every course and the person must confirm the she has read the “general terms” by setting a check mark in the check box.


We have done a lot of testing.
If the source code in the HTML is changed so it refers to the old 2003 server, a rerun of the Course9999.HTML is rendered correctly.
If the source code in the Course9999.HTML is changed so it refers to the new 2012 server, a rerun of the file now displays a text box.

We have checked that websites on both 2003 server and 2012 server runs .NET Framework 2.0.50727.
The REGESTRY on both servers has been investigated and there is a little difference in how the versions are displayed. I have no access to the servers at the moment so I cannot checkup if it is as simple as a missing NET Framework SP2 on the new server.

I was inspired to dig into this matter by this article https://support.microsoft.com/en-us/kb/318785
Posted
Updated 22-Aug-16 0:59am

1 solution

Obviously, something behave differently on both servers.
The only solution is to use the debugger on both servers to see where the code don't behave the same. You will probably see that there is a point where it don't do the same.

You should learn to use the debugger as soon as possible. Rather than guessing what your code is doing, It is time to see your code executing and ensuring that it does what you expect.

The debugger allow you to follow the execution line by line, inspect variables and you will see that there is a point where it stop doing what you expect.
Debugger - Wikipedia, the free encyclopedia[^]
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[^]
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html[^]
https://www.jetbrains.com/idea/help/debugging-your-first-java-application.html[^]

The debugger is here to show you what your code is doing and your task is to compare with what it should do.
When the code don't do what is expected, you are close to a bug.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900