[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webservices

Trying to create my first ASP.Net application

Tom

8/13/2003 4:17:00 AM

Hi

I am trying to create my first ASP.Net application.

I have done a full reinstall of .Net and followed the instructions in the
readme on the .Net CD and I have IIS running.

I have created a new solution called Test02 and it automatically has a
WebForm called WebForm01.


I added no controls to the WebForm but immediately hit F5 to compile it and
got the following message:

Error while trying to run project: Unable to start debugging on the web
server. Server side-error occurred on sending debug HTTP request.


If I do a debug.Start Without Debugging then it brings up a web page which
says:

The page cannot be displayed
Error Type:
Active Server Pages, ASP 0221 (0x80004005)
The specified 'Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="Test02.WebForm1"' option is unknown
or invalid.
/Test02/WebForm1.aspx, line 1


The HTML looks like this:

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb"
Inherits="Test02.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET
7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5...
</head>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
</form>
</body>
</html>
For some reason the first line of HTML is in yellow. If I remove this
first line then it compiles fine and brings up a blank web page but then
when I start adding controls they just appear as text in the top-left corner
of the compiled web page rather than controls in the places that I put them.

Can anyone tell me what I am doing wrong or have neglected to do.

Thanks

Tom