Can I use subdomain to do this?

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top