iis7

Mixing Windows and Forms Authentication in ASP.NET MVC

I'm currently trying to set up a website that uses both windows authentication and forms authentication. I am using ASP.NET MVC and both IIS6 and 7 need to be supported. How would I go about letting known AD users into the app (their AD id is stored against their user record in the application database) and directing everyone else to a...

problem using IIS7 SMTP with C#

Hello, I'm trying to make a C# application that sends email notifications, utilizing using the Microsoft SMTP server. The computer where both the SMTP and the C# app are is a Windows Server 2008 with IIS7. It might be confusing to point out IIS7 in the topic since the new SMTP server comes as a feature of Windows Server 2008 and not II...

Programmatically change IIS7's ApplicationHost.config on Windows 2008 64-bit

I need my 32-bit InstallShield installer to make a change to ApplicationHost.config (Part of IIS7). I want to set the value of overrideModeDefaults from "Deny" to "Allow" for the ipSecurity configSection. This works fine in Windows 2008 32-bit, but not in Windows 2008 64-bit. The problem is that the installer only looks in systemWOW64...

How to 301 redirect

Ok, I need to know how to do a redirect (where to put the code or specify the setting). We're redirecting from one app to another after we've moved the app. So for example, if a user goes to existing.example.com/archive/ we want to redirect any requests that contain old.example.com to new.example.com. The rest in the url stays the sa...

.msi Installer for web setup project fails on windows 2008 server with IIS 7

Hi, I am trying to install the web setup project on a Windows 2008 server with IIS 7. However, it dies at the first step with the error "The installer was interrupted before could be installed." I tried installing with logging enabled and the log files have an error message like below. MsiGetPropertyW - Getting Property 'VSDNETMSG'...

Do parent website application pools serve child application pools as well?

I am running a .NET web application in its own application pool on IIS7. The parent website is set to run in its own application pool. Today we noticed a huge number of connections going to IIS. I tried to browse a plain ol' .html page in the directory of the web application and it hangs. I then try to browse another plain .html file in ...

Using IIS 7 Redirect Module or coding your own

What's the difference in using the IIS Redirect module to redirect vs. just coding your own and playing with the Response.context? To me it doesn't make a difference, they both do the same thing and it's much easier to just use the redirect module in IIS as it appears to redirect relatively anyway! Same as this code is doing in lets sa...

SQL Server Session State, web farm, and IIS configuration

So I set up SQL Server Session State using SQL Server 2008 and the temp database and today I decided to look into the data in the tables only to find this in the ASPStateTempApplications table: AppId AppName 538231025 /lm/w3svc/1/root 611758131 /lm/w3svc/3/root 802488340 /lm/w3svc/4/root -940085065 /lm/w3svc/4/root/webapp 68...

How to verify 301 redirect

Other than having to install something like Fiddler on my server, after adding a redirect in IIS, is there a log or something or a way built-in to show me that a valid 301 redirect took place other than seeing it redirect at runtime? I guess what I want is true proof so that I can verify it's really doing the 301 for SEO even though I d...

Changing some of COM "things" from external place.

It's a hard question. We have an ASP.NET application, IIS7 server (running classic pipeline, if its relevant) and one fat ugly COM objects library. The application uses this library this way: call a function, take result, show it. The problem is: the COM library has no function to change language preference - it initializes it from the "...

Website encrypted url does not work in IIS7?

Website (asp.net) is running fine under II6. But under II7, pages where URL is encrypted do not work and and throwing Application_Error Exception of type "System.Web.HttpUnhandledException" was thrown. Request Path: / Thanks ...

Need to find Default Web Site's Home Directory in IIS

Hi, My InstallShield installer needs to install a file in the IIS Default Web Site's Home Directory, and set it to the default web page. Unfortunately, in our environments, I can't assume that the home directory is C:\Inetpub\wwwroot, but I need to find out what it is. Any idea on how I can do this with a script? We need to support...

Classic ASP on IIS7: ADODB.Stream error File could not be opened - accessing outside the webroot

I've just reinstalled a server, it is a new machine, same OS verion (Win2008) and same IIS version (7.0). The app was working perfectly (and then the machine blew up). I'm getting this error when I try to access a file outside the webroot: ADODB.Stream error '800a0bba' File could not be opened I can access it fine using FileSystemObje...

IIS7 + NHibernate: Illegal operation attempted on a registry key that has been marked for deletion

We have an asp.net MVC app using Fluent Nhibernate running on top of IIS7 & Windows Sever 2008. Frequently (although so far we have yet to consistently reproduce it) after a build we get a yellow screen of death with this exception: [COMException (0x800703fa): Illegal operation attempted on a registry key that has been marked for delet...

Modifying headers with IIS7 Application Request Routing

I'm using IIS7 Application Request Routing in front of Tomcat as a replacement for ISAPI redirection. The basic reverse proxy function is working well, but I don't have enough information in the final request headers. My application exists on several subdomains: customerone.ourservice.com, customertwo.ourservice.com, etc. Each subdomain ...

Recreate DefaultWebsite on IIS7 / Windows Web Server 2008

Dear All, I have accidently deleted the default-website on an "experimental" machine. It is a standard-installation of "Windows Web Server 2008" with II7 running. I have already tried to create a custom website on my own, but this always fails when I try to access the website in the browser (remote and locally). There is an endless num...

SQL Server and windows authentication in IIS7

I'm trying to get an ASP.NET website running on Vista (IIS7), using SQL Server and Windows Authentication. No matter what I do, when I connect to the database, I get the exception: SqlException was unhandled Login failed for user 'MyDomain\MachineName$'. It doesn't seem to matter what settings I apply, I cannot get IIS7 to pa...

Visual Studio 2010 Beta does not attach to w3wp.exe automatically on debugging IIS7

I don't know if this a bug of VS2010 Beta, but right now breakpoints don't get hit, when I start an ASP.NET debug session by pressing F5 (Web settings configured to "Use Local IIS Web server".) I always have to switch back to Visual Studio, press Alt+Ctrl+P and manually attach to w3wp.exe process. Then, after reloading the website in In...

You are not authorized to view this page

I am getting the following error while browsing the my webpage i checked and seen anaymous access has been enabled and integrated aunthentication has been turned off ... Could you please help? You are not authorized to view this page You do not have permission to view this directory or page using the credentials that you supplied. ...

flex upload problem on IIS7

i get the flash upload here: http://www.codeproject.com/KB/aspnet/FlashUpload.aspx?msg=3262818 i'm using vista and IIS7, visual 2008 ASP.NET development server http handler url: http://localhost:8080/Upload.axd IIS7 http handler url: http://localhost:81/Upload.axd Problem: When running this on ASP.NET development server, everything...