iis

LogParser query to grab only external IP addresses from IIS logs?

I tried this question over at ServerFault and didn't have any luck, so I thought I'd try here. I'm working on a public website that is used by both external visitors and internal employees. I'm after the external visitor hits, but I can't think of a good way to filter out the internal IP ranges. Using LogParser, what is the best way t...

How do I cache at both client & server when VaryByParam != "none"?

I'm looking for a way to cache a page at both the client and the server while varying the server's output cache by a querystring parameter "Version". With this tag: <%@ OutputCache Duration="10" Location="Any" VaryByParam="none" %> I get these headers: HTTP/1.1 200 OK Cache-Control: public Content-Type: text/html; charset=utf-8 Expi...

How to configure static content cache per folder and extension in IIS7?

I would like to set up rules in IIS7 for static content caching in my ASP.NET website. I have seen these articles, which details how to do it using the <clientCache /> element in web.config: Client Cache <clientCache> (IIS.NET) Add Expires or Cache Control Header to static content in IIS (Stack Overflow) However, this setting ap...

need help parsing an IIS log in c#

My IIS log has a query parameter(cs-uri-query) that looks like below "TraceId=8c0b8329-f125-4dec-90af-f508674284f5,PartnerId=Partner1\r\n,UserInput=Address1:+1234+block+of+XYZ+Street+Address2:+Santa+Fe+Springs+State:+California+ZipCode:+90000+Country:+United+States+" I need to extract Address1,Address2,State,ZipCode and Country from t...

404 error with IIS 7.0

I have a text file that I am trying to browse to using the browser http://files.mydomain.com/test.txt and I get a: HTTP Error 404.0 - Not found I double checked and the text file does exist. When I add a test.htm file, I have no issues. Can someone help? Something tells me it's security issue. ...

Terrible DotNetNuke performance

I'm involved with a project using DotNetNuke version 05.01.04 Community Edition. We are building our new Intranet using it, but performance is terrible. We have five people adding pages and content to it and every 15-30 seconds they experience a pause of 10 seconds or longer before the system continues and the next screens loads. The s...

Compilation Error when overwriting webapp.dll in IIS7

Hi All, I get the following error when overwriting my asp.net .dll sometimes on my web server. The server is running Windows 2008 and IIS7. The only way I can seem to resolve the issue is to restart IIS7 completely. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. P...

Using Http Pipelining for Rest on IIS

Given a workflow that I support, there is a high chance that there would be at least a hundred consecutive calls to the same resource done in rapid succession. I started looking into batching calls for Rest and ran into people suggesting Http Pipelining as the solution. My understanding is that the client will be able to make dozens of r...

IIS + TOMCAT - uriworkermap.properties config

Trying to find the best way to setup the uriworkermap.properties file on IIS. We are using this: /*=worker With that line we can reach any new apps that are deployed to Tomcat without having to edit the properties file each time. The only issue with this method is that I can't seem to set an exclusion for any static files we might w...

How can I access a networked drive via the Web?

We have around 2000 staff. Each has a shared drive to store some of their files. This shared drive points to a central location on our network. Example: John's F: drive -> \\ournetwork\john.doe Jane's F: drive -> \\ournetwork\jane.doe Each user will have a folder within the root "ournetwork" labeled with their username. I do not ha...

DotNetNuke 5.2 Source - How to: Setup IIS 7 to Compile Source & Test the Site

The answer to this may be a link to a good tutorial, but I've been unable to find one and it's getting rather frustrating. I'd like to dive into the source code of DotNetNuke 5.2 which I have downloaded to a folder. I've opened up the solution that ships with it and it opens & compiles just fine. What are the recommended steps for: S...

In IIS7, gzipped files do not stay that way

I have configured IIS7 to gzip static content. http://www.coderjournal.com/2008/04/iis-7-compress-javascript-gzip/ However, the files don't "stay" gzipped. Here's my use case: Request test.css file. It is not gzipped. Request it again within a few seconds. It is gzipped. Wait 5 minutes. Request test.css file again. It is not gzipped...

Missing line number in stack trace eventhough the PDB files are included

This is running me nuts. I have this web service implemented w/ C# using VS 2008. I publish it on IIS. I have modified the release build so the pdb files are copied along with the dlls into the target directory on inetpub. Also web.config file has debug=true. Then I call a web service that throws an exception. The stack trace does not...

IIS Settings for using HTTPRuntime.Cache

I use HTTPRuntime.Cache in my WCF service. It works locally (I mean "localhost:1234", not in IIS). But it doesnt work at server IIS. Is there any settings to do in IIS? The code in my method is like: var response = (Response<CommonListObjects>) HttpRuntime.Cache.Get("commonObjects"); if (response!=null) { return response; } var se...

IIS6 performance tuning for DotNetNuke

I've been tasked with looking into performance tuning my company's intranet server. It runs DotNetNuke which suffers from poor performance. It also runs a number of other web apps (mix of asp and asp.net). Could anybody give me a brief list of common performance tweaks that can be made to IIS6? ...

Is there no way to extend ASP.Net Forms Authentication so that sessions can extend past an iisreset?

I just got pinged on another post because my application doesn't keep the user logged in after an iisreset. http://stackoverflow.com/questions/2206595/how-do-i-solve-an-antiforgerytoken-exception-that-occurs-after-an-iisreset-in-my/2206609#2206609 I have to say I agree with the commenter that it is an artificial restriction. From what...

WCF in IIS How do I update a dll in the bin folder?

I'm a newbie with WCF. I had wcf service in iis running fine. I made a code change to the DataAccessLibrary.dll in which the main class is DAL. The service.cs file references this dll. I dropped the new dll into the bin folder. Now an error is thrown in the service.cs code that says "DAL does not exist in the current context" I'm thinkin...

How can I setup a WebTV platform in IIS/Windows?

I want to create a WebTV site in ASP.NET. At the moment I am thinking of using Flowplayer, serving .flv files. Since it will work with pseudostreaming, IIS will serve various .flv files in a schedule. Is there a platform/open source package to provide all the clip (and advertisement) scheduling to create the WebTV program? Or do I need ...

Apache's ErrorDocument directive for asp/IIS ?

now i saw a very good php script and i rewrite it to asp the script here:Fantastic Animation PHP/CSS/jQuery Error pages but know iam in big problem how i can use .htaccess in asp see how it work ErrorDocument 500 /error.php?code=500 can i use .htaccess in asp please tell me because iam newbie in it because know i convery error.php to ...

Detect mapped virtual directories from an ihttpmodule in a c# .net application

I have a .net website which contains an IHttpModule I wrote to do certain tasks (authorisation etc). But within the website there are a number of virtual directories that are mapped to third party applications which unfortunately I can't change or move (e.g. community server forums, adxstudio cms and others). I am looking for a way to p...