473,385 Members | 1,472 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,385 software developers and data experts.

web page and URL

In asp.net 1.1, when i use to run the web page. I could change the localhost
to my computer name and web page use to run, so for example if the web page is
http://localhost/app/default.aspx

I can change it to http://mycomputername/app/default.aspx

but now in asp.net 2.0

http://localhost:3223/app/Default.aspx

if I change localhost to my computerName like

http://mycomputername:3223/MSCCTrackerDemo/Default.aspx
I get an error that "page cannot be displayed". Is it possible to run the
web page by changing the local host to my computer name in asp.net 2.0

Thanks
Oct 4 '07 #1
2 1567
On Oct 4, 4:39 pm, Vinki <Vi...@discussions.microsoft.comwrote:
if I change localhost to my computerName like

http://mycomputername:3223/MSCCTrackerDemo/Default.aspx

I get an error that "page cannot be displayed". Is it possible to run the
web page by changing the local host to my computer name in asp.net 2.0
That's probably because Microsoft tries to prevent us from using the
development server as a production server, which I guess someone might
try. Changing the host name could route the request through your
router and back to your computer, instead of your computer handling it
alone with localhost. The development server can be obtained for free
with Visual Web Developer Express, but the only practical option for
an ASP.net production server (in most cases) would be IIS which
Microsoft will make profit off of more directly.

-Michael Placentra II

Oct 4 '07 #2
You can still do this in ASP.Net 2.0. The only thing that has changed is VS
2005 includes a built-in web test web server. This is good for people
without IIS, but if you have IIS it's better to use that since there are
some differences between the two.

I believe that the test server may not be capable enough to check the
computername first. Keep in mind, localhost is a universally understood
loopback to the non-routable 127.0.0.1 IP address. If I remember correctly,
being able to the machinename takes an extra mechanism that isn't supported
by this test web server.

If you have IIS, definitely use it instead.Under the project properties
(this is with the Web Application Project, don't know if it's there for the
Web Site project) there's a tab called Web. Under that tab there's an option
to use the built-in VS test server, or to use IIS instead.
--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

"Vinki" <Vi***@discussions.microsoft.comwrote in message
news:66**********************************@microsof t.com...
In asp.net 1.1, when i use to run the web page. I could change the
localhost
to my computer name and web page use to run, so for example if the web
page is
http://localhost/app/default.aspx

I can change it to http://mycomputername/app/default.aspx

but now in asp.net 2.0

http://localhost:3223/app/Default.aspx

if I change localhost to my computerName like

http://mycomputername:3223/MSCCTrackerDemo/Default.aspx
I get an error that "page cannot be displayed". Is it possible to run the
web page by changing the local host to my computer name in asp.net 2.0

Thanks

Oct 4 '07 #3

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

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
0
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
2
by: James | last post by:
I've been to websites where if I navigate off a form, trying to get back to it by hitting the back button gives me a page which says "Warning, page has expired". It doesn't display the page. I've...
4
by: Kevin Phifer | last post by:
Ok, before anyone freaks out, I have a solution I need to create that gathers content from maybe different places. Each one can return a <form> in the html, so its the classic can't have more than...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
6
by: MooreSmnith | last post by:
When I navigate to the next page using Response.Rediect("MyNextPage.aspx") current page Page_Load event is called. What I may wrongly understood is that post back will happen whenever there is any...
1
by: Lenard Gunda | last post by:
Hi! I have the following problem. From my main page, when someone clicks a button, it uses client side javascript to open another .aspx page. This page displays content, based on what the...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
8
by: Ed Jay | last post by:
I want to use history.go() to navigate between my previously loaded pages. I'm looking for a way to trigger a function call when a page is accessed using history.go(). Is there an event generated?...
3
by: Mesut | last post by:
I have written a form in with radio buttons the name is set to orderby and the value is set to KundeVorName and the next value is KundeNachName and it goes so on. I wanna modify my query according...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.