App_Code folder....

G

Guest

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
 
K

Ken Cox [Microsoft MVP]

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.
 

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

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top