473,407 Members | 2,546 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,407 software developers and data experts.

Can I use subdomain to do this?

hi,
I have two asp.net project, and one is the main project, the other one
is accessorial project, like a tool for the main project. I am planning
to find a webhost provider and put the main project there. But can I
put the other project there too? I would hope it work in this way....
http://www.mydomain.com -> my main project
http://www.mydomain.com/tool -> point to the other project,
But on my machine, current the file structure is like this:
wwwroot/mainproject/bin
wwwroot/mainproject/web.config
wwwroot/mainproject/......

wwwroot/secondproject/bin
wwwroot/secondproject/web.config
wwwroot/secondproject/......

They have their own web.config files.
Can I do this with one account on web host provider? Becuase they only
give me one root folder, I only can have one bin folder, one web.config
file. Is this right?

Thanks.

Nov 19 '05 #1
2 1251
"Nick" <ni*******@yahoo.com.cn> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
I have two asp.net project, and one is the main project, the other one
is accessorial project, like a tool for the main project. I am planning
to find a webhost provider and put the main project there. But can I
put the other project there too? I would hope it work in this way....
http://www.mydomain.com -> my main project
http://www.mydomain.com/tool -> point to the other project,
But on my machine, current the file structure is like this:
wwwroot/mainproject/bin
wwwroot/mainproject/web.config
wwwroot/mainproject/......

wwwroot/secondproject/bin
wwwroot/secondproject/web.config
wwwroot/secondproject/......

They have their own web.config files. Can I do this with one account on web host provider? Becuase they only
give me one root folder, I only can have one bin folder, one web.config
file. Is this right?


Assuming you're using Visual Studio.NET, I think the easiest thing to do
would be to do the following:

1) create a new folder called wwwroot/mainproject/tool

2) add all the files from wwwroot/secondproject into
wwwroot/mainproject/tool

3) add any appSettings etc from the subproject's web.config into the main
project's web.config
Nov 19 '05 #2
Yes, thanks Mark.
I tried yesterday, and IIS only allow one web.config file for one
virtual directory. And also, I think it only allow one bin folder. So I
have to put the dll to the main project's bin folder too.
Thanks.

Nov 19 '05 #3

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

Similar topics

0
by: Leon | last post by:
How do I point a sub-domain to a sub-directory or .aspx page of my site using asp.net? I'm using a shared hosting service, that does not offer subdoman forwarding. however, you can write your...
2
by: Bill Borg | last post by:
Hello, I have a couple web services that I use across my apps. My isp supports exposing them either via subdomain (e.g. services.mydomain.com) or subfolder (e.g. mydomain.com/services). Are...
1
by: perspolis | last post by:
Hi If I want to create subdomain for my site dynamicaly how can I do that with ASP.NET? or is it possib;e to create subdomain with IIS?? thanks
2
by: flip79 | last post by:
Hello and sorry for my english, I'm italian... I manage a site with a normal address like: www.mysite.com I'm using a cookie to store nicks of my users, with a code like this: ----...
1
by: thomas | last post by:
Hello all, It seems like subdomain forwarding prevents ASP.Net session state from working correctly. Example: two websites http://www.jgphotographers.com/test and...
0
by: Greg | last post by:
Is it possible for authentication using asp.net membership to persist from a site to a subdomain? The scenario I want to provide is: User browses to the page somesite.com and logs in. User...
12
by: Tina | last post by:
Our company domain, say, wombat.com needs to create several subdomains: support, training, and purchase are three of the subdomains needed. So when someone browses to //training.wombat.com they...
3
by: a2rodger | last post by:
I am using the following function and parse_url() to attempt to grab the subdomain from my sites url function selfURL() { $s = empty($_SERVER) ? '' : ($_SERVER == "on") ? "s" : ""; $protocol =...
0
by: devilsjunk | last post by:
Hello Everybody, In my web application I have created an interface where, if any user register then a subdomain will be created with the user name of the user link this manner E.G. :-...
1
by: Josh | last post by:
I have a question about subdomains. I would like my website to have subdomains that essentially show my regular main website, except that the subdomain passes as a variable on all pages so that I...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.