iis-7

Can't set HTTP Vary header in ASP.NET/IIS7 classic mode

荒凉一梦 提交于 2019-12-24 00:53:49
问题 First, a little background. I have written a custom HTTP compression module for ASP.NET. My development machine has Windows 7 Ultimate, which comes with IIS7. My production environment uses IIS6. The problem I'm having is, Resource Expert Droid (redbot.org) tells me that I need to add a header to my response to properly support compression: "Vary: Accept-Encoding" On IIS7 in integrated mode, it works properly. However, in classic mode, which is how my application ultimately runs, I cannot get

How to host an ASP.NET Web Applications site on IIS 7

喜欢而已 提交于 2019-12-24 00:28:54
问题 I'm locally working on an ASP.NET Web Applications site. It's almost finished so i wanted to try and put it in an IIS server. The IIS server is running on a different server. What do i need to do to run my ASP.NET web site in that remote IIS server? I tried to following: I copied my entire project directory (so including the .csproj file, the bin folder etc.) to the following location on the remote server, where IIS is running C:\MyProject . In IIS manager i added a Virtual Directory under

Local IIS unable to connect local database

自古美人都是妖i 提交于 2019-12-24 00:12:16
问题 I am using a db from (localdb)\V11.0 server and able to connect successfully when using IIS express from VS2013, but when deployed in LocalIIS, it gives me an error below - A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. In order to fix that I have updated applicationHost.config file as below <add name="DefaultAppPool"> <processModel identityType="ApplicationPoolIdentity" loadUserProfile="true

Elmah.MVC does not log errors in production environment

こ雲淡風輕ζ 提交于 2019-12-24 00:07:49
问题 I installed Elmah.MVC to my MVC project using Elmah.MVC Nuget package. It works fine in development environment, but when I upload website to hosting server (IIS7) it does not log errors. This is my web config file (only the Elmah configuraion), <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> ... <sectionGroup name="elmah"> <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" /> <section name="errorLog" requirePermission="false"

Classic ASP always return code 200 in IIS7

陌路散爱 提交于 2019-12-23 23:17:35
问题 I enabled tracing in IIS7. I set those properties to true in the ASP tab of the IIS management tool: appAllowClientDebug, appAllowDebugging, errorsToNTLog, scriptErrorSentToBrowser; To test it, I wrote a small classic ASP test page in wich I voluntary include a bug (bad activeX name). My asp test page is rendered until the bug line is reached. The rest of the page is not rendered. I was expecting a 500 error code, but code is always 200. There is no error file in the FailedReqLogFiles folder.

Where is my max-age header coming from?

丶灬走出姿态 提交于 2019-12-23 21:35:30
问题 I'm well aware of how I could set it myself, but I am concerned about having it configured in two different places. To receive the bounty, please tell me where I should look to find the existing setting. Places we've already looked for the existing setting, without success: the web.config <StaticContent> section IIS output caching section, at all three levels: machine site application Code (I did a global search for SetMaxAge ) Context We recently noticed that our CSS and JS files aren't

UnauthorizedAccessException with IIS7

混江龙づ霸主 提交于 2019-12-23 19:22:47
问题 I'm trying to write a log file from an ASP.NET application under IIS7, but keep getting the following exception: UnauthorizedAccessException "Access to the path 'C:\Users\Brady\Exports' is denied." I have given write access to the iis_iusrs, iis_wpg, and aspnet users, based on various advices found by Google, but still get the error. Can someone please explain how I can create a log file in that directory, or, will creating a log directory under the web application itself automatically allow

Proper setup for IIS7.5 machine account for anonymous Web site access

感情迁移 提交于 2019-12-23 18:53:34
问题 Using IIS 7.5, IIS_IUSRS is supposed to be the account to use. I get '401 - Unauthorized: Access is denied due to invalid credentials' error. If I add an EVERYONE account with Read, it works. But rather not have Everyone account. Any idea why IIS_IUSRS does not work? It has Read access. Anonymous Access=enabled. Specific User=IUSR As a side, on the Basic Settings... for the site, Test Settings button says 'ok-on Authenticate' but Authorization 'cannot verify access to path'. 回答1: In IIS 7.5

How to set the php.ini path for PHP CGI/FastCGI SAPI on Windows Server 2008 r2?

為{幸葍}努か 提交于 2019-12-23 17:00:28
问题 I have IIS 7.0 and two versions PHP v5 and v7 on my Microsoft Windows Server 2008 Standard 6.0 SP2. The problem is, that PHP7 or IIS tries to use the php.ini of PHP5 for IIS "websites". So on the command line everything is fine: X:\>php -v PHP 7.0.2 (cli) (built: Jan 6 2016 12:59:59) ( NTS ) Copyright (c) 1997-2015 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies X:\>php --ini Configuration File (php.ini) Path: C:\Windows Loaded Configuration File: D:\Data\Programme

Changing the publicly exposed endpoint URL for a WCF web service without changing the site bindings

谁都会走 提交于 2019-12-23 16:44:51
问题 I have a WCF web service hosted in IIS7 which is reporting its endpoint URL as the following in its WSDL http://machinename/virtualdirectory/service.svc However the actual public URL which clients need to use is actually http://machinename.mydomain.com/virtualdirectory/service.svc And so at the moment clients that attempt to use this web service fail unless they manually edit the endpoint URL. I know that I can fix this by changing the bindings of the site in IIS as per HOWTO: Fix WCF Host