iis

zip file link not download from IIS in internet explorer 8 but instead opens as gibberish

i have a .zip file sitting on an IIS 6 webserver. i have an html file with a link to that zip file like this: <a href="file.zip">Download File</a> When you open the page and click the link in firefox or chrome, you get the Open or Save dialog box as expected. When you do the same in Internet Explorer 8, you navigate to a new page th...

Application Request Routing (ARR) IIS 7 Spaces in URL

I am using AAR to reverse proxy requests to a Confluence install. This works fine when the URL contains no spaces. As soon as a space is added to the URL the request returns a 404, the 404 seems to originate from IIS not the Confluence instance. I have enable Failed Request Tracing as detailed here: http://learn.iis.net/page.aspx/488/u...

Possible to add a local server as Virtual SMTP inside another server?

I wounder if is possible to add a virtual SMTP server a local server? I have created a SMTP server on a server, I wonder if it's possible to create a virtual smtp on another server that is local? ...

IIS Request Timeout on long ASP.NET operation

I am experiencing a request timeout from IIS when I run a long operation. Behind the scene my ASP.NET application is processing data, but the number of records being processed is great, and thus the operation is taking a long time. However, I think IIS times out the session. Is this a problem with IIS or ASP.NET session? Thanks in adv...

IIS url rewrite with query string

I would like to have some urls redirect to another server using url rewrite and here is part of the sample web.config I created: <system.webServer> <rewrite> <rewriteMaps> <rewriteMap name="Redirect"> <add key="logon\.aspx" value="http://machineB/logon.aspx" /> </rewriteMap> </...

Does IIS / ASP.NET make use of TCP keepalive option? (this question is not about the HTTP Keep-Alive)

Does IIS / ASP.NET make use of TCP keepalive option? What are the config parameters that affect it's use? Please note that this question is not about the HTTP Keep-Alive option. ...

Debugging ASP.Net MVC in local IIS on Server 2008 R2

I am having issues debugging locally within Visual Studio 2010 on Server 2008 R2 (x64) for a new ASP.Net MVC application. I am able to debug using the VS Development Server (Cassini) but when I change to use the Local IIS Web Server and Create Virtual Directory, I am unable to debug. I get the standard VS message: "Unable to start de...

Connection strings not replaced using Web Deploy

A deployment package that is generated by our CI build correctly: (a) prompts for our two connection strings during interactive deployment using IIS Manager. (b) includes the two connection strings in the generated parameter file to be used with command-line deployment. (c) creates the proper placeholder strings in the Web.config. Whe...

Why doesn't my PDF document render/download in ASP.NET MVC2?

I have an ASP.NET MVC2 application in development and I am having problems rendering a .pdf file from our production server. On my Visual Studio 2010 integrated development server everything works fine, but after I publish the application to the production server, it breaks. It does not throw any exceptions or errors of any kind, it si...

Create virtual directory in IIS 6 and IIS 7/7.5 using C#

I have installer that will create virtual directory. It works fine on IIS 6. But if I try on IIS 7.5 it crashes. Then i tried using Microsoft.Web.Administration class But now it will work only on IIS 7 and IIS 7.5 Can anyone help me out so that my code works for both IIS 6 and IIS 7.5? ...

WCF Application "Unable to find assembly" for SQLite

Note: This is a solved problem, but I just spend 4 hours at this issue, so I wanted to share the solution. When I attempt to access a WCF service, the service never responds, and the event log shows the following: An unhandled exception occurred and the process was terminated. Application ID: DefaultDomain Process ID: ...

IIS Hanging. Bizarre Callstack: Unknown MethodDesc

Hi, I am having general hangs on our IIS application pool. Sometimes, when I get a Crash Dump, I get one thread which is blocking all the others and that has no call stack: ESP EIP 4735e1dc 7c82860c [NDirectMethodFrameStandalone: 4735e1dc] Unknown MethodDesc (Module 1f3363e8, mdToken 0600016c) I looked over the Internet bu...

Implementing a reverse proxy in C#

Here's what I want to do. I have a program that many client devices communicate with (hundreds). Unfortunately, sometimes when I add new features, it requires me to make breaking changes that affect these clients. So typically we have to update the clients and the server at the same time. So I had an idea in which I will just run eve...

Component not found when deployed on IIS but found when running ASP development server

We have an VB.net application that is being moved from one box to another. It runs great on the old box. The new box is configured the same as the old one but is on newer hardware. When I run the application on the new server it complains that the adobe toolkit that we use can not be found. The error message is. Compiler Error Message...

VS 2010 + IIS: Unable to start debugging on the web server. The IIS worker process for the launched URL is not currently running

Hi there, I have recently started to received this message. Unable to start debugging on the web server. The IIS worker process for the launched URL is not currently running Does anyone know what this means? I created my virtual directory via Properties on the project, and clicking Create Virtual Directory. ANd in IIS I can see it...

unable to upload .flv in IIS 6.1

Hi guys, I've been trying to upload a video file on my local harddrive and it seems it cannot process the upload. The .flv MIME type is already registered on my IIS but still it cannot process upload. Any inputs would be a very big help. Here's the screenshots. here's some additional screenshots this is what happen after pressin...

Equivalent of this htaccess for IIS7?

What is the equivalent of these rewrite rules: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /index.php [NC,L] In IIS7? These are rewrite rules for Zend Framework and they work under Apache. I tried importi...

whats the best way to secure content on another web site / subdomain of a public facing web site?

I have a public facing web site living at www.somedomain.com. This web site renders pages with links to images that live at photos.somedomain.com. All users that view images on www.somedomain.com must be authenticated with forms authentication and they are authenticated by the asp.net membership provider running in the context of the w...

Why is IIS7 missing the HTTP_REFERER server variable?

I'm using Windows 2008 x64 R2 with IIS 7.5 and ASP.NET 2.0. I want to use HTTP_REFERER but for some reason but it's not available so I decided to iterate all the server vars using this code : foreach (string vars in Request.ServerVariables) { Response.Write (vars.ToString() + "\r\n <br/>"); } Here is the result : ALL_HTTP ALL...

How do I rewrite a URL in IIS?

What would be simplest way to get this functionality in my website. A small example code will be appreciated. ...