Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Move the App_Code directory

Thread Tools

Move the App_Code directory

Posts: n/a
I am new to .net and am stumped as to how to use "include" files in my
asp application.

Currently I have created classes in the app_code directory that are
shared between various aspx pages and this works fine. The problem,
however, is - I am trying to include aspx functionality as part of a
pre-existing classic asp 3.0 website. I.e., in iis I have old website
as normal - within this application their is a folder which contains
the new .net2 part of the program. Again, this works fine but the
problem is when the server looks for code in the app_code directory it
is looking in the root of the website rather than my specified aspx
directory. Is their any way of specifying where the app_config folder
is read from? Otherwise it makes deployment and testing a real pain.
I know that at some point I will probably need to compile the site and
this may remove these problems? But in the meantime could anyone shed
any light on this issue. Any help or pointers in the right direction
would be appreciated.

Many thanks in advance for any response.

Reply With Quote
Posts: n/a
....I figured it out in the end. By creating a virtual directory in iis
that contained the pages when called from classic asp the
virtual directory acts as a root for the .net application and hence the
problem is now solved. App_data is found from the virtual directory
NOT the root of the directory and hence the files can now be seen.
Hope this helps someone else.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
The directory /App_Code is not allowed because the application is precompiled Steve Franks ASP .Net 11 06-10-2010 08:46 PM
How to move directory ( with contents) to another directory. mike Java 2 03-15-2008 04:06 AM
Directory.CreateDirectory followed by Directory.Move Matt MacDonald ASP .Net 0 01-30-2008 07:34 PM
Reference Dataset in App_code directory HIK ASP .Net 1 11-10-2005 09:05 AM
Adding a dataset to vs2005 app_code directory ASP .Net 4 10-13-2005 12:45 PM