943,972 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1879
  • ASP.NET RSS
Feb 22nd, 2007
0

VB.NET Error

Expand Post »
Using notepad, I created VB.NET code and saved it as a file named Jack.aspx in C:\ASP.NET (the whole path to the file is C:\ASP.NET\Jack.aspx). Then I launched IE, then clicked on File, Open, Browse, C:\ASP.NET\Jack.aspx and I got the following error:

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. Reference to undeclared namespace prefix: 'asp'. Error processing resource 'file:///C:/ASP.NET/Jack.aspx'. Line 10, Positi...
<asp:Label id="lblTest" runat="server" />My Code is shown here as well:<html><script language="VB" runat="server"> Private Sub Page_load() lblTest.Text = "Hello, the Page.Load event occured." End Sub</script><body><form id="Form" runat="server"> <asp:Label id="lblTest" runat="server" /></form></body></html> What is the problem?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
r_jack is offline Offline
18 posts
since Nov 2006
Feb 23rd, 2007
0

Re: VB.NET Error

You can't just open/run an aspx page like that -- it has to go through IIS and the .NET engine.
Did you install .NET Framewrok and set up IIS on your machine?
Reputation Points: 13
Solved Threads: 4
Junior Poster in Training
nikkiH is offline Offline
79 posts
since Dec 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Windows script host and filesystemobject - pls help
Next Thread in ASP.NET Forum Timeline: VB.NET Code





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC