473,394 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Move the App_Code directory

I2
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.

Dec 20 '05 #1
1 1441
I2
....I figured it out in the end. By creating a virtual directory in iis
that contained the asp.net 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.

Dec 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: paul | last post by:
Hi, Im trying to add a dataset to the app_code directory using vs2005 \ SQL2005 beta 2. When I run through the wizard I select the option to auto create new Stored Procedures (Select, update,...
1
by: HIK | last post by:
I am trying to write a class which has a function that loads a dataset, and performs and xslt tranformtion on the dataset and returns the resulting string. In asp.net 1.1 I was able to do most...
3
by: johnrlewis | last post by:
I need to dynamically create an instance of a class that is in the /App_Code directory. I do not know the name of the class at design-time. It is provided to me in the form of a string. If I use...
3
by: GS | last post by:
I noticed that when you right click App_Code directory there is an option to create dataset which creates .xsd file in that directory. I can see that I can design tables and links there but I have no...
0
by: abunet | last post by:
I have a very large web project converted from ASP 1.1 to 2.0 I my App_Code folder have two subfolders: Orders and Customers (in the real environment I have more folders) inside each folder there...
2
by: jd1978 | last post by:
I don't have Team System, but I'd like to be able to unit test the code in my app_code directory using nunit, or something else. Is there any way to do this? I can't add a reference from another...
3
by: bissatch | last post by:
Hi, I have been using the following tutorials: http://quickstarts.asp.net/QuickStartv20/aspnet/doc/pages/code.aspx It would appear that it is instructing me to simply to create an App_Code...
2
by: =?Utf-8?B?Z2Y=?= | last post by:
I have a project which was upgraded from 1.1. When I try to add the app_code folder, it does not display when I select the Add ASP.Net Folder menu option. Any ideas as to get the folder created?...
5
by: Randy | last post by:
I've converted a VS 2003 project to VS 2005. I have one utility class that it put in the APP_CODE directory. When I try and compile I'm getting this error... Error 1 The type or namespace name...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.