iis7

IIS 7.0 - Every site suddenly redirecting root request to forms authentication

Suddenly, IIS 7.0 is redirecting every request for the root of any domain hosted on the box to ~/Account/Logon, which is our Forms Authentication redirect. Additionally, some JavaScript and image requests are being similarly redirected, but not other aspx pages. This is not desirable. Nobody will admit to changing anything. Any ideas?...

Self signed certificate IIS7 - The remote certificate is invalid according to the validation procedure

Hi All, I have a website hosted on my web server contacting a secure web service on another server. I have created a self signed certificate and attached it to the https:// binding. I have done 2 things to try and accept the certificate on my web server: Open IE and browse to my wsdl file in the web service - Installed the certificate...

IIS7 & IE8 - Pages rendering differently on same versions of IE8?

I have an ASP.NET (framework 2.0) web app running under IIS7. When I run the app on the server, using IE8, localhost the app runs the way it is supposed to. When I run the app in Visual Studio 2008 (framework 2.0) it runs the way it is supposed to. But when I try to run the app from another computer it renders incorrectly. Same versions ...

Windows 7 running as server

I'm developing a program using Windows 7. There are WCF services (soap, rest) that are used by currently by Silverlight but very soon I'll start development of the mobile application that would make use of these services. On day to day basis I use Mac and Apache to host my website, but during the development of this program I would like...

Error using Session in IIS7

After deployment of my website to IIS I'm getting a following error message when trying to access session: 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.SessionStateModule or a custom session state modul...

write client ip in iis 7.0 log over firewalls

Hi, I need a solution for IIS 7.0 which runs on windows server 2008 64bit to write my clients IP to IIS logs while the server is behind firewalls and proxies (Pass X-Forwarded-For header value). I've tried to install the an ISAPI Filter written by Joe Pruitt. it works great on Windows Server 2003 32bit IIS 6.0, but seems to do nothing ...

Display custom error page when file upload exceeds allowed size in ASP.NET MVC2

Hello! My main issue is that I want to display an custom error page when an uploaded file exceeds allowed size (maxRequestLength in web.config). When the big file is uploaded an HttpException is thrown before my upload action method in the controller is invoked. This is expected. I have tried to catch the exception in a custom attribu...

Movable Type Install IIS 7 Error

I keep getting a crash on the mt-wizard.cgi script that returns: "script failed to send data". I'm not sure what the issue is, and whether it is because of movable type of perl/windows. Any insight is appreciated. ...

Check if in Integrated Pipeline Mode

Is it possible to check if our code is executing in Integrated Pipeline Mode or not? There are some ASP.NET class properties that only work in Integrated Pipeline Mode, and I want to avoid raising an exception if there is a way to test if our code is executing in that environment or not. ...

Visual Studio 2010 hangs when starting asp.net site debugging

Hi, i have problem with Visual Studio 2010 on Windows 7 x64. When i started asp.net site debugging, it stoped working. Only solution is restarting IIS. Have anyone experiences with this? Thanks ...

Share session between domain and sub-domain

We're doing a whitelabelled version of our site, which will be hosted at foo.ourdomain.com. However we need to ensure session is maintained between www.ourdomain.com and foo.ourdomain.com, as our SSL certificate only covers the main domain. In practice this means we'll swap to the main domain on our payment pages, which run HTTPS, and ...

HTTP Error 500.19 - Internal Server Error

i am trying to add an website to iis 7 put when i try to run the website its gives the following error: HTTP Error 500.19 - Internal Server Error Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x80070021 Config Error This configuration section cannot be used at this path. This happens when ...

Configuration of IIS7 Output Caching for ASP.NET MVC controller returning JSON

I know there are lost of related questions already posted on this subject, but none of them seem to solve my problem, so here is another one. I have an MVC project which has a controller that is used for returning JSON strings in response to AJAX lookups. An example of this is a city lookup (type-ahead) - if the user types "Lon" into...

HTTP Handlers in Win2008/IIS7

We are migrating our web sites from Win2003/IIS6 to Win2008/IIS7. Our .NET code is in a WAP form with compiled binaries. I do dev work on a Win7/IIS7 box so had to learn early how to set up HTTP Handlers in this newer environment. What I have that has worked fine on my box is: <system.webServer> <handlers> <remo...

Logging a user session for playback

Running an MVC2 site against IIS7 and would like to capture more detail of how users traverse the site - ideally to the point of being able to replay even the duration between mouse clicks - feedback of where people pause and/or backtrack. I could do this with flash but that's no longer an option. Now it's just IIS7 via asp.net f4. IIS...

IIS 7 - determine decimal symbol

My IIS 7 server uses a C#.NET codefile to read from an MS SQL database (on another machine) and presents it on the web. I made a similar posting before, but the problem has resurfaced and I've not been able to fix it. In this regard I've had a problem with my Norwegian Windows Server running IIS 7. It reads the columns from a database w...

WCF on Win Server 2008 and IIS7 with only net.tcp binding hide IIS features

Hi all, I've installed HTTP Activation and Non-HTTP Activation IIS's features for Framework.NET 3.0 under WCF Activation feature. I'm trying to remove http and https bindings (under default Web Site) from IIS Manager and leave others (net.tcp, net.msmq, etc.) but if I close and re-open IIS manager I not found any icons in the right pan...

How to log POSTed forms submissions?

Back in the ASP classic days when i needed to write out the name/value pairs of forms submitted by POST i thru this loop into the page: on error resume next for each x in Request.Form Response.AppendToLog x & "=" & Request(x) next It threw all the form fields and values into the log just as GETs are. Does IIS7 .net give me any bette...

What is the recommended method of HTTP Redirection from multiple URLs to one URL?

I have a website that has a number of URLs that people use to connect to that site (uses the bindings on the IIS website and everything works as intended): http://www.sample.com http://sample.com https://www.sample.com http://xyz.sample.com http://oldurl.com Now what I want to do is have all of the URLs go to https://www.sample.com -...

Why can event handlers can only be bound to HttpApplication events during IHttpModule initialization?

This is just another "working in dev server, why not working in IIS" type question. I created a nice DAL using NHibernate as described here. When creating an ISession, I hook up an event handler to the HttpApplication.EndRequest to take care of cleaning it up. However, I deployed my site to IIS and it says: Event handlers can only be ...