App_Code folder....

Discussion in 'ASP .Net' started by =?Utf-8?B?UGhpbGxpcExhZA==?=, Jun 30, 2006.

  1. Hello,

    I am using Visual Web Developer Express, and I am new at using it. I have
    built an application where default.aspx.cs references a method in
    Utilities.cs. I have put Utilities.cs in the App_Code folder. It runs fine
    in the development environment, but when I upload it to my host which
    supports ASP 2.0, I get the following error....

    CS0103: The name 'Utilities' does not exist in the current context

    If I put the method in default.aspx.cs, it works fine, but I thought I could
    have external classes if I wanted, and I thought that the reference to
    anything in the App_Code folder was automatic. Do I need some type of
    explicit reference? Does anyone know how I can fix this?

    Thanks
     
    =?Utf-8?B?UGhpbGxpcExhZA==?=, Jun 30, 2006
    #1
    1. Advertising

  2. Are you able to confirm that the site is actually running under ASP.NET 2.0?
    If not, it wouldn't recognize the special App_Code folder.


    "PhillipLad" <> wrote in message
    news:...
    > Hello,
    >
    > I am using Visual Web Developer Express, and I am new at using it. I have
    > built an application where default.aspx.cs references a method in
    > Utilities.cs. I have put Utilities.cs in the App_Code folder. It runs
    > fine
    > in the development environment, but when I upload it to my host which
    > supports ASP 2.0, I get the following error....
    >
    > CS0103: The name 'Utilities' does not exist in the current context
    >
    > If I put the method in default.aspx.cs, it works fine, but I thought I
    > could
    > have external classes if I wanted, and I thought that the reference to
    > anything in the App_Code folder was automatic. Do I need some type of
    > explicit reference? Does anyone know how I can fix this?
    >
    > Thanks
     
    Ken Cox [Microsoft MVP], Jun 30, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Rilling

    Question about purpose of App_Code folder.

    Peter Rilling, Jul 15, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    459
    Juan T. Llibre
    Jul 15, 2005
  2. Brian Henry
    Replies:
    0
    Views:
    517
    Brian Henry
    Nov 7, 2005
  3. Jay Douglas
    Replies:
    5
    Views:
    5,681
    Scott Allen
    Dec 1, 2005
  4. Umut Tezduyar
    Replies:
    8
    Views:
    9,193
    Brock Allen
    Dec 22, 2005
  5. Craig
    Replies:
    0
    Views:
    446
    Craig
    Dec 31, 2005
Loading...

Share This Page