iis7

HttpHandler not working in IIS 7

I have an HttpHandler configured in my web.config file like so: <add verb="GET,HEAD,POST" path="TinyMCE.ashx" type="Moxiecode.TinyMCE.Web.HttpHandler,Moxiecode.TinyMCE" /> When I deploy to IIS 7 the handler stops working (404). What do I need to do to get this working? ...

Isapi filter not working on IIS 7 (which did work on IIS 6)

Hi I have an Isapi dll which performs some basic URL rewriting. It works fine on II6. However, now my dev machine has been upgraded to Windows 7, I cannot get it to work under IIS 7 Is there anything special that needs to be done to get this to work? The website is running the Classic ASP pipeline app pool (although I have tried both)...

What is the regular expression to match the empty string for a rewrite rule?

I need a regular expression for a rewrite rule on iis7, I'm trying to redirect http://www.website.com to http://www.website.com/sample. But I only want the empty url string (extra points if you can figure it out with and without '/'), and I'm unsure how to create a rewrite rule to match to that. Can someone help me out here? ...

WCF IIS hosted service multiple Service Contracts implemented by a single service - how do I share uri between endpoints via config

I have a set of Service Contracts which split up my service interface into chunks of related functionality. I am currently implementing all contracts using a single service class (may want to split these later but for now the single service class suffices). I am trying to use configure the endpoints using a config file (as opposed to vi...

Has anyone succesfully called this method: HttpServerUtility.Transfer(IHttpHandler, Boolean) ?

Hi there, I am doing some nifty research in my search for an optimal solution in regards to dynamic server transfers to classes implementing the IHttpHandler interface, and for this, I would like to experiment with the in title specified method signature. When I look in the MSDN documentation, I have my normal trivial implementation wh...

URL Rewrite affecting virtual application root for all asp.net controls

I am using the following rule to map a domain through to a subfolder in my shared hosting environment: <rule name="mydomain.co.uk"> <match url="(.*)" /> <conditions logicalGrouping="MatchAny"> <add input="{HTTP_HOST}" pattern="^www.mydomain.co.uk$" /> <add input="{HTTP_HOST}" pattern="^mydomain.co.uk$" /> </conditions> <action type="Rew...

IIS7 and ARR as reverse proxy for Subversion

I am using IIS7 and the Application Request Routing extension to act as a reverse proxy to Subversion running on Apache. The proxy works fine and I am able to explore the server, and even perform a "check out". However, I cannot browse to files that would normally be forbidden by ASP.NET - for example, .cs, .csproj, and so on. Files AS...

VS2008 & Local IIS Web Server - all components installed, doesn't work

In VS2008, when checking the local server option in the web tab in the project window, the error message reads: To access local IIS Web sites, you must install the following IIS components: IIS 6 Metabase and IIS 6 Configuration Compatibilty ASP.NET Windows Authentication In addition you must run Visual Studio in the context of an a...

VS2008, Debugging, Local IIS Server vs Use Custom Web Server, SSL/https

I am debugging a vs2008 web application project using the custom web server option and some of the pages are using https. I can debug https pages. Using iis7/Vista. The way I'm doing it is: name of the self signed certificate is assigned to trucks custom server url: http://trucks hosts file: 127.0.0.1 trucks publish to http://trucks ...

Using IIS 7.0: urlCompression with heavy ViewState enterprise application

IIS 7.0: urlCompression What is the best configuration of this feature in an enterprise application with heavy ViewState usage, large content pages along with highly configurable data? Assume: Strong database server Web farm Load balanced What I am not asking is alternatives to boost performance, just this feature specifically. ...

Intermittent Problems with Web Services on Remote Hosting Server

I've got an ASP.NET web application and a .NET webservice which is used by the web application. These applications are hosted on a remote server I don't have remote shell access to. When the web application invokes the web method in the webservice, I get the following error message: A connection attempt failed because the connected pa...

Getting error while downloading any file

I am trying to download VS 2008 SP 1 from microsoft website but i am getting an error all the time. No matter what i download. The error that comes is : HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. Detailed Error Information Module IIS Web Core N...

Identifiy IIS 7 using NSIS

Is there a way to identify the current version of IIS / using NSIS? I need a way to add some special behaviour to my installer in case of IIS 7. ...

ASP.NET Application Goes to 500.21 ... until IIS Reset + Clear Tempoary ASP.NET Cache

We're seeing an odd pattern in our QA Lab. We have two ASP.NET applications, each deployed on the same Windows 2008 SP2+ box. We have our App Pool running in a Domain Account, and set to never re-cycle. The same 1 App Pool is used by both applications. After several hours of running fine, new users surfing to a page in our applicati...

IIS7 & Castle.Microkernal.Lifestyle.PerWebRequestLifestyleModule regestering problems

I'm trying to deploy an ASP.NET MVC app to iis7 and am getting the error: Looks like you forgot to register the http module Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule Add '<add name="PerRequestLifestyle" type="Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.MicroKernel" />' to the <httpModules> section o...

What's the simplest way to rewrite Urls in ASP.NET MVC / IIS7?

Hi, I'm developing an ASP.NET MVC application on IIS7 and I need to rewrite requests to all files from a directory in my application and it's subdirectories to another directory. The files are images, stylesheets, classic webforms files and vanilla html documents. What's the easiest way to achieve this? I've already tried installing t...

Win7/IIS7 - why does a new Handler Mapping diasappear?

I add a handler mapping to IIS7 (on Win7). It runs just fine until I publish a new build to http://localhost. Once I publish a new build, all the mappings I added are magically gone!! [EDIT] I am also losing all of my virtual directories during a publish. [/EDIT] Any tips/tricks for this? ...

Automatically start up ASP.NET app pool?

Is there a way to automatically spin up an ASP.NET app pool after an IISRESET or the scheduled reset so that the initial user doesn't have to wait for the app pool to load? ...

ASP.net MVC project not compiling on IIS

I used to just upload asp.net websites to the live server, and IIS compiles them automatically. But when I do the same with asp.net MVC projects I just get errors, and I need to release Build the project before I upload it. Note1: I'm using VWD 2008 Express Note2: The project is working perfectly if I release build it on my machine th...

Convert certificate .pem to .der/.cer

Hi, I'm trying convert .pem to .cer using OpenSSL... openssl x509 -inform PEM -in root.pem -outform DER -out root.cer But, I don't know how to install the certificate on IIS 7.0 over Win Server 2008. I read some tutorials about it and tried to install the cert in IIS 7.0 Server Certificates -> complete certificate request -> T...