473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

easy question

ae
i have a website on my local box, and am using beta c#. how can i change the
port on my site? it is coming up as :5120

i would like it to be :80

the other thing, is what is the best way to change the website name? it is
now:
http://localhost/mywebiste/mypage.aspx
i think it would be better something like:
http://localhost/accounts/mypage.aspx

Nov 19 '05 #1
5 975
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/
======================================
"ae" <ae@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...i have a website on my local box, and am using beta c#. how can i change the
port on my site? it is coming up as :5120

i would like it to be :80

the other thing, is what is the best way to change the website name? it is
now:
http://localhost/mywebiste/mypage.aspx
i think it would be better something like:
http://localhost/accounts/mypage.aspx

Nov 19 '05 #2
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?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 2 Oct 2005 14:47:02 -0700, "ae" <ae@discussions.microsoft.com>
wrote:
i have a website on my local box, and am using beta c#. how can i change the
port on my site? it is coming up as :5120

i would like it to be :80

the other thing, is what is the best way to change the website name? it is
now:
http://localhost/mywebiste/mypage.aspx
i think it would be better something like:
http://localhost/accounts/mypage.aspx


Nov 19 '05 #3
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/
======================================
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:ru********************************@4ax.com...
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?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 2 Oct 2005 14:47:02 -0700, "ae" <ae@discussions.microsoft.com>
wrote:
i have a website on my local box, and am using beta c#. how can i change the
port on my site? it is coming up as :5120

i would like it to be :80

the other thing, is what is the best way to change the website name? it is
now:
http://localhost/mywebiste/mypage.aspx
i think it would be better something like:
http://localhost/accounts/mypage.aspx

Nov 19 '05 #4
ae
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.
"Juan T. Llibre" wrote:
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/
======================================
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:ru********************************@4ax.com...
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?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 2 Oct 2005 14:47:02 -0700, "ae" <ae@discussions.microsoft.com>
wrote:
i have a website on my local box, and am using beta c#. how can i change the
port on my site? it is coming up as :5120

i would like it to be :80

the other thing, is what is the best way to change the website name? it is
now:
http://localhost/mywebiste/mypage.aspx
i think it would be better something like:
http://localhost/accounts/mypage.aspx


Nov 19 '05 #5
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/
======================================
"ae" <ae@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com...
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.
"Juan T. Llibre" wrote:
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/
======================================
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:ru********************************@4ax.com...
> 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?
>
> --
> Scott
> http://www.OdeToCode.com/blogs/scott/
>
> On Sun, 2 Oct 2005 14:47:02 -0700, "ae" <ae@discussions.microsoft.com>
> wrote:
>
>>i have a website on my local box, and am using beta c#. how can i change the
>>port on my site? it is coming up as :5120
>>
>>i would like it to be :80
>>
>>the other thing, is what is the best way to change the website name? it is
>>now:
>>http://localhost/mywebiste/mypage.aspx
>>i think it would be better something like:
>>http://localhost/accounts/mypage.aspx
>


Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: rdsteph | last post by:
I am having a lot of fun using the pyGoogle module ( http://pygoogle.sourceforge.net/ ) that uses the Google API. It is about as easy to use as I can imagine, and it is a lot nicer than using my...
0
by: | last post by:
I don't know SQL at all, but I have a problem now because I must use SQL in my PHP scripts. So please help me! I have 2 tables: id | name ----------- 1 | thing1 2 | thing2 3 | thing3 4 ...
5
by: LedZep | last post by:
What up, All I need to do is enter a last name in a text box, query a MSAccess database and display the name with the corresponding columns. This is no problem, but when there are more than one...
1
by: Mad Scientist Jr | last post by:
can someone explain how to simply populate a grid in .net ? the way i understand it, there is no more msflexgrid, and instead is this new control that has to be tied to a dataset, and it is a real...
13
by: Ghislain Tanguay | last post by:
I have a compiled vb.net app and I want to give the user a choice to launch it from the start line command and pass it a parameter or not. How can I do that in my code? Is it possible? Ex. :...
1
by: melanieab | last post by:
Hi, If there's a textbox and the text entered is longer than what's visible (the textbox length), how do you make it so that the beginning chunk of text is visible (instead of the last part of...
23
by: **Developer** | last post by:
Is there an easy way to copies all files in a directory into another directory? What about coping subdirectories too? Thanks in advance for any info
6
by: Martin Bootsma | last post by:
I have a C question, which looks very easy, but no one here seems to know an easy answer. I have a function "powell" (from Numerical Recipes) which takes an argument of the type "double...
27
by: smnoff | last post by:
How does( or should user use) strncpy() to allocate enough memory space for the destination string, s1? I guess I am having trouble using strncpy as it seems to be giving me errors. And just...
9
by: rynTAU | last post by:
This is an easy question, I'm sure but I can't seem to figure it out. I'm trying to use the number_format() function to remove all decimal places from a number. $num = number_format($num,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.