iis-7

IIS ignores system.webServer staticContent section

試著忘記壹切 提交于 2019-12-21 20:26:56
问题 UDPATE On a whim, I decided to upload the 4 fonts files to an font converter. I converted the fontsfrom ttf to ttf and then tried it. Everything works fine: the Content-Type is set correctly and the X-Powered-By header is removed. Weird. I am trying to change the mime type (Content Type header) of a .ttf file in web.config on IIS7. Here is the staticContent section inside <system.webServer /> : <staticContent> <remove fileExtension=".ttf" /> <mimeMap fileExtension=".ttf" mimeType="font/ttf" /

asp.net 2.0 global themes not working on new windows server 2008

╄→尐↘猪︶ㄣ 提交于 2019-12-21 20:03:23
问题 We're migrating our .net 2.0 websites from a Windows 2003 server (32 bit) with IIS6 to a Windows Server 2008 (64 bit) box with IIS7. I can't seem to get the global themes to work. Same content/directory structure as our old servers; local App_Themes work fine. Global Theme path: D:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\Themes thanks, Aaron 回答1: From the MSDN, your directory path should read: %windows%\Microsoft.NET\Framework\version\ASP.NETClientFiles\Themes. MSDN on themes. Of

Redirect additional domains to main .com domain using IIS7 URL Rewrite Module

烂漫一生 提交于 2019-12-21 19:45:32
问题 How should I configure the URL Rewrite Rule in IIS7 to redirect my aditional domains ( domain.net, domain.org, domain.info) to the principal .com domain? 回答1: In IIS7, you can use the new command “appcmd.exe” to enable redirection as following: %windir%\system32\inetsrv\appcmd set config "Default Web Site/" -section:system.webServer/httpRedirect -enabled:true -destination:"http://domain.com" This tells IIS to redirect all request sending to the virtual application “/” to “http://domain.com”.

Php not reporting any errors on IIS7

空扰寡人 提交于 2019-12-21 18:57:10
问题 I am developing a PHP application using our XAMPP setup as a test server. Once the app is ready to deploy, I have to upload it to the client's server, The problem is the client's server is running IIS 7, and every time there is a PHP error it just displays a blank page... Now, my app has error_reporting(E_ALL) already set, and I do not have access to the php.ini file (don't ask why!)... and I have tried every combination of parameters for error_reporting() found here: http://www.php.net

generating Excel file error

試著忘記壹切 提交于 2019-12-21 17:54:47
问题 I am using the following code in classic ASP to generate Excel file, the code is simple and it works. I run the code under IIS 7.0 on Windows Vista x86. Two issues, there is a weird warning box, here is the screen snapshot http://i27.tinypic.com/2n81udw.jpg All cells' background is white, no border of each cell shown, here is the screen snapshot, http://i25.tinypic.com/vy5t2d.jpg My code, <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%> <% function writeXlsHttpHeaders(filename){ Response

Images, CSS, and JS Not Loading in MVC4 App

心已入冬 提交于 2019-12-21 17:24:35
问题 I just deployed a new MVC4 app to my server and some of the CSS, JS, and images are not loading. For example, the Chrome console says, Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://beta.vinformative.com/Content/themes/base/jquery-ui-1.8.20.custom.css Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://beta.vinformative.com/Content/select2.css Failed to load resource: the server responded with a

How to change IIS 7 application settings using C#

♀尐吖头ヾ 提交于 2019-12-21 17:19:58
问题 I have deployed an application to the IIS 7 Default Website. To make changes to application's settings, I have to right-click the application, go to Manage Application , and click Advance Settings . In the window that pops up (in the Behavior section), there is a Enabled protocols which is set to http by default. I want to change this to http,net.tcp using C#. 来源: https://stackoverflow.com/questions/3532082/how-to-change-iis-7-application-settings-using-c-sharp

How to allow mixed-mode authentication in IIS 7.0

本秂侑毒 提交于 2019-12-21 17:04:29
问题 How do you back-door authenticate Windows users into a website using forms authentication running on IIS 7.0? 回答1: Create a separate page to handle windows logins. This page will authenticate the user and then set the Forms cookie for them. Then, add the page to the web.config to tell IIS 7 to use Windows authentication on that particular page. <configuration> ... <!-- this file captures the user and redirects to the login page --> <location path="Account/WindowsLogin.aspx"> <system.web>

Supply a different endpoint address in the WSDL of a WCF web service

时光毁灭记忆、已成空白 提交于 2019-12-21 16:58:51
问题 I have a fairly standard WCF service (hosted on IIS7) which generates a fairly standard WSDL when queried with ?wsdl : <wsdl:definitions> <!-- ... --> <wsdl:service> <wsdl:port> <soap:address location="https://machine/virtual_dir/servicename.svc"/> </wsdl:port> </wsdl:service> </wsdl:definitions> (boring bits omitted) I'm after a quick 'n dirty way to change the address given in this generated WSDL to something completely different, for example: https://othermachine/other_dir/other_service

When my large ASP.NET site is updated, IIS has to recompile a lot of it. Is there a way to cut down my compile time significantly?

不羁岁月 提交于 2019-12-21 16:54:27
问题 DotNetNuke is a large ASP.NET CMS which is mostly pre-compiled, as are most of the modules contained within. When we deploy our DotNetNuke site changes, we have two bits of recompilation that occur upon the first page hit. Application-level recompilation that occurs when a DLL is replaced in the bin folder Each time an individual module is accessed for the first time, some recompiling occurs on that specific module. Is there a way to allocate more of the CPU capacity to compiling asp.net