Using IIS

  • Thread starter Thread starter Peter Morris [Droopy eyes software]
  • Start date Start date
P

Peter Morris [Droopy eyes software]

My VS2005 currently uses that embedded webserver and I am happy to keep it
this way.

However, an app I am currently developing requires the use of a HTTPHandler.
So I'd like to know how to set just this one project to use IIS.


Thanks

Pete
 
I dont have an environment in front of me but in solutions explorer in vs,
if you look at the properties of the project theres a section in there (web
I think it is) that allows you to choose between the default VS dev server,
or IIS

Regards

John Timney (MVP)
 
Hi John

The only setting I see there that I think may be the one is "Start an
external application", but I have no idea what to set it to or what working
dir / parameters etc to use.

Pete
 
re:
I'd like to know how to set just this one project to use IIS.

Hi, Peter.

To specify the Web server for a Web site, open your local website and,
in the Solution Explorer, right-click the name of the Web site for which you
want to specify a Web server, and then click Property Pages.

In the Property Pages dialog box, click the Start Options tab.
Under Server, click Use custom server.

In the Base URL box, type the URL that Visual Web Developer
should start when running the current Web site. You can use localhost.
You can also use localhost/subdirectory

From that point on, the VS.NET IDE will not use the internal web server,
but will use IIS to open your pages, i.e., if you are working on default.aspx,
it will be opened as : http://localhost/default.aspx and if you're working in
a subdirectory, it will open http://localhost/subdirectory/default.aspx





Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
 
re:
Ah right. My options are different for some reason, any idea why?

No. They aren't different.

You got as far as :
In the Property Pages dialog box, click the Start Options tab.

That is what your image shows.

Now, you have to continue :

1. Under Server, click the "Use custom server" radio button.

That will activate the "Base URL" box
(it stays grayed out until you select "use custom server")

2. In the Base URL box, type the URL that Visual Web Developer
should start when running the current Web site. You can use http://localhost/.
You can also use http://localhost/subdirectory/ if you're working in a subdirectory.

Of course, you *do* need to create a virtual directory in IIS
which points to the directory where your files are located in.




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
 
Back
Top