Parser Error.

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.
 
L

Laurent Bugnion

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
 
P

princessjewel62

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" %>
 
L

Laurent Bugnion

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top