Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2006

Tip: Looking for answers? Try searching our database.

App_Code folder....

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PhillipLad - 30 Jun 2006 17:28 GMT
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] - 30 Jun 2006 17:58 GMT
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.

> Hello,
>
[quoted text clipped - 14 lines]
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.