iis7

Unresponsive ASP.NET site in IIS7

Where I work we recently had a site which was incredibly unresponsive (1 minute or more for a simple request. When I tested it I tried a page as simple as: <%@ Page Language="C# %> <html><body><h1>Hello World</h1></body></html> (PS: Lack of code-behind declaration is intentional - that's all it was. No actual code) And it still took ...

Does a worker process share its output cache within an AppPool?

Summary: I have an ASP.NET MVC website in IIS named 'Website' using an AppPool named 'WebsiteAppPool'. WebsiteAppPool is configured to allow up to 4 Worker Processes, in effect creating a 'Web Garden'. The Website is also configured, via web.config, to enable OutputCaching using CacheProfiles. <caching> <outputCacheSettings> <out...

Unauthorized access error to html pages in IIS 7.0

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0. I have created a new web site and put an html file into the directory. And when I use browse function in IIS manager to browse the html file, I met with the following error, any ideas what is wrong? BTW: I am very confused about unauthorized error since I run the worker pr...

Exceptions in System.Web.Routing.RouteCollection.GetRouteData

I've been getting two exceptions at random times in my asp.net mvc code running on iis7: Exception type: InvalidOperationException Exception message: Collection was modified; enumeration operation may not execute. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at System.Collections.Generic.List...

changing ASP.NET page timeout

I have an ASP.NET web application calling an ASP.NET web service which then itself calls into a report in reporting services for the report to be saved to a file. The whole thing is supposed to wait until the report is there and then return back up the chain with a downloadable pdf report. The problem is that the report takes longer ...

debugging error -- error attaching to w3wp.exe

Hello everyone, I am using VSTS 2008 + .Net 3.5 + C#. And I developed a custom Forms authentication module for IIS 7.0 and I attach to w3wp.exe to debug this module. During the attach process (I just select Tools -> Attach to Process, no further operation performed on the computer I am debugging -- I just wait for the attach to be compl...

Redirect an URL which points to a www.mydomain.com/subfolder to www.mydomain.com

Hy there Is there any posibility to redirect an URL like "www.mydomain.com/subfolder" to www.mydomain.com" I'm using a windows server and have the posibility to use IIS7 to do that. Does I need IIS for doing that or is there an easier way? What I exactly want: I have installed a CMS on /subfolder, and now the CMS is reachable under "...

web site certificate issue

Hello everyone, I am working on IIS 7.0 on Windows Server 2008 Enterprise x64. I want to know if I apply for a certifcate from Verisign, is the certificate bind to domain name or bind to computer? Any comments to my 2 concerns below? More details, if the certificate is bound to computer other than domain name, then if the computer ha...

Restarting an app pool using asp.net (IIS7)

Hi all, I need to restart an app pool from code, does anyone know how to do this? I have seen many examples for iis6 and most comments have been "It doesnt work" So any ideas, or anyway to get IIS to watch a file and when it changes have the app pool restart? ...

How do I remove a site from IIS7 using JavaScript?

Hi, I've been searching the Internet for a way to remove a site from IIS7 using JavaScript. I've found, and used, a lot of examples on how to create a site and applications using JavaScript but not a single example on how to delete a site! I figured that since the .Net System.Configuration.ConfigurationElementCollection-class has a Bas...

IIS7 Win 2008 + ASP MVC http result 504 status with static files css, js, images

Randomly accessing static files on our web site returns http 504 error status code From fiddler: Result Protocol Host URL Body Caching Content-Type Process Comments Custom 288 504 HTTP /assets/styles/site1.css 512 text/html ekrn:700 289 504 HTTP /assets/styles/rightmenu.css 512 text/html ekrn:700 291 504 HTTP /assets/s...

Async Web Service calls to IIS7 with Dynamic Compression don't work.

We have some ASP.NET Web Services that fail under this perfect storm of conditions: IIS7 Dynamic Compression is turned on Web Service call is Asynchronous If it is IIS 6, or we turn Dynamic Compression off or call the web service synchronously, it works fine. It fails in the call to SoapHttpClientProtocol.EndInvoke(IAsyncResult as...

Problem using custom HttpHandler to process requests for both .aspx and non-extension pages in IIS7

I am trying to process both ".aspx" and non-extension page requests (i.e. both contact.aspx and /contact/) using a custom HttpHandler in IIS7. My handler works just fine in either one case or the other, but as soon as I try to process both cases, it only works for one. Please see Handlers snippet from my web.config below: If i keep only...

Allow FTP via Internet Explorer in IIS7?

I have an FTP account created and it works fine with an FTP client but won't work with IE. If I remember correctly IIS6 let you do this with no problems, is there a rule or setting I am missing? I currently have 1 Allow rule for a specific user and 1 deny rule for all Anonymous users ...

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...

IIS7 URL Rewrite Mod causes unwanted effects

This might be more a a regex question, but it is holding up our release. I'm unable to come up with a clever solution. Basically, we want to rewrite www.oursite.com/Games.aspx?g=classic&m=etc to www.oursite.com/classic/?m=etc The problem is that the rule itself (at least as generated by the URL Rewrite mod for IIS7) looks like this: <...

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)]...

IIS 7 Force Fresh Images

How do I force IIS 7 to not cache images for a particular page? ...

Add IIS 7 AppPool Identities as SQL Server Logons

Hi, I'm running an IIS 7 Website with an AppPool of Integrated Pipeline Mode. The AppPools does NOT run under NetworkService, etc.. identity (by purpose), but uses it's own AppPool Identitiy (IIS AppPool\MyAppPool). This is a so called service account or virtual account. (a user account, which is not a full account...) I'd like to giv...

Application in ASP.NET MVC 2 Beta running on IIS 7.5

Hi, i have problems runnning an mvc2beta application in iis 7.5. WebServer: Windows Server 2008 R2 (x64) Application: MVC 2 Beta (developted in Visual Studio 2010 Beta) On IIS i added a new application beneath the Default Web Site and the new application has Application Pool ASP.NET V4.0 If i runn application within Visual Studio ev...