AnthonyJ20
Programmer
Hello, I hope someone can point me in the right direction. I'm in the process of learning how to use ASP.Net. Currently I have a web application that's all ASP. I'd like to port it over to .Net but I'm have some problems. For example, I'm getting this error when I try to view a .Net page that I created.
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'WebApplication1.WebForm1'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <html>
Source File: c:\inetpub\ Line: 1
Here is the web form I made using Visual Studio.Net.
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.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.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema content=" </head>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
Name: <input title="text" runat="server">
<p> Profession:
<Select runat="server">
<Option>Database Admin</Option>
<Option>Billing Analyst</Option>
<Option>Financial Analyst</Option>
</select>
<input type="submit" value="Save" runat="server">
</form>
</body>
</html>
It works perfectly when I preview it in Visual Studio. What do I need to do to make this work in the directory?
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'WebApplication1.WebForm1'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <html>
Source File: c:\inetpub\ Line: 1
Here is the web form I made using Visual Studio.Net.
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.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.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema content=" </head>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
Name: <input title="text" runat="server">
<p> Profession:
<Select runat="server">
<Option>Database Admin</Option>
<Option>Billing Analyst</Option>
<Option>Financial Analyst</Option>
</select>
<input type="submit" value="Save" runat="server">
</form>
</body>
</html>
It works perfectly when I preview it in Visual Studio. What do I need to do to make this work in the directory?