How to create app with two web sites

M

Magnus Blomberg

Hello!

I have a properly working web server with one web site and several
applications like
www.mydomain.com
www.mydomain.com/app1
www.mydomain.com/app2

Now I have created a new web site as www.sub.mydomain.com using host header
in IIS.
Later it will be called www.myseconddomain.com, but that's a later problem.

I can browse to www.sub.mydomain.com but right now it's empty.
Now I want to create a new application from within Visual Studio, but I
can't figure out how.

If adding an application to the default web site, I just write
http://localhost/newapp, but I can't do this when adding to the other web.

I also can't figure out how to add the application as the root application
as www.sub.mydomain.com. An application name is required.

Please help!!!
Regards Magnus
 
M

Magnus Blomberg

Well, actually it didn't work though I couldn't add a new app to the localhost either, so my problem was bigger than expected.
Well, I solved by stopping all web sites except "default web site" so now I can add a new app from within VS.
Started my other web site, and the problem appeared again. I couldn't add an app to any of my sites.

So I have to stop all web sites but one, to add an app. Opening existing app does work anyhow.

Any idea? Are there a way to tell VS or IIS, which of the web that are the real default web site?

Regards Magnus
Hello!

Yes, that could be an idea.

Thank U

/Magnus
 
T

Tonix

I made a try. When start to create new ASP.NET web application
project, you are prompted to specify the location such as
"http://localhost/webapplication1". I have tried different locations
with different host IPs, and they worked. So it's little bit confusing
why you cant. What's the error message you got?

Regards,
Tonix
 

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

Top