Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: namespace problem


Message #1 by "Brian Dimarucot" <adimarucot@s...> on Wed, 10 Apr 2002 12:58:32
I have two projects.. user & user_business in one solution.
In the user project, i have all my web applications and
aspx pages.. In the user_business project, i have all my c#
classes....

Heres my problem. When I try to call one of the classes
in my user_business project from my aspx.cs page, i end
up receivin an error that says "namespace name user_business
could not be found" I already have a reference in my user project
to my user_business project. I have already declared all namespace
correctly. What do you think is the problem? Please Please.
Thanks in advance.
Message #2 by "Lauser, John" <LauserJ@h...> on Wed, 10 Apr 2002 09:57:10 -0400
In the C# project's properties, make sure it is building to your
wwwroot/bin dir. By default it builds to a bin dir of the directory the
project is in.

John

-----Original Message-----
From: Brian Dimarucot [mailto:adimarucot@s...]
Sent: Wednesday, April 10, 2002 08:59
To: ASP+
Subject: [aspx] namespace problem


I have two projects.. user & user_business in one solution.
In the user project, i have all my web applications and
aspx pages.. In the user_business project, i have all my c#
classes....

Heres my problem. When I try to call one of the classes
in my user_business project from my aspx.cs page, i end
up receivin an error that says "namespace name user_business
could not be found" I already have a reference in my user project
to my user_business project. I have already declared all namespace
correctly. What do you think is the problem? Please Please.
Thanks in advance.
Message #3 by "Minh T. Nguyen" <nguyentriminh@y...> on Wed, 10 Apr 2002 10:10:08 -0700
Brian,

	I assume you have the "using user_business;" statement at the
top of your .aspx.cs file? Maybe if you show us the code where you try
to call your class and how you declare it in your user_business
namespace, we can pinpoin the problem.

Minh.

-----Original Message-----
From: Brian Dimarucot [mailto:adimarucot@s...] 
Sent: Wednesday, April 10, 2002 12:59 PM
To: ASP+
Subject: [aspx] namespace problem


I have two projects.. user & user_business in one solution.
In the user project, i have all my web applications and
aspx pages.. In the user_business project, i have all my c#
classes....

Heres my problem. When I try to call one of the classes
in my user_business project from my aspx.cs page, i end
up receivin an error that says "namespace name user_business
could not be found" I already have a reference in my user project
to my user_business project. I have already declared all namespace
correctly. What do you think is the problem? Please Please.
Thanks in advance.

Message #4 by ADimarucot@s... on Thu, 11 Apr 2002 07:02:16 +0800

Minh,

I think I got all the syntax right.. Anyway heres the code in my aspx.cs page that calls the
ManpowerRqPrintRqProc class in user_business project.. What do you think?

   user_business.ManpowerRqPrintRqProc ManpowerRqPrintRP = new user_business.ManpowerRqPrintRqProc();
   XmlDocument xdoc = ManpowerRqPrintRP.processRequest(userColl);

Brian





"Minh T. Nguyen" <nguyentriminh@y...> on 04/10/2002 01:10:08 PM

Please respond to "ASP+" <aspx@p...>

To:   "ASP+" <aspx@p...>
cc:

Subject:  [aspx] RE: namespace problem


Brian,

     I assume you have the "using user_business;" statement at the
top of your .aspx.cs file? Maybe if you show us the code where you try
to call your class and how you declare it in your user_business
namespace, we can pinpoin the problem.

Minh.

-----Original Message-----
From: Brian Dimarucot [mailto:adimarucot@s...]
Sent: Wednesday, April 10, 2002 12:59 PM
To: ASP+
Subject: [aspx] namespace problem


I have two projects.. user & user_business in one solution.
In the user project, i have all my web applications and
aspx pages.. In the user_business project, i have all my c#
classes....

Heres my problem. When I try to call one of the classes
in my user_business project from my aspx.cs page, i end
up receivin an error that says "namespace name user_business
could not be found" I already have a reference in my user project
to my user_business project. I have already declared all namespace
correctly. What do you think is the problem? Please Please.
Thanks in advance.








Message #5 by "Minh T. Nguyen" <nguyentriminh@y...> on Thu, 11 Apr 2002 00:53:34 -0700
Brian,

	Do you have the "using user_business;" statement at the top of
your aspx.cs file? Also, did you make a reference to C# DLL file?

Minh.

-----Original Message-----
From: ADimarucot@s... [mailto:ADimarucot@s...] 
Sent: Wednesday, April 10, 2002 4:02 PM
To: ASP+
Subject: [aspx] RE: namespace problem




Minh,

I think I got all the syntax right.. Anyway heres the code in my aspx.cs
page that calls the
ManpowerRqPrintRqProc class in user_business project.. What do you
think?

   user_business.ManpowerRqPrintRqProc ManpowerRqPrintRP = new
user_business.ManpowerRqPrintRqProc();
   XmlDocument xdoc = ManpowerRqPrintRP.processRequest(userColl);

Brian


  Return to Index