Jump to content

asp.net sample program error..


sifia
 Share

Recommended Posts

<%@ Page language="VB"%><script runat="server">public sub page_load(x as object , e as EventArgs)Response.Write("<font color=blue size=7>")Response.Write("welcome to ASP.Net")end sub</script><html></html>this is the first sample program which i tried after installing IIS server. But iam getting this errorThe 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/sifia/welcome.aspx'. Line 1, Pos...<%@ Page language="VB"%>-^anybody can tell me what is the mistake.

Link to comment
Share on other sites

Well, there is a certain order you need to install things in for them to work correctly.Ideally you would install IIS then install ASP.Net. If you installed ASP.Net first or Windows just decided to mess with you :) then running those commands will register ASP.Net with IIS so that IIS knows what to do with .aspx pages.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...