iis7

IIS7, SQL 2008 and ASP.NET MVC security

I have an ASP.NET MVC application that I'm working on. I've been developing it on Windows Server 2003 with IIS6 and SQL 2008 Express, and everything was working great. I recently decided to try out the Windows 7 beta, so now I'm using IIS7, and have run into a problem with connectivity to my database that I can't seem to figure out. I c...

Wildcard subdomains in IIS7. Is it possible to make them like it is in Apache?

Hello! Is this possible to configure IIS7 to achieve the same functionality like Apache has regarding wildcard domains? I'm interested in routing user in ASP.NET web application based on subdomain user used in URL. Something like is described here: http://steinsoft.net/index.php?site=programming/articles/apachewildcarddomain Thanks ...

Retrieve NT User Login in IIS 7.0

I will have a WCF service hosted on IIS 7.0 which uses impersonation as we will be using custom group authorisation, however some of the methods have user restricitions, for example in reality the service is more complex, Group Team A has members A,B,C and D A can access all methods, B can access two methods, C and D can access 3 I h...

Weird behaviour in IIS 7.0 - System.DirectoryServices

I am facing a weird issue in IIS 7.0: I have the following virtual directory in IIS: and only Windows Authentication mode is enabled on the virtual directory in IIS Now if I try to get associated DirectoryEntry for TestV/Folder/file.aspx in this manner: string vDir = @"/TestV/folder/file.aspx"; DirectoryEntry dir = new ...

Setting Integrated mode in web.config for IIS7

In IIS7 you now have an integrated mode and an classic mode. Is it possible to force a site to run in integrated mode using web.config and without access to IIS7. Reason I ask is that I have recently signed up with Mosso and need to run my site in integrated mode and not classic. I know I can call them and maybe get them to change it o...

How can I edit files in c:/inetpub/wwwroot/testsite on vista/IIS7?

I've got IIS7 installed and have a simple website at: c:/inetpub/wwwroot/testsite I can copy files into there, but I can't edit them: I can open them but cannot save them back the files themselves are not write-protected the folder itself ("testsite") IS write protected, so I took the write-protection off (right-click, properties, u...

Route files with vbscript from a .net handler back to asp.dll

We are migrating from asp classic to .net. Unfortunately they named all of the .asp files as .aspx so that they wouldn't lose page rank when they moved to .net. This means that IIS maps all .aspx files to asp.dll. After changing the mapping back I was going to try have a handler grab the request then check if there is any vbscript in th...

Monitoring CPU usage of IIS7 worker processes.

Hello! What is the best way to monitor IIS7 worker processes and store informations about websites which are using CPU/memory too much? Thanks ...

How do I remove eTag headers from IIS7?

Per Yahoo's best practices for high performance web sites, I'd like to remove Etags from my headers (I'm manually managing all my caching and have no need for Etags... and when/if I need to scale to a farm, I'd really like them gone). I'm running IIS7 on Windows Server 2008. Anyone know how I can do this? ...

ASP Error and IIS 7.0

In IIS 6 ASP errors were displayed with the line number and a description of the problem. For example, {call dbo.spGetCommunityInfo(xx)} Microsoft SQL Native Client error '80020005' Invalid character value for cast specification /communitydetail.asp, line 42 IIS 7 changes the way ASP errors are handled and displays something a lot...

IIS 7 managed module can't get Content-Length or bytes sent

I have an ISAPI filter for IIS 6 which does some custom processing using the bytes-sent field of the response. I'd like to update that for IIS 7, but I'm running into a problem. None of the IIS 7 events seem to have access to the content-length, bytes sent, or any data which would let me calculate the content-length or bytes sent. (I k...

Earliest access to the .net lifecycle

After looking at the .net on IIS7 application lifecycle: http://msdn.microsoft.com/en-us/library/ms178473.aspx For maximum performance, I want to find a way to get my code started as soon as the HttpContext object is created but before HttpApplication is. (it's easy to run code after the HttpApplication class is loaded but before any ...

How do you migrate an IIS 7 site to another server?

I'm new to the IIS world but am wondering the best practice for moving a website to another server (along with all settings, etc.) Manually recreate the site on the new server (not maintainable for obvious reasons) Copy the applicationHost.config settings file Use appcmd to make a backup and restore Use MSDeploy to publish the site on ...

Different domains to different pages in IIS7

I have a Default Web Site and another web application (let's call it Application2) inside the Default Web Site in IIS7. I have 2 registered domain names, let's say www.example.com and www.example.net. I would like to configure things that when I open www.example.com I get Default Web Site, when I open www.example.net I get Default Web ...

How can I create an IIS 7 module interface?

I have had many requests come in to a project that I work on, to include an IIS 7 module interface. Does anybody know of any resources for creating an IIS 7.0 module interface? I have searched http://www.iis.net and I have not really found a good article on the basics of how to create an IIS 7.0 module interface. It can be for any pro...

Deny access on particular folder in IIS 7 in php application

Hi, I'm having an PHP application running on IIS7. I want to secure particular folder by modifying web.config. I don't want to use tag in config as this will redirect users to login page. Rather then, I'd like to implement HttpNotFoundHandler. Say for example, http://domain.com/SecureFolder is the directory on which I want to implemen...

Strange communication error in Win2008

I have a windows service that hosts the main WCF service. The clients for this service are both hosted in IIS 7, the first one is an IIS hosted WCF service and the second is a standard Asp.Net application. Both of the IIS hosted clients communicate with the windows service over named pipes. The IIS hosted WCF service can communicate w...

Any known issues regarding empty *.aspx pages with IIS7?

I have an IIS7 web application which primarily serves web service requests. As part of our solution we have two web servers and a load balancer, and the load balancer requests a page from each of its load balanced boxes periodically. The page the load balancer loads is named "Health.aspx", it does not have a code behind, and the entire...

asp.net 2.0 global themes not working on new windows server 2008

We're migrating our .net 2.0 websites from a Windows 2003 server (32 bit) with IIS6 to a Windows Server 2008 (64 bit) box with IIS7. I can't seem to get the global themes to work. Same content/directory structure as our old servers; local App_Themes work fine. Global Theme path: D:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\The...

System.Web.AspNetHostingPermission SecurityException when trying to use ManagedFusion Rewriter on Goddaddy

Hello Everybody. I wonder if someone could help me out with an issue I'm experiencing trying to get my site up and running on Goddaddy. I'm trying to get extension-less url rewriting working using the ManagedFusion Rewriter (http://www.codeplex.com/urlrewriter/) Unfortunately I'm getting the following error: Server Error in '/' Applicat...