iis

Running WCF 3.5 app under .NET 4.0 website

I have a website that is hosted on IIS6 and set to use .NET 4.0, but I still have a WCF service on the site that is using 3.5. When i browse my svc file, i get the error: unrecognized attribute 'targetFramework' and it point to the websites root web.config. I have tried this MSDN article and still get the same error. My site is usi...

Setting Permissions on a directory within IIS website root automatically

My company has a C# asp.net application deployed with IIS 7.0. The location the app is deployed in is C:\inetpub\wwwroot\my.domain.www\ Under that we have a storage folder which is where we hold temporary files. This folder needs to be writable with each deployment. We reference this folder from within our Web.conf file, and thus the e...

ASP.NET Session State Server on IIS 7.5 and Windows 2008 - Not Working

We are moving an application from a hosting environment using IIS 6.0 and ASP.NET session state server (both on Windows 2003) to IIS 7.5 and ASP.NET session state server (on 2008 R2). We are having a problem, in the new environment, where if a user gets moved across servers in the farm, their session state is lost. We had this exact pr...

Preprocessing SSI includes in site build process, export from svn

I have a site which uses simple server-side includes to pull in the header and footer on some static HTML pages: <!--#include virtual="/_top.html"--> ... <!--#include virtual="/_bot.html"--> The downside is that IIS can't cache SSIed pages (or more specifically, it won't allow browsers to cache the page no ETag nor Last-Modified h...

Change temporary path

Hi all, Exsits any way to modify the temporary folder path returned by System.IO.Path.GetTempPath() method? My asp.net application run under iis 7. Thanks ...

ASP.NET C# Nested application (sub directory) - Parser Error Message: Could not load type ...

Hello all, I created an asp.net web application that can create dynamically asp.net web application projects within it's file system (subdirectories). Lets say I manually create Virtual Directory in the IIS for each webapp created. When I try to access those applications (http://localhost/&lt;virtual-dir&gt;/) I get an error: Parser ...

wcf service, IIS timing out upon response

Here is the exact issue: I have a client app calling a wcf service, in both the client app and the wcf service i have set the time outs to be over 3 hrs. when the service runs about 20 min there is no issue but more than than it times out in a weird way. I started debugging the service to see what actually happens since the time outs s...

Connection forcibly closed on 15 second request

I have a request to my own service that takes 15 seconds for the service to complete. Should not be a problem right? We actually have a service-side timer so that it will take at most 15 seconds to complete. However, the client is seeing "the connection was forcibly closed " and is automatically (within in the System.Net layer--I hav...

IIS Config - PROPFIND, OPTIONS verbs are ignored and treated as GETs?

I'm attempting to configure a webdav server example application (https://sourceforge.net/projects/webdav/) to run on IIS6 (Win2003 Server). The application runs correctly on my dev machine (Win7, IIS7.5). When I attempt to map a drive to the DAV share, several requests are issued, including one OPTIONS request and two PROPFIND requests....

Ruby on Rails on IIS?

I'm writing a Ruby on Rails app that normally runs on Heroku or a Linux Box, but I'd need to deploy it to a Windows Server as well. The Server is a 64-Bit Win2008 Server with IIS 7.0 installed, so normally I'd prefer using IIS instead of setting up an Apache next to it. I just don't know if Ruby/Rails works with IIS? Do Gems work? Is 6...

Asp.net memory issue while file uploading

Hi, I have two asp.net pages. In the first page i have a fileupload control and a submit button. In the submit button click event a file will be posted to second page. The second page receives the file using request.files method. My problem is when i upload a huge file, IIS is using the memory while receiving the file. But it is not cle...

Creating XMLSerializer in .NET throws exception

We have an old asp application that instantiates a .NET com visible class. In this class, we do some serialization to store our object in the session. When I call the following line of code in my test class, it works fine. var cereal = new XmlSerializer(couponApplicator.GetType()); However, when it gets called in the website and...

Issues delivering PDF files in IIS 7.5

This is a very wierd issue - any thoughts/help/hints would be greatly appreciated. Our web app streams PDF files to the browser using the following code byte [] fileBytes = GetTheFileBytes(); string contentType = "application/pdf"; context.Response.Clear(); context.Response.ClearHeaders(); context.Response.ContentType = contentType; c...

IIS Express enable external request

Hi guys, How can enable remote request en ISS Express, Scott wrote that is possible but he didn't say how :( thanks!! ...

How do I allow trailing dot in host headers in IIS

I am running an IIS 7.5 site that serves up content for http://www.foo.com/ I've been asked to properly route http://www.foo.com./ (note the trailing dot). If you hit that page now, you'll get an IIS error: Bad Request - Invalid Hostname HTTP Error 400. The request hostname is invalid. This happens even for http://www.micro...

ASP.NET 4.0: How do I fix the "'compilerVersion' " IIS error?

System.Configuration.ConfigurationErrorsException: The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. ...

a problem with creating a site in IIS 7.5 which is using PHP

hey all, I am trying to run web application scripted in PHP on windows server 2008. I have configured PHP (as fastcgi) and IIS. Everything goes fine except the following scenario. In the php.ini document "doc_root" edited with the correct root path for my php projects which is "c:\inetpub\wwwroot\". I created a new site on IIS and mapp...

Combining ASP.NET MVC and Reverse Proxy with URL Rewrite v2

I have a need to submit some data to a different host name and was hoping to utilize the reverse proxy guide found here for IIS 7.5 http://learn.iis.net/page.aspx/659/reverse-proxy-with-url-rewrite-v2-and-application-request-routing/ I have added the following code to my system.webserver entry in the site's root web.config <system.we...

C# How to find WCF IIS deployment/virtual directory at runtime to change name of log file ?

I am trying to change the name of a c# WCF logfile based on the name of the IIS Virtual directory it is deployed to. I tried to use the Directory.GetCurrentDirectory() call but it returns the directory c:\windows\system32\inetsrv regardless which virtual directory the WCF apps was deployed to.. So should I be looking into the Virtua...

Setting Server Bindings of IIS 6.0 Programmatically

I'm trying to set up an installer to register a web site. Currently, I've got it creating an Application Pool and Web Site under Windows Server 2003. Unfortunately, whenever I try to modify the ServerBindings property to set the IP Address, it throws an exception at me. I first tried this because the documentation here told me to http://...