PC Review


Reply
Thread Tools Rate Thread

Can I use subdomain to do this?

 
 
Nick
Guest
Posts: n/a
 
      20th Sep 2005
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.

 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      20th Sep 2005
"Nick" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> 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


 
Reply With Quote
 
Nick
Guest
Posts: n/a
 
      20th Sep 2005
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
ASP/ASP.NET page that reacts a special way to items coming from a particular subdomain (programmatically testing subdomain?) Ken Fine Microsoft ASP .NET 3 29th Feb 2008 05:35 AM
Subdomain? perspolis Microsoft ASP .NET 1 16th Oct 2005 11:51 AM
subdomain Curt Shaffer Microsoft Windows 2000 Networking 1 1st Sep 2004 07:45 PM
subdomain peter Microsoft Windows 2000 DNS 1 31st Jan 2004 11:18 PM
Subdomain Erhan Microsoft Windows 2000 DNS 1 8th Sep 2003 12:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:49 PM.