Cannot browse asp site from IIS 6.1 from server itself - c#

I cannot browse my asp site from IIS 6.1 from server itself .
My deploying steps are
I compiled my asp.net web site using West Wind ASP.NET 2.0 Compiler
Utility
Deploy my web site to IIS 6.1
Add host header to my host file
(C:\Windows\System32\drivers\etc\hosts) (Let's say :192.168.1.1
www.mywebsite.com)
I cannot browse www.mywebsite.com from my server itself , but I can browse it from client pc by adding host header as step 3 .
I want to know how can i browse my site from server itself . Is there any option ?
Kindly help me , Thanks :)

Try this KB... http://support.microsoft.com/kb/896861
If you are able to browse from other machines, and not from local machine, most likely it is due to LoopBackCheck. The KB explains what needs to be done.

In the server's hosts file, try setting the IP to the loopback address (e.g. 127.0.0.1) instead of the local network IP address. http://en.wikipedia.org/wiki/Loopback Also double check, how is it bound in IIS? To a specific IP or to "all addresses"?

Related

How to run set up mvc website on local

I've got a web application for our office use only. In my office I've got 12 computer and want to install one pc and access via web browser from all computers. I can run web application on visual studio but couldn't find a proper way for all computers and kinda new in this area.
I would like to access on browser like "myapp.com" or localhost something else. Is that possible to give specific name and access even on mobile phones?
Thanks in advance for all suggestions.
You can host your application using IIS. IIS can be setup in any machine.
Steps :
Install IIS
Open IIS manager by entering inetmgr in Run(win+R)
Add website by browisng to its location to the published website location. (Hope you know how to publish a website in visual studio)
Edit the web config file to configure the sql server credentials(Sql db could be hosted separately or in the same machine)
Right click the website in IIS Manager and click start.
Click browse to view the website
You could either access the site by localhost:portnumber or by specifying IP:port number in settings of the website in IIS manager
You can access the website from mobile or external devices if you select public IP for your website. Incase you're connected to a local network, then the website could be accessed only from within your work place. Discuss with your network admin about exposing your server to public by providing a public IP address, if you're on local network.
Feel free to revert if you have more doubts.

Why can't ASP.NET API be accessed via external ip?

I have a Windows Server 2012 R2 instance and I wanted to deploy an ASP.NET Web API to it (I have used custom deployment method, saving the .rar file on disk). I have created the website inside IIS and everything is working great on http://localhost:8080.
When I try to access it by its external ip (http://12.34.567.899:8080) it won't respond.
Also, the default website on port 80 is fully working.
Things that I have tried
1. My port is open as I have run 'netstat -a' and port 8080 shows as 'LISTENING'
2. I have already checked bindings for IIS, they are ':8080'
Thank you in advance.

How to access website on client machine?

I created management information system for school in MVC 4 which is role based system and configured it on server though IIS. It works fine on single machine (server).Now i need to share that application on LAN network without internet. I have no idea about how to share this to client system.I read many of tutorial but that didn't help me anymore.Please help me i spent lot of time on this issue but got no solution. Thanks in advance.
1.Check the IP address of system in which you hosted the application: eg: 10.0.1.12
2.Replace the localhost in URL with the IP address.
ie http://localhost/YourApplicationFolder
http://10.0.1.12/YourApplicationFolder
3.Add an inbound rule in firewall, for port 80.
4.Now try to access your website from another system with http://10.0.1.12/YourApplicationFolder
setting inbound rule.
1.go to Control Panel\System and Security\Windows Firewall
2.select Advanced settings from left.
3.select Inbound rule from left.
4.Select Add new rule from right.
5.select port and Next.
6.Select TCP and special port specify 80. Next.
7.select Allow the connection.Next.
8.select Domain,private,public.Next
9.Add some name and description.
10.finish
you have to set this in server.
Place your Application folder in C:\inetpub\wwwroot
Open IIS and navigate to Your-PC > Sites > Default Web Site
Right click on your Application folder and convert to application
Now check your IP Address on other system browser if its not showing your IIS page then turn off your PC firewall and now you can access your application any system within LAN
Your URL will be Like http://192.168.1.1/AppFolder/
Thats it.

Fail to reach WCF Data Service over LAN

I created an ASP.NET WEB project in VS2012 and add a WCF Data Service file(.svc).When i run, i can reach it(localhost:61388/default.svc), but i can't reach it in another computer by typing my host's ip address(192.168.1.4:61388/default.svc) and it shows BAD REQUEST-INVALID HOST NAME.
Then how can I reach my wcf data service from another computer?
I've turned off all firewalls and my os is windows 7 Pro
For that you need to host your WCF service in IIS server...To learn more about IIS server and add website see this
BY default there is a default website running at port 80.(You can check by typing http:\localhost) If you dont get anything that means IIS is not installed in your PC.
Once your IIS is up and running add your WCF service to IIS just like you add website to IIS (Or directly publish your WCF service in IIS publish-->IIS) and give it a specific port number (lets say your WCF service is running at 81).you can access the service from other computer (Lets say the PC which host has ip 10.20.50.121)...then you can access it on another computer by typing 10.20.50.121:81.
Now to connect your WCF service to Website,you need to check if your wcf service is running or not.For that when you publish your wcf service to IIS you get 3 files out of which one is default.svc(or any of your name you can click on the service go to contents view and see it) click it and on the right hand side click browse if you see a success page that your service is running then you need to copy that address an paste it in your Website webconfig endpoint address location and change the appopriate dns value .That should get your WCF service started
can you access it from your own computer using 192.168.1.4:61388/default.svc ? Or only localhost ? Run netstat -a and check the webserver is actually binding to the 1.4 address and not just to your local loopback adapter (127.0.0.1).
Create a virtual directly pointing to folder where your wcf svc is lying and try accessing it.

Issue with Deploying an app in IIS 7.5

I am trying to deploy an app on IIS7.0
I developed the app in 4.0 (Just a web app not MVC or anything)
These are the steps I followed
1.Select Application pools -> Create New ->TestApp--> Select the framework version to 4.0
Sites -> Add web Sites -> SiteName ->TestApp -->Choose the TestApp Application Pool
Select the Physical Path
If I leave the Host Name Empty and click on Ok
when I go to the website and manage application ->Browse I am seeing the App as localhost (Very Well)
But When I enter the host name as Testapp.Domainname.com It is not working what am I doing wrong??
You need to have that domain configured in DNS server you're using. If you want to have the app accessible under this URL from the internet, you need to go to one of the domains resellers, buy the domain name and configure it to point to your IIS server.
For development, you probably want to set up DNS name locally, for your machine only - you have to specify this domain name in your hosts file than:
127.0.0.1 testapp.domainname.com

Categories