iis-8.5

Running a .NET 4.6 MVC application on IIS 8.5 (Windows Server 2012)

∥☆過路亽.° 提交于 2019-12-11 08:57:58
问题 I have an MVC Web API 2 application that I am running quite successfully locally within Visual Studio 2015 RC. I have also successfully published this application to an IIS 8.5 instance running on Windows Server 2012. I have installed .NET Framework 4.6 on this machine also. The behaviour that I am getting when I try to navigate to the root of the site (http://localhost:81) is that I get a directory listing of the files in the root folder. Clearly I was expecting the routing config of the

New website not showing default page in IIS 8.5

谁说我不能喝 提交于 2019-12-11 08:07:36
问题 I’m having trouble trying to view my default page or other web application on a newly created site (New Test Site) on IIS 8.5 for Windows 8.1. I included a directory that contains an html page (test.html) outside of the ‘inetpub’ folder. Add website window Physical Path: C:\royalcenters Type: http IP Address: All Unassigned Port: 80 I already arranged the ‘test.html’ page to the top of the list of ‘Default Document’ tab. List of default pages However, when I ran the new website on a web

Impersonate user to access file on remote server - Access denied

时光怂恿深爱的人放手 提交于 2019-12-11 08:07:17
问题 I have an MVC web application that is supposed to allow users to download files that are stored as UNC paths in a database. These files can be in any number of locations on remote servers/shares. E.g. Server 1 hosts the web application that is used to download a file stored on Server 2 I do not want to give permissions to these folders to the hosting service account, as the security should be dependent on what the user has access to. Therefore, I'm attempting to use Impersonation to retrieve

IIS 8.5 serving dll for download instead of executing

六眼飞鱼酱① 提交于 2019-12-11 04:47:53
问题 The Problem: When I access a (32-bit) DLL via URL like http://localhost/somepath/some.dll?action IIS always thinks I want to download the file (with file size 0 byte) instead of executing the dll. What I tried so far: added an entry for this specific DLL in ISAPI- and CGI-Restrictions enabled the "ISAPI-dll" Handler for *.dll with feature permissions read,script and execute. IIS User / AppPool Identity have full access rights to the physcal location of the dll App-Pool is running in classic

Win 2012R2 Server - ActiveX component can't create object aspmail 4.0 (SMTPsvg.Mailer) IIS8.5

若如初见. 提交于 2019-12-11 04:08:42
问题 I've had to move a classic ASP application from windows server 2008 to Windows Server 2012R2 and the app uses a com object called (aspmail 4.0) from a company called ServerObjects - which is no longer in business (at least there's no way to contact them). Anyway, I've registered the DLL ( C:\Windows\SysWOW64\regsvr32.exe d:\components\aspmail4\smtpsvg.dll ), that works as I checked the registry (it's 100% installed no issues nor errors). I've verified the DLL is correct and the registry is

HTTP Module intercept requests and breaks custom errors configuration

回眸只為那壹抹淺笑 提交于 2019-12-11 02:22:40
问题 I have an ASP.NET MVC 5 web application which runs locally on IIS 8.5 and after deployment, on Azure Websites - on both cases, the behavior that will be later described is the same. I configured in the web.config the following custom errors page management (it covers all my cases of custom errors and it has been tested and it's working great): <system.webServer> <httpErrors errorMode="Custom" existingResponse="Replace"> <clear /> <error statusCode="400" responseMode="ExecuteURL" path="/App

IIS AppPool user permissions not working

自古美人都是妖i 提交于 2019-12-11 02:14:39
问题 I'm moving a PHP app from IIS7 to IIS8.5 on Win2012 R2. The app runs in its own application pool (MyPortal) and needs write permission on a sub-folder to create PDFs. So I assign Modify or Full Control permissions to IIS AppPool\MyPortal on the local machine, however the app is still unable to write to the folder. The only way I have found to allow it to do so is by giving Modify access to the local USERS group, which I'd rather not do (although I have no choice ATM). The php-cgi.exe process

gzip compression not working with IIS 8.5

爷,独闯天下 提交于 2019-12-11 01:07:22
问题 I have a Server 2012 R2 box running IIS. I've tried enabling compression for several sites running on that box, but I can't figure out why it won't work. My request headers all show accept-encoding, but the response headers are always Transfer-Encoding:chunked and Vary:Accept-Encoding. The following steps have been performed to try to get gzip compression working: Dynamic and Static compression have been enabled on each site and at the machine level Both compression methods are installed from

Manage web farms from powershell v3.0

。_饼干妹妹 提交于 2019-12-10 22:27:47
问题 I have been searching for a way to create new web farms add add servers to it with PowerShell. I stumbled on this link http://www.iis.net/learn/web-hosting/microsoft-web-farm-framework-20-for-iis-7/web-farm-framework-20-for-iis-cmdlets-for-windows-powershell which says that you should add a snapin called WebFarmSnapin. But this does not seem to work at all in powershell v3.0 because it only says: Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 3. Does anyone

Compression in IIS 8.5 not successful, stating ALREADY_CONTENT_ENCODING

一世执手 提交于 2019-12-10 19:38:15
问题 I am trying to debug the issue of why my pages are not being GZIP'ed or deflated according to YSLOW. I ended up enabling Failed Request Logs on the server and was able to see the failed reason of why it is not compressing, it thinks it is already compressed. DYNAMIC_COMPRESSION_NOT_SUCCESS Reason="ALREADY_CONTENT_ENCODING" I have enabled dynamic and static compression in IIS, I have also changed the web.config file to include the following. <httpCompression directory="%SystemDrive%\inetpub