I have an application hosted on my local IIS (Windows 10).
From today I am not able to access the application in the browser (tried in Chrome, Browser and IE).
In the browser, I see 'ERR_CONNECTION_REFUSED'. (Same behaviour if I try to 'Browse Website' from IIS.)
I tried browsing the Default Web Site on localhost and was a success.
I am able to ping the application from the command prompt.
There are no logs related to it in the IIS logs and the event viewer.
In registry,
at path: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters
it was having 2 values
removed the second one, left the default one.
This fixed my issue.
Related
To host the WebAPI through kestrel, when I run web.cmd as administrator through command prompt, it runs fine.
But when I run it as other user, I get the error as in the below screenshot:
UPDATE:
I for some reason had to restart the system. When I tried again it was working fine.
But then came the next issue.
I had hosted the webapi on IIS with name "WoApi" under "Default Web Site".
When I tried to access
http://localhost/woapi/api/Aspnet_Role
I got blank page.
Then I checked the stdout.log file. It had the below contents:
Hosting environment: Production
Now listening on: http://localhost:20822
Application started. Press Ctrl+C to shut down.
info: Microsoft.AspNet.Hosting.Internal.HostingEngine1
Request starting HTTP/1.1 GET http://localhost/woapi/api/Aspnet_Role
info: Microsoft.AspNet.Hosting.Internal.HostingEngine[2]
Request finished in 0.0187ms 404
So, then I tried with
http://localhost:20822/api/Aspnet_Role
and it worked.
But the port number keeps on changing every-time I restart the server.
How to keep a fix address?
I've done this many times in the past, but this is new, and I think CF11 is the problem. Not sure.
Fresh Windows Server 2012.. installed CF11. Selected "Configure All IIS Websites" during install. There's only two sites configured in IIS -- Default, and one other, which has its own name (test.mydomain.com) configured in the hosts file and in DNS. In its webroot is a single index.cfm file, and a subdirectory thereof, is an actual ColdFusion web app.
When I browse to the webroot, I get a standard Microsoft IIS page, rather than the index.cfm file. If I browse to the subdirectory, I get 404.
I've set index.cfm as the default document.
The path specified to the webroot is correct.
If I run the wsproxyconfig.exe file, it shows nothing is configured. I click Add, select IIS. In the drop-down where you configure a specific site, it says None and is not selectable. If I try to add, I get the error, "Unable to configure WebSocket Proxy Enable the required WebSocket Protocol option in IIS." I've looked all over IIS and can't find where this setting might be.
What's interesting is I can get the cfadmin page to load and function just fine (127.0.0.1/cfide/administrator)... there are no port numbers in that URL so it must be passing through IIS. So I'm not really sure what the problem is. Is it the connector? Is it something else? I'm stumped.
Yesterday we launched our new extranet site and for some reason I cannot access it from home with Internet Exporer. I can hit it from home with chrome and Mozilla. What can be causing this issue?
Edited
I tried flishing the dns of my home PC. I have also tried an IIS reset on the remote server that iis and the site is installed on.
What authentication schemes does the server offer in its WWW-Authenticate header? My first guess is that it's offering Negotiate and you're hitting the problem described here: http://blogs.msdn.com/b/ieinternals/archive/2011/07/06/integrated-windows-authentication-kerberos-ntlm-http-400-error-for-16kb-authorization-header.aspx
If you disable the Integrated Windows Authentication feature in the IE Advanced Settings (and restart) you can verify if that's the issue.
If not, what security zone is the page in, and are your IE security settings set to the defaults? By default, the Internet Zone will prompt for credentials that would have been silently submitted if the target site were in the Intranet zone.
I'm trying to debug ajax calls in my web app using Fiddler, but I'm unable to configure Fiddler to capture sessions on localhost. It captures every other "external" session like google or stack o, but not localhost.
I've tried the usual remedies: "localhost.", "machinename:8081/myApp.html", add oSession for localhost in rules file, "import windows hosts file" and so on. Nothing has worked. My environment is Win 7, IIS 7.5, IE8. Has anyone else faced the same issue, and how did you solve it?
TIA
You can use "ipv4.fiddler" as host name. See here
I recently upgraded my Intranet web server to Server 2008 x64 running IIS 7.5. The staff website that I maintain uses NTLM to tell which user is viewing the page and display appropriate content based on that. Since the upgrade or MAC clients can no longer connect through Safari and Firefox is no longer accepting the about:config setting of network.automatic-ntlm-auth.trusted-uris. I had to remove the FQDN from that entry for them to not get the 401 page only.
My development server is still a Server 2003 box with IIS6 and the MACs can authenticate to that both through Safari and firefox with no problems.
I checked on the new IIS7 server for the registry key LmCompatibilityLevel located in HKLM\SYSTEM\CurrentControlSet\Control\Lsa but this key is not there. So my understanding is that it will result in level 0 by default allowing LM, NTLM and NTLM v2 auth requests.
Any suggestions on how to get authentication back?
Had a similar problem with Safari forcing users to login innumerable times and this fixed it for me:
In IIS Manager (IIS 7), navigate to the website and right-click on Authentication to "Open feature".
Right-click on "Windows Authentication" and select "Providers" which should display Negotiate & NTLM
Remove "Negotiate" and restart the website and it should work with a single login prompt.