iis7

XmlHttpRequest with If-Modified since, webserver returns "400 Bad Request"

LS, Whenever I use the following code, the webserver (running IIS 7) refuses to send me content, but sends a "400 Bad Request" instead. request.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); Kind regards, Matthias Vance ...

Request is not available in this context

I'm running IIS 7 Integrated mode and I'm getting Request is not available in this context when I try to access it in a Log4Net related function that is called from Application_Start. This is the line of code I've if (HttpContext.Current != null && HttpContext.Current.Request != null) and an exception is being thrown for second co...

iis7 compress dynamic content from custom handler

I am having trouble getting dynamic content coming from a custom handler to be compressed by IIS 7. Our handler spits out json data (Content-Type: application/json; charset=utf-8) and responds to url that looks like: domain.com/example.mal/OperationName?Param1=Val1&Param2=Val2 In IIS 6, all we had to do was put the edit the MetaBase.x...

Can you specify allowSubDirConfig in the web.config

Is it possible to set the allowSubDirConfig to False in the web.config of the actual virtualdirectory? ...

Impersonation - Access is denied

I am having trouble using impersonation to delete a PerformanceCounterCategory from an MVC website. I have a static class and when the application starts it checks whether or not a PerformanceCounterCategory exists, and if it contains the correct counters. If not, it deletes the category and creates it again with the required counters. ...

What is wrong with my Basic Authentication in my Browser?

Hi folks, i'm trying to goto the following url :- http://user1:pass1@localhost:1234/api/users?format=xml nothing to complex. Notice how i've got the username/password in the url? this, i believe, is for basic authentication. When I do that, the Request Headers are MISSING the 'Authorize' header. Er... that's not right :( I have ...

ASP.NET Session State Error only on default document

I have a site where when accessing via site.com/default.aspx everything is fine, however when accessing via site.com/ I get a session error as follows: "Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModu...

Debug assertion does not prompt in IIS 7

Hi, since moving to Windows 7 (IIS 7.5), the debug assertions do not prompt a pop up dialog anymore. I have tested this in a separate project, and noticed that they do work when using the integrated Visual Studio Developer server (Cassini) but they do not work when using IIS Web Server. This is a big issue for us since we are counting ...

Help setting up IIS 7.0

I am trying to setup IIS on my laptop. I have followed a guide which said to go to: Control Panel > Programs > Turn Windows Features On / Off > Click on IIS. I have done this and my computer now says that IIS is running. However when I visit http://localhost in my browser I get a 'Page Cannot be Displayed' error. I have had it workin...

Dispatching on the host header asp.net mvc

Hi, I'd like to implement Dispatching on the host header like stackexchange team did. Any ideas? ...

Uploadify works for Visual Studio but not for IIS 7(same machines), using Forms authentication. Does anyone have a working uploadify configuration for IIS 7 where they save to a subfolder?

I'm using the Uploadify jQuery control for client-side uploads. I think my IIS 7 configuration has issues with it. The uploadify POST immediately returns a HTTP 1.1 302 Found, back to my login page. I've tried to allow anonymous access to the uploading section(subfolder) plus the page(script) that processes the image in the web.config,...

Connecting to SQL Server 2005 using classic ASP

I have installed both IIS and SQL Server 2005 on my laptop. Both work individualy, however when I try to connect to an DB from an ASP page I keep getting the following error: Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "DB1" requested by the lo...

Can't resolve "UnauthorizedAccessException" with MVC 2 application running under IIS7

We use MVC controllers that access System.File.IO in our application and they work fine in localhost (IIS 6.0-based Cassini). Deploying to IIS7, we have problems getting the controllers to work because they throw UnauthorizedAccessExceptions. We have done the following to try to resolve the issue: - Set NETWORK SERVICE and IUSR account...

How to setup CF9 with IIS7 (multiple instance, virtual hosting by hostname)

I'm used to setting up CF9 (Dev edition) on my Windows using Apache. I would like to try using IIS7 that comes with Win7 Pro. What are the steps to set it up so that I can have: www.siteA.dev www.siteB.dev Both of these point to 127.0.0.1 via windows host file. I would like siteA.dev & siteB.dev to use 2 different CF instances. I ...

Output Caching with IIS7 - How To for a dynamic aspx page?

I have a RetrieveBlob.aspx that gets some query string variables and returns an asset. Eeach url corresponds to a unique asset. In the RetrieveBlob.aspx a Cache Profile is set. In Web.Config the profile looks like (under system.web tag): <caching> <outputCache enableOutputCache="true" /> <outputCacheSettings> <outputCacheProfil...

IIS7 folder permissions for web application

I am using windows authentication without impersonation on my company's intranet website with IIS7. Under IIS7, what account is used to access the folder which contains my web app using these settings? Would it be IIS_IUSRS? Or NETWORK SERVICE? Or another I don't know about? ...

IIS: https://mysite.com switches to http://mysite.com:443 after form submit

I have a .net 3.5 site with "require SSL" option checked. After submitting any form I got a message "The page contains both secure and nonsecure items" and if I click "yes", it changes the url from "https://mysite.com/..." to "http://mysite.com:433/...". Does anyone know what can be the problem? Edit: this happens only when I submit p...

Modx error page won't display

I've developed a site in modx but after migrating it to the live server if I enter a page that doesn't exist (eg http://mysite.com/index.php?id=5) I'm getting the default IIS error page rather than the page specified in Tools->Configuration->site->Error page Any idea why this could be happening? For the record I developed on Apache bu...

IIS7 Mixed Mode Authentication

We're getting ready to start migrating some of our IIS6 sites to IIS7, and the application currently uses Forms Authentication. We have started getting some requests from various sites to use the Windows Authentication for the users. While this is easy enough to implement (and I've shown internally that there is no issue with the app, as...

ASP.NET MVC not using controller for explicit file route in IIS7

Consider a StaticResourceController that locates and serves files. I've set up an explicit route for "favicon.ico" that will handle the request for this file using StaticResourceController: routes.MapRoute( "favicon", "favicon.ico", new { controller = "StaticResource", action = "Get", file = "favicon.ico", area=...