473,396 Members | 1,693 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,396 software developers and data experts.

Testing Without A Sub-Folder

Hi all,

I have created an ASP.NET application and would like to test it within a
subfolder on my main site (i.e. www.site.com/test).

In my code I have many references to root (i.e. "~/About/about.aspx"). Now
when running via the sub-folder, I get lots of errors saying it cannot find
the correct files as obviously they arent in root.

Is there a way (possibly via the web.config) to tell my application to use
~/test/ as my root folder? Or something similar.

Thanks for your help,

Kind regards
Taz
Nov 30 '06 #1
3 851
Configure the test directory as an IIS application.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Tarun Mistry" <no****@nospam.comwrote in message news:%2****************@TK2MSFTNGP06.phx.gbl...
Hi all,

I have created an ASP.NET application and would like to test it within a subfolder on my main site
(i.e. www.site.com/test).

In my code I have many references to root (i.e. "~/About/about.aspx"). Now when running via the
sub-folder, I get lots of errors saying it cannot find the correct files as obviously they arent
in root.

Is there a way (possibly via the web.config) to tell my application to use ~/test/ as my root
folder? Or something similar.

Thanks for your help,

Kind regards
Taz

Nov 30 '06 #2
Hi Juan,

im on shared hosting, so Im not sure if this is possible. Is there another
way?

Kind Regards
Taz

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:Ow**************@TK2MSFTNGP03.phx.gbl...
Configure the test directory as an IIS application.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Tarun Mistry" <no****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Hi all,

I have created an ASP.NET application and would like to test it within a
subfolder on my main site (i.e. www.site.com/test).

In my code I have many references to root (i.e. "~/About/about.aspx").
Now when running via the sub-folder, I get lots of errors saying it
cannot find the correct files as obviously they arent in root.

Is there a way (possibly via the web.config) to tell my application to
use ~/test/ as my root folder? Or something similar.

Thanks for your help,

Kind regards
Taz


Nov 30 '06 #3
re:
im on shared hosting, so Im not sure if this is possible.
If your ISP doesn't allow you to create IIS Applications...get another ISP.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Tarun Mistry" <no****@nospam.comwrote in message news:Oy**************@TK2MSFTNGP05.phx.gbl...
Hi Juan,
im on shared hosting, so Im not sure if this is possible. Is there another way?
Kind Regards
Taz
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:Ow**************@TK2MSFTNGP03.phx.gbl...
>Configure the test directory as an IIS application.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Tarun Mistry" <no****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>>Hi all,

I have created an ASP.NET application and would like to test it within a subfolder on my main
site (i.e. www.site.com/test).

In my code I have many references to root (i.e. "~/About/about.aspx"). Now when running via the
sub-folder, I get lots of errors saying it cannot find the correct files as obviously they arent
in root.

Is there a way (possibly via the web.config) to tell my application to use ~/test/ as my root
folder? Or something similar.

Thanks for your help,

Kind regards
Taz



Nov 30 '06 #4

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

Similar topics

7
by: Filips Benoit | last post by:
Hi, TBL_CONTACT_PERSON CNTP_ID (auto) CNTP_LAST_NAME (required = yes) CNTP_FUNCTION (required = no) CNTP_..... (all required = no) FRM_CONTACT_PERSON_ADD_NEW Property DATA ENTRY = YES
4
by: David | last post by:
Hi list. Do test-driven development or behaviour-driven development advocate how to do higher-level testing than unit testing? types of testing: unit integration system
0
by: Matthew Fitzgibbons | last post by:
I'm by no means a testing expert, but I'll take a crack at it. Casey McGinty wrote: I've never run into this. Rule of thumb: always separate software from hardware. Write mock classes or...
4
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I am familiar with unit testing but have to implement in a large solution of 100 projects - my concern is Adding Unit test will bloat the solution - taking more time to get all code from...
6
by: yusufjammy | last post by:
Hi i am newbie in visual basic ? How to automatically write in text box without keyboard with visual basic.net .. And what is .net(dotnet) ?
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.