Current location: Hot Scripts Forums » Programming Languages » ASP.NET » Error Occured in a Simple Script .. Need Help!!


Error Occured in a Simple Script .. Need Help!!

Reply
  #1 (permalink)  
Old 02-18-04, 11:31 PM
sensitive sensitive is offline
Banned
 
Join Date: Feb 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Question Error Occured in a Simple Script .. Need Help!!

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
Reply With Quote
  #2 (permalink)  
Old 03-16-04, 11:59 AM
Shane Shane is offline
Coding Addict
 
Join Date: Jun 2003
Location: Maryland, US
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
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.

Quote:
Originally Posted by sensitive
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 Bauer
Microsoft Certified Professional (MCP) - ASP.NET
ASP/ASP.net, C#, VB/VB.NET, PHP, Perl, SQL
Reply With Quote
  #3 (permalink)  
Old 02-23-05, 06:55 AM
pvsunil pvsunil is offline
New Member
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up bin directory

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.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM
Need a simple image with info text script (I can even pay you for this) nezbie Script Requests 2 04-05-04 09:47 AM
simple register script evolutiontheory The Lounge 0 01-27-04 01:00 PM
Need a simple php script jarod Script Requests 1 11-05-03 08:38 AM
Seeking for a simple photo gallery script... Sgrebs PHP 0 10-27-03 02:00 PM


All times are GMT -5. The time now is 02:49 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.