PDA

View Full Version : Error Occured in a Simple Script .. Need Help!!


sensitive
02-19-04, 12:31 AM
Hi!!

I got stucked by the code written below. Is there anyone who could help me out from it??

--------------------- Code Start ------------------------------

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="RegistrationForm.aspx.vb" Inherits="UserRegistrationApp.RegistrationForm"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>RegistrationForm</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="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post">
<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 328px; POSITION: absolute; TOP: 32px" cellSpacing="1"
cellPadding="1" width="300" border="1">
<TR>
<TD align="left" colSpan="3"><STRONG><U><FONT face="Verdana" size="4">Registration Form</FONT></U></STRONG></TD>
</TR>
<TR>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>
<TR>
<TD align="right" colSpan="3"><INPUT type="submit" value="Submit">&nbsp;&nbsp;&nbsp;<INPUT type="reset" value="Reset"></TD>
</TR>
</TABLE>
</form>
</body>
</HTML>

--------------------- Code End ------------------------------


The Above code generates an error message while execution. Kindly anybody let me know why do is this happening??

-------------------------- Error Message --------------------
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 'UserRegistrationApp.Global'.

Source Error:


Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="UserRegistrationApp.Global" %>



Source File: c:\inetpub\wwwroot\UserRegistrationApp\global.asax Line: 1

-------------------------- End Error --------------------

Regards,
F.Ahmed

Shane
03-16-04, 12:59 PM
Have you compiled your application?

The error is coming from the global.asax.vb file, not your RegistrationForm. Open up your global.asax.vb file (the code-behind file for the global.asax file) and make sure it's class name is Global and it's in the UserRegistrationApp namespace.

Hi!!

I got stucked by the code written below. Is there anyone who could help me out from it??

--------------------- Code Start ------------------------------

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="RegistrationForm.aspx.vb" Inherits="UserRegistrationApp.RegistrationForm"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>RegistrationForm</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="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post">
<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 328px; POSITION: absolute; TOP: 32px" cellSpacing="1"
cellPadding="1" width="300" border="1">
<TR>
<TD align="left" colSpan="3"><STRONG><U><FONT face="Verdana" size="4">Registration Form</FONT></U></STRONG></TD>
</TR>
<TR>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>
<TR>
<TD align="right" colSpan="3"><INPUT type="submit" value="Submit">&nbsp;&nbsp;&nbsp;<INPUT type="reset" value="Reset"></TD>
</TR>
</TABLE>
</form>
</body>
</HTML>

--------------------- Code End ------------------------------


The Above code generates an error message while execution. Kindly anybody let me know why do is this happening??

-------------------------- Error Message --------------------
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 'UserRegistrationApp.Global'.

Source Error:


Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="UserRegistrationApp.Global" %>



Source File: c:\inetpub\wwwroot\UserRegistrationApp\global.asax Line: 1

-------------------------- End Error --------------------

Regards,
F.Ahmed

pvsunil
02-23-05, 07:55 AM
hi,

Make sure that you have placed the bin directory and the dll inside the bin directory wherever the current page is loading. it will defenitely work if you upload the dll under bin directory.

cheers :)

sunil.