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 ...
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...
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...
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...
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 ...
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...
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 "...
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...
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?
...
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...
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...
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...
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...
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
...
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...
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:
<...
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)]...
How do I force IIS 7 to not cache images for a particular page?
...
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...
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...