Last post Jan 28, 2017 06:49 PM by Marko_911
Jan 23, 2017 06:48 PM|Marko_911|LINK
I'm having trouble to access my website from outside my local network. To be sure what i mean i want to write my ip (http://whatismyipaddress.com/) address in browser and my website to show. Let me describe what
I already did:
1. At first port 80 was closed, obviously default setting.
2. I forwarded port 80 to my Win7 machine 192.168.1.101.
3. Added rule to Windows firewall.
4. Port 80 is shown as open http://www.canyouseeme.org/
5. In Visual Studio 2013 I published my website (Build -> Publish Web Site) to C:\www\myWebSite
6. Added website in IIS:
Site name: myWebsite
Physical Path: C:\www\myWebSite
IP address: All unassigned
Host name: i don't have a domain so i left it blank (i read somewhere that is what i should do)
That's all steps that i did and when i put my ip in browser it's trying to connect but nothing happens it's just trying and trying.
I also called my ISP and they said that they don't block any port espacially port 80.
Jan 23, 2017 07:05 PM|mohtshm|LINK
Can you access your site on your local ip i.e.
Jan 23, 2017 07:11 PM|Marko_911|LINK
I didn't try this before.
I get an error, but it's in polish so i can't copy paste. Basic transalation would be:
Server error in application '/'.
Unknown attribute 'targetFramework'
Wiersz 17: <system.web>
Wiersz 18: <compilation targetFramework="4.5" />
Wiersz 19: <httpRuntime targetFramework="4.5" />
Wiersz 20: </system.web>
Target file: C:\www\myWebsite\web.config Wiersz: 18
Jan 23, 2017 07:28 PM|mohtshm|LINK
You need to install framework4.5 on this machine. Make sure to've all prerequisite for site on this machine
Jan 23, 2017 07:57 PM|Marko_911|LINK
Just tried to install .Net 4.5 and it said that there is already installed the same or newer version of .Net framework;(
Jan 23, 2017 08:07 PM|mohtshm|LINK
Please check the pool assign to this in IIS. It should be of 4.5 not 4.0
Jan 23, 2017 08:49 PM|ryanbesko|LINK
Please check the pool assign to this in IIS. It should be of 4.5 not 4.0
Jan 23, 2017 08:59 PM|Marko_911|LINK
As ryanbesko wrote. I can only set v2.0 or v4.0. It was set to v2.0 and when i switched to v4.0 error changed to:
Page 192.168.1.101 is not working
Server 192.168.1.101 cannot process this request
HTTP ERROR 500
Jan 25, 2017 07:12 AM|mohtshm|LINK
Great!! that you've set the pool, but is your application is running under vs2015 because before making it live it is necessary that it is a working application.
Jan 25, 2017 05:27 PM|Marko_911|LINK
It's 2013 but debug in Chrome works fine.
In IIS: right click on "Sites" then "Add webite" that's correct right?
And besides steps written in first post is there anything else that i should configure, do? Those steps are literally everything i did after installing VS and IIS.
Jan 25, 2017 05:50 PM|mohtshm|LINK
in IIS you can put site either into the IIS folder in c:\Inetpub\Wwwroot or if you if you don't want to put there then you have to add virtual directory in IIS and point it to your folder. Please put your site in
\Inetpub\Wwwroot or map a virtual directory VD
One more thing after installation of IIS did you browse that so that to check every thing working fine.
@Marko please work with me for next 20 mints I m GMT+5 region. About to leave ASAP. Currently also installing IIS on mine VM for this
Jan 25, 2017 06:05 PM|Marko_911|LINK
It's in C:\www\myWebSite.
Now i saw that i have authentication error when i test setting when adding website;( Can't verify access rights or something like that.
Jan 25, 2017 06:11 PM|mohtshm|LINK
have you configure vd???
Jan 25, 2017 06:12 PM|mohtshm|LINK
Your path is wrong
Listen leave your application just *try to browse default website in IIS from IIS manager
Jan 25, 2017 06:13 PM|Marko_911|LINK
Default Web Site -> Right click -> add VD -> c:\www\myWebSite
Jan 25, 2017 06:16 PM|mohtshm|LINK
Great!!! now right click on folder mywebsite and go to security and add user IIS_IUSRS and give full control
Jan 25, 2017 06:16 PM|Marko_911|LINK
Default Web Site is selected than I click browse *:80, chrome starts with localhost as address but the site is blank, no error no content.
Jan 25, 2017 06:17 PM|mohtshm|LINK
Please do check is IIS running fine?????? by browsing default web site
Jan 25, 2017 06:18 PM|mohtshm|LINK
can you check that s default web site running or stopped?
Jan 25, 2017 06:20 PM|Marko_911|LINK
Running is greyed so i think it's running. I set IIS_IUSRS full control but still authentication error.
Please don't sacrifice Your time for me. Im in no hurry.
Jan 25, 2017 06:29 PM|mohtshm|LINK
First thing first you need to be sure that IIS is running properly and then it should be able to run your site in 4.5. Try to google and setup iis for your application.
Also attach screen shots of error in browser. OK see you soon bye
Jan 25, 2017 06:35 PM|Marko_911|LINK
I think I got default web site running. Is it IIS 7 logo with welcome in many languages?
I was missing windows servie: Internet Information Services --> World Wide Web Services --> Common HTTP Features --> Click the Static
Back to googling for the rest of the problems:)
I got the authorization error sorted out. I set the 'connect ass' to certain user (tip - it needs to be password protected).
Default Web Site: localhost -> works fine, but 'localhost/myWebsite' gives HTTP Error 500 Web site not working Server can't process request.
Jan 26, 2017 07:38 AM|mohtshm|LINK
Great you have progress remarkably well. Please try to do simple thing inside your vd folder i.e. mywebsite. Remove whole website and put a simple html or script aspx page and then browse it.
Jan 26, 2017 05:09 PM|Marko_911|LINK
Simple page like this below works, but it has to be named "index.html", otherwise it's blank.
<H1>Work d*** it!</H1>
But with my webpage I get the 500 error ;(
Jan 26, 2017 05:56 PM|mohtshm|LINK
save a file name as index.aspx and type following syntax:
then browse that page directly from IIS
Jan 26, 2017 05:59 PM|Marko_911|LINK
It shows completely blank.
Jan 26, 2017 06:23 PM|mohtshm|LINK
IIS asp.net module is not set properly. Please go back to windows feature and check whether you have selected asp.net 3.5 and asp.net 4.5 options selected.
Jan 26, 2017 06:44 PM|Marko_911|LINK
It gonna sound weird but i don't have such options. I mean in "WWW Services" i have : 'ASP', 'ASP .NET'.
And I have group 'Microsoft .Net Framework 3.5.1' which was unchecked but checking it didn't help. I can't find anything like 'ASP 4.5' :(
Jan 26, 2017 06:50 PM|mohtshm|LINK
these options are under start > control panel > program and features > on/off windows(left side top)
then select IIS in the pop up window under which explore you will find these asp.net 3.5 and asp.net 4.5
which windows you are using??
Jan 26, 2017 07:02 PM|mohtshm|LINK
please also check this
Jan 26, 2017 07:05 PM|Marko_911|LINK
Under 'IIS' group i have 3 things (my transalation):
- web managment tool
- Server FTP
- WWW services
- making aplitacion functions
- ASP .NET
No one named 'ASP 3.5' or 'ASP 4.5' not here nor in any other group ;(
Windows 7 Ultimate
I read Your link and checked everything that i was missing but it didn't solve the problem:(
Your simple aspx page still is blank but my website error changed to:
Jan 26, 2017 07:20 PM|mohtshm|LINK
please follow the article which I mentioned you are close but not there may be under web development but plz follow the article and try to fix this by today see you
Jan 28, 2017 09:03 AM|Marko_911|LINK
Ok so I got it to wrok on:
- Virtual Direcotry (localhost/myWebSite/)
- Adding new Website (localhost)
But still my typing my ip 'www.whatismyip.com' still doesn't load the site. It's trying but nothing happens.
And to explain what got it to work... I don't really now. I checked all missing things in windows features but it didn't work. Then I just run Windows Update and puff it works:D
Jan 28, 2017 12:24 PM|mohtshm|LINK
now you're browsing your site by typing url
is this local machine 192.168.....101 which you want to host your site.
Jan 28, 2017 01:28 PM|Marko_911|LINK
Thanks but wouldn't made it without.
Yes Im browsing thru: localhost/myWebSite/
And Yes my machine is 192.168.1.101. I can view it thru this IP when I add new WebSite, beside VD in default web page.
Jan 28, 2017 04:35 PM|mohtshm|LINK
do u've any other machine on your network from where you can browse
to make sure access is allow from your machine
Jan 28, 2017 05:12 PM|mohtshm|LINK
check this image after I've lived mine site on localnetwork
Jan 28, 2017 05:15 PM|Marko_911|LINK
I don't have another pc but my tablet can enter my website (192.168.1.101).
I don't understand what's the picture for?
Jan 28, 2017 05:21 PM|mohtshm|LINK
Simply to impress you (hahahahahaha)
certainly not as you told that you can access site from other device than its done. Now you need to use any proxy server as I did
kproxy.com. And type
http:Ip/myWebSite then enter
as you already have set the router setting in your first question. Then you should see your site.
Others on different network can browse your site url based on your IP. While if you're on same network then you've to use any proxy
you can also checkout one of many tutorial on youtube like this
Jan 28, 2017 05:32 PM|Marko_911|LINK
Houston we have lift off :D
I can access my website from outside my network, phone for example:) Nice thank You very very much.
But last question, just out of curiosity, why can't I access my website typing my WAN ip from inside the network and from machine that is the host?
Once again thanks, I owe You a cold one :)
Jan 28, 2017 05:41 PM|mohtshm|LINK
Great!!!!!!! at last you done it.
You can ask this from any networking expert. May be some loopback concept but I'm not sure
Meanwhile You can also move away this myWebSite from your path by directly mapping in VD
I'm sorry could'nt help you much to do in mints as it should be.
Jan 28, 2017 06:49 PM|Marko_911|LINK
You did a lot. Thanks again.