473,406 Members | 2,619 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,406 software developers and data experts.

ASPX page fails to serve up using

I have an application developed using IIS 5, and the 2.14 version of the .net
framework and SQL 2005. When deployed to two different servers, the pages all
display properly when using the address
http://localhost/mywebapp/default.aspx. If I replace localhost with a DNS
name, the pages will not display... I get a "Internet Explorer Cannot display
this page" message. In reviewing the IIS log files, all of the response codes
are 302 (redirects) for the requested page. Again, the pages serve up as
intended when using localhost in the url. In doing some testing, a plain
vanilla aspx page with no code behind the page dishes up without error. Does
anyone have any ideas?
--
Ken S
Jul 2 '07 #1
3 1615
"When deployed to two different servers, the pages all
display properly when using the address
http://localhost/mywebapp/default.aspx" -- that's because localhost is your
own machine, you arent' even requesting the page from the other 2 servers.

It needs to be "http://machineNameOrIPAddress/mywebapp/default.aspx"
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com

"Sherman KB" wrote:
I have an application developed using IIS 5, and the 2.14 version of the .net
framework and SQL 2005. When deployed to two different servers, the pages all
display properly when using the address
http://localhost/mywebapp/default.aspx. If I replace localhost with a DNS
name, the pages will not display... I get a "Internet Explorer Cannot display
this page" message. In reviewing the IIS log files, all of the response codes
are 302 (redirects) for the requested page. Again, the pages serve up as
intended when using localhost in the url. In doing some testing, a plain
vanilla aspx page with no code behind the page dishes up without error. Does
anyone have any ideas?
--
Ken S
Jul 2 '07 #2
On Jul 2, 9:34 am, Sherman KB <Sherma...@discussions.microsoft.com>
wrote:
I have an application developed using IIS 5, and the 2.14 version of the .net
framework and SQL 2005. When deployed to two different servers, the pages all
display properly when using the addresshttp://localhost/mywebapp/default.aspx. If I replace localhost with a DNS
name, the pages will not display... I get a "Internet Explorer Cannot display
this page" message. In reviewing the IIS log files, all of the response codes
are 302 (redirects) for the requested page. Again, the pages serve up as
intended when using localhost in the url. In doing some testing, a plain
vanilla aspx page with no code behind the page dishes up without error. Does
anyone have any ideas?
--
Ken S
Its possible .Net 2.0 isn't registered properly with IIS. You could
try reregistering it using aspnet_regiis.exe -i . This application
can be found in you windows folder under Mircosoft.NET\framework
\v2.0.X.

If you're running .NET 1.1 and 2.0 on the same IIS you need to have
them in seperate application pools as well.

This is all assuming that you were not trying to access localhost from
on the server and were instead trying to do it from a remote machine
like Peter implied.

David
http://blog.ctrlalt313373.com

Jul 2 '07 #3
There was a problem with some code that would automatically have the site use
https if the site is secured, and the request was not a loop back request
(local host)
--
Ken S
"Sherman KB" wrote:
I have an application developed using IIS 5, and the 2.14 version of the .net
framework and SQL 2005. When deployed to two different servers, the pages all
display properly when using the address
http://localhost/mywebapp/default.aspx. If I replace localhost with a DNS
name, the pages will not display... I get a "Internet Explorer Cannot display
this page" message. In reviewing the IIS log files, all of the response codes
are 302 (redirects) for the requested page. Again, the pages serve up as
intended when using localhost in the url. In doing some testing, a plain
vanilla aspx page with no code behind the page dishes up without error. Does
anyone have any ideas?
--
Ken S
Jul 2 '07 #4

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

Similar topics

3
by: stevag | last post by:
Hello, 1) I have an .html page that hosts 2 frames, each of which hosts a different .aspx page with C#. What I would like to do is place a RadioButtonList control with two options on the...
6
by: John Lau | last post by:
Hi, I am looking at the MS KB Article 306355: HOW TO: Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET This article describes how to redirect errors to a custom html...
11
by: tma | last post by:
I have the following HTML in use on my web page. I need it to show a graphic image on the page but do not know what to use in the codebehind to make the graphic appear. If I load the source url in...
21
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have...
4
by: Frankie | last post by:
I'm writing a small C# utility application that creates new Web Sites via ADSI. It seems to work just fine for the most part -- meaning that IIS Metabase entries look either identical or "different...
1
by: bennett | last post by:
I'm trying to write an ASPX page that uses an OleDbDataAdapter to get data from a SQL Server database. When I test the connection, it returns success, and when I preview the data using the...
13
by: Matt | last post by:
Does anyone know how to hide the ASPX extension of web pages in ASP.Net 2.0? Thanks, Matt
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
8
by: Darrel | last post by:
I'm helping convert a 300+ page .html site into an ASP.net site. The client wants to set up 301 redirects for all of the old html pages. I've used ISAPI for this type of thing in the past, as it...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.