iis7

Replacement for HttpContext.Current.Request.ServerVariables["SERVER_NAME"] in Integrated Mode

Hi, Using HttpContext.Current.Request.ServerVariables["SERVER_NAME"] in integrated mode gives an error in IIS7 as per: http://mvolo.com/blogs/serverside/archive/2007/11/10/Integrated-mode-Request-is-not-available-in-this-context-in-Application%5F5F00%5FStart.aspx Is there a replacement I can use in global.asax code for HttpContext.Curr...

Can't see WSDL on Delphi CGI with IIS7

I created a very simple Delphi 2010 CGI web service and am able to get the exact same problem on Delphi 2007. My invokable interface looks like this: ISimpleTest = interface(IInvokable) ['{4E318A9A-D361-4A18-A963-EE6D7F70E9C5}'] function SayHello(const S: string; N: Integer): string; stdcall; end; And the function is implemented in...

Can I use host headers for an SSL site?

I want to apply a certificate to one of my sites on IIS. At the moment, I use a single IP address and use host-headers, to give them friendly names. Can I do this for my SSL site or do I have to use the server name? ...

Why is IIS7 matching to handlers with the classicmode precondition when the app is running in integrated mode?

I have an application in an application pool that's running in integrated mode. I have added a handler to system.web > httpHandlers and I kept getting a 404 result. So I enabled failed request tracing and in the request details I see multiple entires like this: HANDLER_PRECONDITION_NOT_MATCH Name: PageHandlerFactory-ISAPI-2.0 Pre...

IIS 6 to 7 is making me scared of web.configs

Hi guys, We have a mixed development environment of three servers running: Win Server 2003 & 2008, IIS 7 & IIS 6, ASP.NET 2.0 & ASP.NET 3.5. Previously, all three servers were Server 03/IIS6/ASP.NET 2.0, but with this new change, I am finding that pushing/moving any applications from server to server is always a terrifying experience be...

Http request timeout issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to develop a console application and I send request to another server (IIS 7.0 on Windows Server 2008). Here is my code. My question is, as in my code, I use a while loop to read chunks by chunk from server. The timeout request.Timeout = Timeout * 1000 is responsible for (1) timeout f...

How to disable the application pool idle time-out in IIS7?

Will it be disabled if I set the idle time-out to 0? ...

In IIS7 configuration, what file types are affected by the staticContent element?

How does IIS7 know whether the file being served being static of dynamic content? ...

Weird IIS7 http redirection behavior

I have a web server running Windows Server 2008 with IIS7. I have a bunch of websites which are all bound to the same IP address, but with different host header values. Most of the host headers are something like www.sitename.com. I also have a corresponding website entry for each which listens for the host "sitename.com" and does a red...

Development web server fires Application_Error on 404, why doesn't IIS7?

I'm using Application_Error to catch some legacy URLs and URL shortcuts. In Global.vb I have this code: Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs) Dim serverError = TryCast(Server.GetLastError(), HttpException) If serverError IsNot Nothing Then Dim errorCode As Integer = serverErr...

"Unable to connect to remote server fail" in HttpWebRequest

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to develop a console application and I send request to another server (IIS 7.0 on Windows Server 2008). I find when the # of request threads are big (e.g. 2000 threads), the client will receive error "Unable to connect to remote server fail" when invoking response = (HttpWebResponse)r...

Issue while hosting WCF service on IIS 7

I am unable to browser the service which is hosted on the IIS 7 windows server 2008 When I hit the url http://myservice/service1.svc it throws an error Can anybody help me in this Its urgent. Thank You in advance Selwyn. ...

configure IIS 7.0 meta database issue

Hello everyone, I am using IIS 7.0 + Windows Server 2008. Anyone has experience to configure the Timer_MinBytesPerSecond configuration items -- either programmatically or manually is fine? I also want to know how to check the current values for Timer_MinBytesPerSecond configuration items (either programmatically or manually is fine)? A...

Empty variable in PHP script causes IIS7 to throw an HTTP 500 error

I am running IIS7 and PHP5 locally on my machine and the code above will cause IIS to throw an HTTP 500 error. After a lot of frustration and confusion I figured out that any PHP script with empty variable will throw this IIS error. Below is an example of this: <?php $x = $y; ?> I find this behavior very odd and it breaks a large perce...

php CURLOPT_INFILE gives error The FastCGI process exited unexpectedly

for sending data with curl PUT request , I am using below code $tenMB = 10 * 1024 * 1024; $fh = fopen("php://temp/maxmemory:{$tenMB}",'rw'); fwrite($fh, $this->putFields); rewind($fh); curl_setopt($this->_handle, CURLOPT_INFILE, $fh); // this line throws error I am getting below error on IIS 7 HTTP Error 500.0 - Internal ...

Is it safe to delete the "InetPub" folder?

Does anyone know if deleting the InetPub folder will hurt IIS or anything related? I am using IIS 7. ...

Migrating asp.net website from IIS6 to IIS7 - Debugging differences

I recently migrated an application from IIS6 to IIS7. I've noticed two distinct differences and was wondering if someone could shed some light on them: When I attach the debugger to the w3wp.exe process, it seems that the request times out much quicker than it did with XP. I set the executionTimeout attribute of the httpRuntime elemen...

Disable IIS7 Compression for a single file from web.config

Does anyone know a way of disabling compression for a single file using the web.config file? It is possible to achieve this manually via the IIS7 management console, but I would much rather configure this from the application's web.config file. ...

Problem with SMTP in IIS7

I have an ASP.NET app that works fine on my windows XP dev machine but doesn't work when deployed to a Windows 2008 with IIS7. The app uses SmtpDeliveryMethod.PickupDirectoryFromIis and gives an error when I try to send an email from the app on IIS7 (an SmtpException with the message "cannot get iis pickup directory"). I use the same set...

Localhost caching in Windows Vista/IIS 7

I'm trying to do some simple locally-hosted development using the Ext framework. The site is configured as a virtual directory under IIS 7, so that http://localhost/app points to the index file. The path works fine; the file loads. Here's my problem: despite the fact that I am not making any changes to the very sizable Ext library javas...