![]() |
App_Code folder....
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 |
Re: App_Code folder....
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" <PhillipLad@discussions.microsoft.com> wrote in message news:9B0A0070-F776-417B-B788-B9DE4171D3D2@microsoft.com... > 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 |
| All times are GMT. The time now is 09:36 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.