iis7

IIS7 Request Mapping, File Extensions

I have a website that used to have .dsp file extensions for all pages. There are alot of other sites referencing mine that reference the pages like that, but my pages are all actually .aspx pages. In IIS5, I was able to configure this to work. My problem is I've recently switched from IIS5 to IIS7, and I have no idea how to map these ...

Microsoft.Ink not working on Server 2008 (not R2)

To start off, we have 2 servers: Alpha (Server 2008 R2) and Beta (Server 2008). We cannot create images Beta using Microsoft.Ink.dll (we have version 1.7.2600.2180). The code works great on Alpha (Server 2008 R2) but on Beta (Server 2008) it fails. Our code is compiled in x86 and both server's app pools are set to allow x86 programs. ...

Debugging an already-running ASP.NET site in IIS7

We currently have a Live ASP.NET application (Basically a CMS) running on our IIS7 web-server. Every once and a while (Talking every few months) it's app pool will go to 100% CPU-usage and stay there until the page times out. We've tried increasing the timeout for the page to 30 minutes in the web.config but it still just stayed at full...

Multiple certificates for HTTPS on a software NLB'd IIS7 cluster

We're currently trying to set up a HTTPS with multiple certificates. We've had some limited success but we're getting some results I can't make any sense of... Basically we have two servers on our NLB (10.0.51.51 and 10.0.51.52) and two IPs assigned to our NLB (10.0.51.2 and 10.0.51.4) and we have IIS listening on both of these IPs with...

IIS7 URL Rewrite with dynamic subdomains.

My goal is to implement the following scheme using the subdomain and path as attributes: Use a wildcard DNS entry that routes any subdomain to the root site: Example: *.example.com ex: http://xyz.example.com to http://example.com Next I want to rewrite the requests to point to a specific page, passing both the subdomain and the req...

mixed MVC routing for MVC app under web forms app

I have an instance of BlogEngine.net installed at the root of my hosted server. I wanted to play with ASP.Net MVC to write a small app and installed that app under a folder off the root. I am able to see the http://example.com/testApp/ but the the routed pages like http://example.com/testApp/edit are giving 404's. I have searched arou...

Not enough storage error on CGI app under Win64

I have a Delphi (hence 32-bit) CGI app running on a Windows 2008 64-bit server that has 24 Gb RAM with IIS7. The web service runs fine for a few days at a time (sometimes a few weeks) and then suddenly starts reporting "Not enough storage available to process this command." Now I've seen this before in regular Windows apps and it norma...

Get Application Pool Uptime in c#

Is there a way I can determine how long an application pool (in IIS7) has been up (time since started, or last restart) in c#? ...

IIS7 and Classic ASP Sessions

I've got an old web app written in Classic ASP which used to run on an IIS6 server no problem, then long story short, I moved it onto a Linux server running SunOne ASP which also worked fine (after a couple of minor tweaks), and now in a bid to access some 3rd party COM controls the app originally used, I've moved it back again to a Wind...

Visual Studio/ Asp.net / IIS Pathing Help

Hey guys, I am having some serious pathing issues with a website that I am creating. I am using Visual Studio 2008 IDE with IIS7 on Windows Vista Home Premium. This is a website project and not an asp.net web application (according to Visual Studio). Well here is the problem. I am using IIS 7 as a test server, even though VS 2008 h...

Creating Virtual Directory in IIS 7.0 Installer Setup Windoes Server 2008 64-bit mode

Hi All, I am trying to create a virtual directory programatically using the following code, if works fine, but when I try to create with the same name again, I get exception. If I use diffrent names for virtual directory no issues, and I am actually deleting that virtual directory before creating it again vRoot.Delete("IIsWebVirtualDi...

Global ASAX - get the server name

Hi, Can anybody tell me if there is a way for me to get the domain name of my site in the Application_Start event in the global.asax? Normally I'd just get it from Context.Request.ServerVariables["SERVER_NAME"], but this is not available. I'd ideally also like to get the URL from the request that kicked off the application. Hmm - fro...

IIS 7 - Windows Authentication not working

Hello, We have several web apps that use Windows Authentication that worked fine on IIS6. After deploying them to IIS7, Windows Authentication no longer works (we get 401.2 errors) UNLESS we set the web app to use the "Classic Pipeline" I realize that Forms auth and Windows Auth aren't simultaneously supported as mentioned here and he...

Application pool reset breaks ASP site

I am seeing a weird behavior on IIS7 on Windows 2008. I have an ASP MVC application installed and fully functioning. Every time i reset its application pool, the website stops working and displays a 404 error. The only workaround I found for this is: 1. Rename default.aspx, global.aspx, and web.config to something else 2. Create a simpl...

IIS 7/ASP.NET WebForms application on Multi Processor server getting confused? Column '{dataColumn}' does not belong to table {dataTable}

We have been working on our application for about a year now and today we performed a manual stress test with about 70 users. Our SQL server and WinForms application ran smooth, however, once the web application hit around 20 users, the server started acting strange. One error that we received multiple times was when a stored procedu...

IIS7 parse error.

I just put all my aspx files on the local folder and made a website in IIS7. I added a virtual directory to it and then converted the virtual directory to application. The website loads properly but when i click the link that calls my application i get this error message. Description: An error occurred during the parsing of a resource r...

Configure an IIS Site to default to non-root directory?

Say I have a directory structure like so: /public /public/company /public/globals /public/globals/images /public/jobs /public/jobs/it ... etc. What I would like to do is to be able to configure an IIS Site to load from /public/company when visiting the domain root. I know I can change the site to /public/company, but if I do that, I...

Changing web content based on browser type

Hi, I'm writing a web application and I'd like to work out what type of browser/OS the request is coming from, and customise the returned content accordingly. So if someone visits the site from an iPhone/Android, they get a more streamlined experience, or if it's a desktop, they get the full version. I will pretty much take a complete...

Why is LOGON_USER Server Variable is blank on New Windows / New Tab?

We are noticing some very strange behavior on an installation of a .NET2-based webapp on Server 2008. Our app uses "old school" Integrated Windows Authentication and simply reads the LOGIN_USER server variable from the request collection. There's a good reason for this, but that's somewhat irrelevant to the question, since the underlying...

Determine which w3wp.exe process belongs to which App Pool in Windows 7 / IIS7.5?

I've recently upgraded my development machine from Windows XP to Windows 7. How can I tell which w3wp.exe process belongs to which App Pool on a desktop running Windows 7? On a server running IIS6, you can run c:\windows\system32\cscript iisapp.vbs On a Windows 2008 Server running IIS7 you can run appcmd list wp But what about on my...