Parser Error.

  • Thread starter Thread starter princessjewel62
  • Start date Start date
P

princessjewel62

Hi all,

I am using Visual Web Developer 2005. In the codebehind in my program,
it is written
<%@ Page language="c#" AutoEventWireup="false"
Inherits="pcf_solution_cs.SessionTransfer" %>

But when I tried to run it in the browser, it says Parser Error, that
it cannot load type 'pcf_solution_cs' but that is the name of the class
in the file. Please help me. Your help is greatly appreciated.

Thank you.
 
Hi,

Hi all,

I am using Visual Web Developer 2005. In the codebehind in my program,
it is written
<%@ Page language="c#" AutoEventWireup="false"
Inherits="pcf_solution_cs.SessionTransfer" %>

But when I tried to run it in the browser, it says Parser Error, that
it cannot load type 'pcf_solution_cs' but that is the name of the class
in the file. Please help me. Your help is greatly appreciated.

Thank you.

With the syntax "pcf_solution_cs.SessionTransfer", it means that you
have a namespace named pcf_solution_cs which should contain a class
named SessionTransfer. Is that the case?

If it is, please show your ASPX file and your CS file.

Greetings,
Laurent
 
Hi,
this is the code for my aspx file...

namespace pcf_solution_cs
{
/// <summary>
/// Summary description for SessionTransfer.
/// </summary>
public class SessionTransfer : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
.................................................
}
#endregion
}
}

And this is the error message:

Parser Error Message: Could not load type
'pcf_solution_cs.SessionTransfer'.

Source Error:

Line 1: <%@ Page language="c#" Codebehind="SessionTransfer.aspx.cs"
AutoEventWireup="false" Inherits="pcf_solution_cs.SessionTransfer" %>
 
Hi,

Hi,
this is the code for my aspx file...

That looks OK to me. There are other ways to declare it, but this should
normally work. Can you zip your project files and send them to me (my
email address is valid), and I'll take a look.

HTH,
Laurent
 
Back
Top