Debugging is easier with line numbers. The default setting for vi and vim is for line numbers in the document to be hidden.
Setting Line Numbers within the Editor
You can turn on line numbers by typing
The line numbers can also be turned off by typing
Making Line Numbers Default in vi
You need to edit .vimrc or .bashrc (which is normally found in the root of the userâ€™s folders). Add the following command:
vi will start with line numbers every time a document is opened.
Jump to a Line When Opening vi
If you know which line you would like to edit in vi, you can go right to the line when you open the document in vi from the shell.
$ vi +linenumber file.php
i.e. vi +8 file.php will open the document and place the cursor in line 8.
If the IIS web server is installed after the .NET Framework was installed, ASP.NET web pages will not work. This issue will also occur if the web server is reinstalled. The reason for this is that the ASP.NET file extensions are not being associated with the IIS mappings.
How To Fix
This can be fixed with the following procedure:
- Go to the Windows command prompt by opening the Start menu, select Run, type cmd and press OK.
- When your in the command prompt, type
Then register Aspnet_isapi.dll with the following command:
Example for Registering .NET 2.0/3.0/3.5
If you running .NET 3.0 or 3.5, you need to use the above example for .NET 2.0. This version of .NET is installed with 3.0/3.5. The newest versions do not have the aspnet_isapi.dll files in their folders. This isnâ€™t a problem because .NET 3.0/3.5 are simply v2.0 with extensions. More appropriates version numbers for the latest Frameworks should be 2.1 and 2.2 since they donâ€™t add a great deal to v2.0.