iis-8

IIS8.5 is automatically changing Physical Path property

别等时光非礼了梦想. 提交于 2019-12-19 08:48:10
问题 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.

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

感情迁移 提交于 2019-12-18 14:57:03
问题 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)

Running the 64 bit version of IIS Express 8 RC with Visual Studio 2010

自古美人都是妖i 提交于 2019-12-18 13:25:31
问题 I have a web app that uses the 64 bit version of SharpSvn, a managed DLL with an unmanaged dependency. It will not run in IIS Express 7.0. Switching to the 32 bit version of the assembly works fine. I installed the 64 bit version of IIS 8 RC. However Visual Studio 2010 launches the 32 bit version of IIS Express. . I can launch the 64 bit version of IIS manually with the following command: "C:\Program Files\IIS Express\iisexpress.exe" /config:"C:\Users\zippy\Documents\IISExpress\config

Display all sites and bindings in PowerShell

北慕城南 提交于 2019-12-18 10:22:06
问题 I am documenting all the sites and binding related to the site from the IIS. Is there an easy way to get this list through a PowerShell script rather than manually typing looking at IIS? I want the output to be something like this: Site Bindings TestSite www.hello.com www.test.com JonDoeSite www.johndoe.site 回答1: Try something like this to get the format you wanted: Get-WebBinding | % { $name = $_.ItemXPath -replace '(?:.*?)name=''([^'']*)(?:.*)', '$1' New-Object psobject -Property @{ Name =

IIS8 Default Document yields 404 not found error

时间秒杀一切 提交于 2019-12-18 08:41:31
问题 I have a new Windows Server 2012 machine with IIS 8. I have installed an application that uses Windows Authentication for the login page. The application uses .NET 2.0 (which was a bit of a pain to configure, but that is a different story) The application works perfectly if you specify the login page in the URL. This login page is the default document for the application which verifies the user and logs them in automatically if they are registered. If they are not registered then it redirects

IIS8 Default Document yields 404 not found error

偶尔善良 提交于 2019-12-18 08:40:07
问题 I have a new Windows Server 2012 machine with IIS 8. I have installed an application that uses Windows Authentication for the login page. The application uses .NET 2.0 (which was a bit of a pain to configure, but that is a different story) The application works perfectly if you specify the login page in the URL. This login page is the default document for the application which verifies the user and logs them in automatically if they are registered. If they are not registered then it redirects

Configuring .NET Framework 4.5.2 in IIS 8.0

江枫思渺然 提交于 2019-12-18 04:20:33
问题 In my Windows Server 2012, I have installed .NET Framework 4.5.2, but it is not listing in IIS when I tried to change one application pool's .NET Framework. 回答1: The application pool should be set to .net 4.0, that includes all updates like 4.5.1 and 4.5.2 All other settings are through config, for example: <system.web> <compilation debug="true" targetFramework="4.5.1" /> <httpRuntime targetFramework="4.5.1" /> </system.web> 回答2: install Microsoft .NET Framework 4.5.2 Developer Pack https:/

Catch 404 Error in MVC4

為{幸葍}努か 提交于 2019-12-18 03:39:30
问题 I have an problem cacting the HTTP Error 404.0 - Not Found. I have turned on the <customErrors mode="On" defaultRedirect="~/Error/General"> <error statusCode="404" redirect="~/Error/HttpError404" /> <error statusCode="500" redirect="~/Error/HttpError500" /> </customErrors> in the Web.Config. But the problem still exist. I have also tried this solution( But it never reaches the method): protected void Application_Error() { var exception = Server.GetLastError(); var httpException = exception as

Moved my ASP.NET website to IIS 8 on windows server 2012… services missing: .svc files are viewable, but their methods give a 404

蹲街弑〆低调 提交于 2019-12-18 03:33:01
问题 I moved from IIS 6 on windows server 2003. I can browse to the .svc files . I get a nice standard "This is a Windows© Communication Foundation service" page if I go to http://example.com/Service.svc in a browser. But I can't browse to any of the methods - I get a 404 error if I go to http://example.com/Service.svc/Method?parameter=xyz in a browser. Has anyone seen anything like this? Any ideas or suggestions? I thought I might have a similar problem to this question: WCF on IIS8; *.svc

Moved my ASP.NET website to IIS 8 on windows server 2012… services missing: .svc files are viewable, but their methods give a 404

好久不见. 提交于 2019-12-18 03:32:10
问题 I moved from IIS 6 on windows server 2003. I can browse to the .svc files . I get a nice standard "This is a Windows© Communication Foundation service" page if I go to http://example.com/Service.svc in a browser. But I can't browse to any of the methods - I get a 404 error if I go to http://example.com/Service.svc/Method?parameter=xyz in a browser. Has anyone seen anything like this? Any ideas or suggestions? I thought I might have a similar problem to this question: WCF on IIS8; *.svc