Wednesday, October 18, 2006

IIS Problem

When try to access an ASPX page on IIS, I got the following error yesterday. i spent few hours before finding a proper solution on this.

problem description (copied from net)

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


A name was started with an invalid character. Error processing resource 'http://localhost/IssueTracker/Default.aspx'. Line...

<%@ Page Language="vb" AutoEventWireup="false" Inherits="ASPNET.StarterKit.IssueTracker._Default" CodeFile="Default.aspx">


register the dotnet framework again. be sure of the specific version.
you will be getting it in C:\Sysroot(it could be windows\system32) all the installed .net versions are listed out there. go the correct folder and execute the "aspnet_regiis -i" from command prompt. it worked for me.

\aspnet_regiis -i

some other info on this blog

Friday, October 06, 2006

Java magic

Today a collegue of me was having problem in running a program which prints plain hello on the console.

It was complaining time and again "NoSuchMethodError:main"...

we thought its problem with the JDK in that machine.

But actual culprit is my collegue only, what she did is that she wrote a program with invalid main method (with no arguments) and placed it in JDK\bin directory. she compiled in that location itself so JDK\bin has the Hello.class file too.

Now she is trying to create in a different directory and with proper main method. but she is getting the error.

When i gave java -verbose Hello
it is showing me that the class is loaded from JDK\bin, that was the mistake.

i removed the Hello.class file from JDK\bin and it is now referring the class file that is created in the current directory.


JVM gives preference to the JDK\bin directory for locating class files.