Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: RE: Problem with File.


Message #1 by "Peter Pedersen" <peter@i...> on Thu, 16 Jan 2003 11:20:26 -0700
Did anyone find a solution to this problem ? I am having the exact same
problem. The problem page is in a subdirectory of the main web
application.

Parser Error Message: Could not load type 'noni.user._default'.
Source Error: 
Line 1:  <%@ Page language="c#" Codebehind="default.aspx.cs"
AutoEventWireup="false" Inherits="noni.user._default" %>
Source File: C:\Inetpub\wwwroot\noni\user\default.aspx    Line: 1 

Any help would be much appreciated!

Thanks,
Peter Pedersen


-----Original Message-----
From: Joey Brenn [mailto:jbrenn@f...] 
Sent: Monday, December 02, 2002 12:22 PM
To: aspx_beginners
Subject: [aspx_beginners] Problem with File.


I have developed this page on my personal machine, then copied it up to
the server (copying just the files needed to run).  I works fine on my
machine but is complaining on the server.
 
Parser Error Message: Could not load type
'PersonalWeb.PolicyAcceptance'.

Source Error:
Line 1:  <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="PolicyAcceptance.aspx.vb"
Inherits="PersonalWeb.PolicyAcceptance"%>
Line 2:  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3:  <HTML>
 
This file was recreated from scratch and works fine on the local
machine.  
 
This page is in another folder underneath the main web and the file is
there, I've even opened up all permissions on file to eliminate
permission problems.
 
The question:  When this file is in a folder below the main web, is the
line "Inherits="PersonalWeb.PolicyAcceptance" correct?  It seems to me
that the Inherits line should be inheriting from a file in the same
folder.  Am I thinking this correctly?
 
Hope this is clear.
 
Thanks,
Joey Brenn




Message #2 by "Rohit Arora" <rohit_arora@i...> on Fri, 17 Jan 2003 14:43:07 +0530
It looks for the codebehind file in bin directory(if not mentioned by src
attribute of page directive)

rohit

-----Original Message-----
From: Peter Pedersen [mailto:peter@i...]
Sent: Thursday, January 16, 2003 11:50 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: Problem with File.


Did anyone find a solution to this problem ? I am having the exact same
problem. The problem page is in a subdirectory of the main web
application.

Parser Error Message: Could not load type 'noni.user._default'.
Source Error:
Line 1:  <%@ Page language="c#" Codebehind="default.aspx.cs"
AutoEventWireup="false" Inherits="noni.user._default" %>
Source File: C:\Inetpub\wwwroot\noni\user\default.aspx    Line: 1

Any help would be much appreciated!

Thanks,
Peter Pedersen


-----Original Message-----
From: Joey Brenn [mailto:jbrenn@f...]
Sent: Monday, December 02, 2002 12:22 PM
To: aspx_beginners
Subject: [aspx_beginners] Problem with File.


I have developed this page on my personal machine, then copied it up to
the server (copying just the files needed to run).  I works fine on my
machine but is complaining on the server.

Parser Error Message: Could not load type
'PersonalWeb.PolicyAcceptance'.

Source Error:
Line 1:  <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="PolicyAcceptance.aspx.vb"
Inherits="PersonalWeb.PolicyAcceptance"%>
Line 2:  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3:  <HTML>

This file was recreated from scratch and works fine on the local
machine.

This page is in another folder underneath the main web and the file is
there, I've even opened up all permissions on file to eliminate
permission problems.

The question:  When this file is in a folder below the main web, is the
line "Inherits="PersonalWeb.PolicyAcceptance" correct?  It seems to me
that the Inherits line should be inheriting from a file in the same
folder.  Am I thinking this correctly?

Hope this is clear.

Thanks,
Joey Brenn






Message #3 by "Peter Pedersen" <pete@n...> on Fri, 17 Jan 2003 11:26:06 -0700
Hmm. I'm not sure exactly what you mean Rohit, but here is what I have
done so far:

I created a web project called "noni". Added some forms to it. They all
work fine. Then I created a sub-folder named "user", and added its own
web.config file and a form. When I try to go to the form within
"noni/user" I am getting the "Could Not Load Type" error you see below.
I re-built the entire solution, just to make sure that it is compiling
my codebehind for the form.  Shouldn't it be able to find the codebehind
if it is compiled into the main dll in the bin folder? A sub-folder
shouldn't need it's own bin folder should it?  Is there some attribute
that I need to add to the page directive to make this work?

Thanks,
Peter


-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...] 
Sent: Friday, January 17, 2003 2:13 AM
To: aspx_beginners
Subject: [aspx_beginners] RE: Problem with File.


It looks for the codebehind file in bin directory(if not mentioned by
src attribute of page directive)

rohit

-----Original Message-----
From: Peter Pedersen [mailto:peter@i...]
Sent: Thursday, January 16, 2003 11:50 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: Problem with File.


Did anyone find a solution to this problem ? I am having the exact same
problem. The problem page is in a subdirectory of the main web
application.

Parser Error Message: Could not load type 'noni.user._default'. Source
Error: Line 1:  <%@ Page language="c#" Codebehind="default.aspx.cs"
AutoEventWireup="false" Inherits="noni.user._default" %>
Source File: C:\Inetpub\wwwroot\noni\user\default.aspx    Line: 1

Any help would be much appreciated!

Thanks,
Peter Pedersen


-----Original Message-----
From: Joey Brenn [mailto:jbrenn@f...]
Sent: Monday, December 02, 2002 12:22 PM
To: aspx_beginners
Subject: [aspx_beginners] Problem with File.


I have developed this page on my personal machine, then copied it up to
the server (copying just the files needed to run).  I works fine on my
machine but is complaining on the server.

Parser Error Message: Could not load type
'PersonalWeb.PolicyAcceptance'.

Source Error:
Line 1:  <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="PolicyAcceptance.aspx.vb"
Inherits="PersonalWeb.PolicyAcceptance"%>
Line 2:  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3:  <HTML>

This file was recreated from scratch and works fine on the local
machine.

This page is in another folder underneath the main web and the file is
there, I've even opened up all permissions on file to eliminate
permission problems.

The question:  When this file is in a folder below the main web, is the
line "Inherits="PersonalWeb.PolicyAcceptance" correct?  It seems to me
that the Inherits line should be inheriting from a file in the same
folder.  Am I thinking this correctly?

Hope this is clear.

Thanks,
Joey Brenn


---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to 



---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to 





  Return to Index