iis

How to check website cpu usage programmatically?

Does anyone know how to check the CPU usage of a website in IIS or by any other means? Thanks very much. ...

Java and .Net interoperability

I'm attempting to use the WebI ReportEngine SDK (AKA RENET) to change the Universe that is assigned to a WebIntelligence (WebI) rpeort. Much research led me to the changeDataSource() method (exposed by the Java version of the SDK, AKA REBean). Unfortunately, the changeDataSource() method isn’t available in the .Net version of the WebI ...

SOAP services calls from IIS 5.1 (XP) timing out.

We have an ASP.NET web application running in IIS that uses the SoapHttpClientProtocol class to make SOAP calls. In the last few days several XP machines have started to report timeout errors when making SOAP services calls. Stack Trace from a test app: System.Net.WebException: The operation has timed out at System.Web.Services.Prot...

How to enable user settings to libraries used by a web project hosted WCF service?

By default a IIS hosted WCF service can't use libraries that uses user scope settings. The only scope that it accepts is the Application scope. When you try to do otherwise it throws an exception: [System.Configuration.ConfigurationErrorsException]{"The current configuration system does not support user-scoped settings."} How to c...

Setting cache headers with meta tags: always get "private" in cache-control response

I have a SharePoint master page with the following tags in the head section: <META HTTP-EQUIV="Expires" content="-1"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="private"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-store"> Despite the f...

Can you SSL one page in an a .NET application?

Can you have one page in a .NET application that is https but the rest be http? For instance, just the login page? Does this take extra setup in the application or is it just as simple as an IIS setting? ...

PowerShell: Load WebAdministration in ps1 script on both IIS 7 and IIS 7.5

I have a PowerShell script that configures web site and web application settings in IIS. So I use the cmdlets in the WebAdministration snap in. But this script needs to run on Windows 2008, Windows 7 and Windows 2008 R2. And I need it to run with minimal fuss from the user. The problem is that Windows 7 and Windows 2008 R2 use IIS 7.5...

Removing the Transfer-Encoding response header for certain responses in IIS7

I am trying to write an IIS Http Module that requires strict control of the response headers. I am currently using an Event Handler for PreSendRequestHeaders to remove headers I don't want and add headers I do, but I am unable to remove the Transfer-Encoding header that IIS seems to insist on adding (as the first header as well) and app...

.NET WCF service references use server name rather than IP address causing issues when consuming...

So, I'm a newbie to WCF... I created my ServiceLibrary and web-site project that consumed the ServiceLibrary. I am able to access the service by creating a proxy class from the WSDL that was generated using svcutil.exe and then used this class to access the methods in my service. All of this was fine on my local machine. I then moved t...

Downloading invoices (PDF) does not complete.

Hi, We have a magento commerce site running on an IIS 6.0 server with PHP 5.2.11 running magento. Whenever user tries to use the print to download pdf to their computer from the admin panel the download does not complete. I can see that the full file is downloaded to the computer but the browser still keeps on saying it is downloading....

Setting Far Future Expires Header In Code - ASP.NET

Is there a way that I can programmatically set an Expires Header in code with ASP.NET? Specifically I need to set it on an entire folder and all sub-folders, and the folder contains only static files (JavaSciprt, CSS, Images etc.) and not aspx files, so I can't just add some code to an aspx code-behind page_load. I can normally set this...

Debugging ASP.NET with IIS

I've set up debugging in Visual Studio 2008 to IIS instead of the built in server so I can run url rewriting while developing (using IIRF). It took a while to get to work (changing permissions, reinstalling the .NET framework) but it was working. I turned off my machine, and now that it's back on the debugger won't start. I'm using Pa...

POSTing to a re-written URL on IIS 6 doesn't work

I am working on a site which is programmed in C# .net. It uses a CMS called ADX Studio (a decision which predates my time there) which provides a shonky form of URL Rewriting (as far as I can tell it works by assigning an aspx page as the default 404 handler in IIS). I have an web form which lives at a rewritten URL. I edited it so that...

How to limit the number of instances of a WCF service in IIS?

My WCF service is instantiated multiple times until the system gets out of memory? How to set a single instance in IIS 7? My WCF service is already set to a single instance through attribute, but IIS seems to ignore this: [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]...

Can a load balancer recognize when an ASP.NET worker process is restarting and divert traffic?

Say I have a web farm of six IIS 7 web servers, each running an identical ASP.NET application. They are behind a hardware load balancer (say F5). Can the load balancer detect when the ASP.NET application worker process is restarting and divert traffic away from that server until after the worker process has restarted? ...

Why Intelligencia.UrlRewriter not work with iis6?

Intelligencia.UrlRewriter work with ASP.NET development server but not work in IIS6. what is the problem? ...

Reason for asp.net website error in one server and not in other server

I have a asp.net website which is deployed in a server A and same code has been deployed in server B. The website in server A has problems while in website in Server B doesn't have any problems. The problem is the sequence of order that the page is navigating is wrong while clicking on next button. Its obvious that there is no problem...

Transfer ISAPI_Rewrite code to Built-In IIS7 Rewrite Engine

Hi. I've transferred my IIS6-based website to IIS7. It uses ISAPI Rewrite. I want to use the built in IIS7 rewrite engine. I have the following code in my httpd.ini file: [ISAPI_Rewrite] RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O] RewriteRule ^(.*)$ http://www.workcity.co.il/$1 [R,R=301] RewriteRule /([^/.?]+) /sc.asp?p=$1 [...

Recovering files from IIS system (inetsrv) directory?

Some file from my inetsrv directory (c:\windows\system32\inetsrv) were accidentally removed. Is there a way to get them back? Reinstalling IIS server role doesn't help, because windows doesn't remove inetsrv directory when removing the role. ...

w3wp.exe taking entire CPU

We have three websites hosted in our IIS, each one has a seperate App Pool associated with it. But I see the CPU spikes to 100 % when I request for a page the w3wp process takes 100% of CPU . Is there any solution for this ? ...