iis-8

IIS8.5 is automatically changing Physical Path property

青春壹個敷衍的年華 提交于 2019-12-01 06:10:19
I have a couple of Applications added under my Default Website in IIS8.5 (simply http on port 80 IP=*) They point to different physical paths (which are not nested) and this works fine after adding such an application. But after a while the Physical Path of one of the applications automagically changes to the physical path of another Application. Why? I have flushed my DNSCache and removed and added the Application once again, but something is changing the physical path of my configuration. What could be doing this? Could something be overriding my Application settings? I have 2 sites in 1

Credentials for ServerManager.OpenRemote

此生再无相见时 提交于 2019-12-01 03:25:58
I'm trying to use ServerManager.OpenRemote (from Microsoft.Web.Administration) but am unable to find documentation on how to give it different credentials from the current user. I tried SimpleImpersonation (from How do you do Impersonation in .NET? ) and it gives me the same error: System.UnauthorizedAccessException - Retrieving the COM class factory for remote component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} from machine [...] failed due to the following error: 80070005 [...]." Firewall on the remote machine is off. UAC is disabled. Ricardo Stuven You must enable the remote server

Websocket issue with IIS 8 Express on Windows 7

心不动则不痛 提交于 2019-12-01 03:11:29
I tried creating handler for web socket but context.IsWebSocketRequest is returning always false and failed to working with IIS 8 Express on windows 7. How can I enable module for websocket or any step I missing? I have VS 2012 application with IIS Express dynamic url. Please help for the same. The WebSocket protocol needs to be enabled in IIS 8 (see http://www.codeguru.com/csharp/csharp/programming-html5-web-sockets-in-asp.net-4.5.htm ). Additionally, I'm not sure web sockets is supported on Windows 7. I've only seen that Windows 8 or Windows Server 2012 are required. CBono The short answer

Trust a self signed cert from IIS

拜拜、爱过 提交于 2019-12-01 02:48:27
问题 I have an externally hosted iis webserver where i run my website. I would like to add a self signed certificate to this website and trust it on my local client, to remove "Insecure Connection" from the browser. What i have done so far is the following Created a self signed certificate in IIS: Server Certificates -> Create self signed Certificate. The cert is issued to the servername e.g "ABCD01" Created a website with a https binding using the self signed certificate. Exported the self signed

Problems hosting rc1-final-update1 on IIS

这一生的挚爱 提交于 2019-12-01 00:01:29
Works just fine when I run it on my computer from Visual studio ( in IIS express) . But when I try to host the website on my server (WS 2012 , IIS 8 ), the page takes forever to load . I found this error in log: C:\iis\beta\wwwroot>SET DNX_FOLDER=dnx-clr-win-x86.1.0.0-rc1-update1 C:\iis\beta\wwwroot>SET "LOCAL_DNX=C:\iis\beta\approot\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1\bin\dnx.exe" C:\iis\beta\wwwroot>IF EXIST C:\iis\beta\approot\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1\bin\dnx.exe (SET "DNX_PATH=C:\iis\beta\approot\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1\bin\dnx.exe" ) C:\iis\beta

Websocket issue with IIS 8 Express on Windows 7

一个人想着一个人 提交于 2019-11-30 23:06:48
问题 I tried creating handler for web socket but context.IsWebSocketRequest is returning always false and failed to working with IIS 8 Express on windows 7. How can I enable module for websocket or any step I missing? I have VS 2012 application with IIS Express dynamic url. Please help for the same. 回答1: The WebSocket protocol needs to be enabled in IIS 8 (see http://www.codeguru.com/csharp/csharp/programming-html5-web-sockets-in-asp.net-4.5.htm). Additionally, I'm not sure web sockets is

URL Rewrite Remove WWW From HTTPS

谁说我不能喝 提交于 2019-11-30 18:56:30
问题 I need to set up a rule in URL Rewrite on IIS8 to remove the www from all https requests. Below is what I want to achieve. I do not care if we remove www from all urls. http://sitename.com/sub -> http://sitename.com/sub http://www.sitename.com/sub -> http://www.sitename.com/sub https://sitename.com/sub -> https://sitename.com/sub https://www.sitename.com/sub -> https://sitename.com/sub 回答1: I got it to work with this rule. <rule name="Remove WWW" enabled="true" stopProcessing="true"> <match

Problems hosting rc1-final-update1 on IIS

旧巷老猫 提交于 2019-11-30 18:48:19
问题 Works just fine when I run it on my computer from Visual studio ( in IIS express) . But when I try to host the website on my server (WS 2012 , IIS 8 ), the page takes forever to load . I found this error in log: C:\iis\beta\wwwroot>SET DNX_FOLDER=dnx-clr-win-x86.1.0.0-rc1-update1 C:\iis\beta\wwwroot>SET "LOCAL_DNX=C:\iis\beta\approot\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1\bin\dnx.exe" C:\iis\beta\wwwroot>IF EXIST C:\iis\beta\approot\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1\bin\dnx.exe

Visual Studio 2012 IIS Express 8 Fresh Install - Can't Connect

前提是你 提交于 2019-11-30 17:58:46
On Visual Studio 2010 + IIS Express 7 I was able to use IIS Express as a server and browse sites. I've since installed Visual Studio 2012 (on Windows 7 64-bit) with IIS Express 8, and I can't browse a single site on it. In addition, when I look at the log files (\Logs and \TraceLogFiles) I don't even see a single log entry for any of the 2012/IISExpress 8 apps, let alone an error to look into. Looking at applicationhost.config, I do see the site I'm trying to run with the correct path, apppool and port. But when attempting to run it, IIS Express 8 starts, I get an unusually long pause, and

Why are blank pages being served with “200 OK” for asp.net errors in IIS 8.5 (Win 2012 R2)?

南楼画角 提交于 2019-11-30 11:32:53
I've set up a new Windows 2012 R2 server running IIS 8.5. We noticed that when an error occurs (eg the ASP.NET State Service was not running) that instead of outputting a 500 status code error screen, the request actually returns a totally blank page (only headers - with no content). We obviously need to see the errors and serving 200 OK for an error could be very problematic for indexers like Google etc or any wesite monitoring tools (which would not notify us that the site had gone offline). On our other servers (IIS 7) we see the "yellow error screen" with a message like "could not connect