Solved

ASP .NET IIS 7.50 deployment

Posted on 2013-11-30
5
448 Views
Last Modified: 2013-12-03
When I access the web site I setup using IP address ..I got below error
HTTP Error 404. The requested resource is not found.

When I access with domain name I got a blank page.
Is there anything wrong with website setup in IIS 7.5 (Windows 2008 server)?

It is hosted in public IP.

Thanks.
0
Comment
Question by:MrStevenWin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 29

Assisted Solution

by:Göran Andersson
Göran Andersson earned 175 total points
ID: 39687439
You can only access a web site using the IP address if the site is set up to be the default site of the server.

IIS can host multiple sites on the same IP address, and uses the domain name in the URL to determine which site you are trying to visit. One of the sites on the sever can also be the default site, and it will also answer to requests with a domain name that no other site on the server is registered to handle.

When you visit a site using on the IP address, there is no domain name to match against, so you can only reach the default site that way.
0
 
LVL 7

Accepted Solution

by:
XGIS earned 175 total points
ID: 39687988
Hello MrStevenWin
Does it work on the server using a non-bound localhost address;  eg http://localhost:81
If it does not work in this way there may be another issue that needs to be resolved.
0
 

Author Closing Comment

by:MrStevenWin
ID: 39688072
Thanks for the replies and advice.

Later, I have tested again and found that even in localhost it is not working yet.
The site doesn't seems to process .aspx page at all. When I put .htm page there and browse it, it can be shown.
I have tied the site to .net framework 4.
The server was installed with both framework 4 and 2.

When I check Handlers Mapping, it seems not correct.
I found (PageHandlerFactory-ISAPI-2.0-64) which is tied for .aspx
but I didn't find  (PageHandlerFactory-ISAPI-4.0_64bit ).
Then I manually try to add it, but it seems not working ..

 I'm not quite familiar with hosting sites especially with IIS 7.5. Is there any good place I can go and learn to know more about IIS 7.5 administration.

Thanks.
0
 
LVL 29

Expert Comment

by:Göran Andersson
ID: 39688228
It sounds like only framework 2 is registered in IIS, or that the 4.0 registration is missing something.

Register framework 4 by running this in a console window run as administrator, from the framework folder (something like C:\Windows\Microsoft.NET\Framework\v4.0.30319):

    aspnet_regiis -i

Ref: IIS registration tool
You can fine plenty of descriptions of this: iis register framework 4
0
 

Author Comment

by:MrStevenWin
ID: 39694635
Hi GreenGhost,

Thanks. Exactly, Framework 4 is not registered. Now, it solved.

Regards,
Steven
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question