iis-7

hot-deployments with Self Host Web Api Services

早过忘川 提交于 2021-02-19 04:07:46
问题 Context: My company has been developing a WebAPI application to be hosted by IIS and the request latencies for a single static content file are about ~60ms. We investigated benchmarking the same app using WebAPI Self host and the latencies for the same content file were ~15ms, which really blew us away. From a deployment process, we love IIS as it provides us extreme flexibility in doing hot deployments by copying DLLs directly to our web servers, which doesn't require us to do any sort of

hot-deployments with Self Host Web Api Services

北战南征 提交于 2021-02-19 04:06:33
问题 Context: My company has been developing a WebAPI application to be hosted by IIS and the request latencies for a single static content file are about ~60ms. We investigated benchmarking the same app using WebAPI Self host and the latencies for the same content file were ~15ms, which really blew us away. From a deployment process, we love IIS as it provides us extreme flexibility in doing hot deployments by copying DLLs directly to our web servers, which doesn't require us to do any sort of

Browser does not render WOFF fonts (@font-face)

為{幸葍}努か 提交于 2021-02-18 07:43:08
问题 Ok, I have an issue that I cannot figure out, I am trying to research usage of WOFF fonts in Internet Explorer 10. I downloaded kit from fontsquirrel, and based on the included CSS and HTML files I added fonts to web application. (ASP.NET MVC on IIS 7) Now TTF fonts work perfectly fine in Firefox and Chrome (IE does not support it), however WOFF fonts do not seem to be working at all (they are supposed to be supported by all newer browsers). If I remove TTF section from below - Firefox and

How to get Windows user in asp.net webApp on IIS7+

谁都会走 提交于 2021-02-17 05:19:06
问题 I have an asp.net 4.5 web forms web app deployed on a remote IIS7+ server and I want to get the domain\username of the user to populate a database column. My web.config has the following: <system.web> <authentication mode="Windows" /> <identity impersonate="true" /> <!-- I have tried with and without impersonate--> <authorization> <deny users="?"/> </authorization> ...other stuff </system.web> <system.webServer> <security> <authentication> <anonymousAuthentication enabled="false" />

IIS 7 - Rewrite rule not firing, but does work with Redirect

风流意气都作罢 提交于 2021-02-11 17:58:29
问题 I have the following rewrite rule set up on IIS 7: <rule name="Rewrite /publicfiles/GUID/file.ext" stopProcessing="true"> <match url="^/?publicfiles/(.*)/(.*)" /> <action type="Rewrite" url="http://www.domain.tld" appendQueryString="false" / </rule> When I try it out it appears to not fire. I get a 404 error, but if I change the type to Redirect it fires and sends me to the URL specified. Is someone able to shed some light on this? EDIT: I added the definition of the rule to the web.config of

ASP.NET web.config encryption security

回眸只為那壹抹淺笑 提交于 2021-02-11 04:35:30
问题 I'm planning to encrypt the connection strings of a web configuration file belonging to an application which will be run in a server farm. I am aware of the aspnet_regiis command line tool to encrypt the sections using it. But I have some doubts, which I expect you guys can solve. My question is that if I encrypt the connectionstrings and the web.config file is stolen by some hacker, will he be able to decrypt it using the same command line with -pe switch? The same is shown below. My Servers

The maximum size of object that can be passed as Parameter to POST method

◇◆丶佛笑我妖孽 提交于 2021-02-08 14:38:12
问题 I have a web API controller with a POST method as follows. public class MyController : ApiController { // POST: api/Scoring public HttpResponseMessage Post([FromBody]MyClass request) { // some processing of request object return Request.CreateResponse(HttpStatusCode.OK, someResponseObject); } .... } This is consumed by a HTTPClient as follows HttpClient httpClient = new HttpClient(); httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

Boolean values in local language

霸气de小男生 提交于 2021-02-07 12:40:42
问题 This question has been asked long time ago on serverfault but no working awnser. I'm hoping somebody has encountered it and found a solution since then. Example: <% Response.Write True Response.Write "<hr>" Response.Write "test:" & True %> Output: True -------------- test:Waar As you can see, as soon as you combine the output, its turned into a local string ('Waar' is dutch for true). I need it to stay "True". How can I change this? I dont mind putting some code at the beginning of the pages,

IIS document root in subfolder

旧城冷巷雨未停 提交于 2021-02-07 09:16:13
问题 Hey, I have a PHP Windows Azure project but I am new to IIS. I have my PHP libs in root folder and client files like index.php, style sheets or javascripts in a subfolder called document_root. How can I set up IIS 7 (probably using Web.config) to use the document_root as the default folder for the site (making the root invisible) so i can call mydomain.tld/ instead of mydomain.tld/document_root/ I have used: <defaultDocument> <files> <clear /> <add value="document_root/index.php" /> </files>

IIS document root in subfolder

南笙酒味 提交于 2021-02-07 09:14:18
问题 Hey, I have a PHP Windows Azure project but I am new to IIS. I have my PHP libs in root folder and client files like index.php, style sheets or javascripts in a subfolder called document_root. How can I set up IIS 7 (probably using Web.config) to use the document_root as the default folder for the site (making the root invisible) so i can call mydomain.tld/ instead of mydomain.tld/document_root/ I have used: <defaultDocument> <files> <clear /> <add value="document_root/index.php" /> </files>