easy question

  • Thread starter Thread starter Guest
  • Start date Start date
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.

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

re:
i think it would be better something like:
http://localhost/accounts/mypage.aspx

Once you make the change outlined above, if you are working
in an application named "accounts", IE will open any file for
which you select "View in Browser" as http://localhost/accounts/mypage.aspx
( if you wrote in "localhost" for the base URL... )

You can also use a DNS address.
In that case, it will open : http://www.yourserver.com/accounts/mypage.aspx



Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
 
You are using the 2.0 beta, yes?

If you created your project as a file system based project, then you
don't have control over the port number for the built in development
web server. You can host your application under IIS (try the Publish
option in the Project menu) and then have control over the port and
the website name.

Make sense?
 
Indeed, Scott, the solution I outlined only works for
IIS-based websites, and not for file-based websites.

I should have specified that.

I'd add that in the VS 2005 Beta, there's no "Project"
menu for file-based websites, and no "Publish" option.

There's a "Website", "Copy Web Site" option, though.




Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
 
I created a new virtual directory and linked it to my source files, and now
am getting this. it is a web directory now, but am getting this error.

HTTP 401.3 - Access denied by ACL on resource
Internet Information Services

the website is in xp pro, and i thought there would be a user called asp.net
or something similar to it.
 
If you link it directly you are bound to get mistakes.

What you should do is create a directory below wwwroot; make it an
IIS Application with the IIS Manager; and "Copy Web" the needed files
to your new, empty, application.

That will automatically include the Machinename\ASPNET account
in the wwwroot subdirectory you created because it will inherit from wwwroot.

At that point, you can : 1. continue to work with your file-based system
website within the VS IDE, and upload the changed files regularly
with "Copy Web", or : 2. open the new website directly with the
"Open : Web Site" link below your list of "Recent Projects".

Don't forget to use the IIS Manager to undo the virtual directory
you created at the File System website *before* you do any of this.




Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
 

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