iis7

IIS7 URL Rewrite Regular Expression

I am trying to set up IIS7 so the a URL with the pattern: www.test.com/docs/ADocument.pdf will get redirected to the URL www.test.com/1.0/docs/ADocument.pdf I am having trouble with the regular expression. The pattern should work with any page at the end of the url. ...

BUG: IIS7 managed requests

(I don't know whether should I also post this question to ServerFault, since it's about IIS configuration?) In IIS7 we can tell a module to run for managed content (thus speeding up static content serving) by: <modules> ... <add name="WhateverName" type="WhateverType" preCondition="managedHandler" ... </modules>...

The error "Login failed for user 'NT AUTHORITY\IUSR'" in ASP.NET and SQL Server 2008

My ASP.NET v3.5 web application is throwing the following exception when it attempts to open a connection to a SQL Server 2008 database: System.Data.SqlClient.SqlException: Cannot open database "MyDbName" requested by the login. The login failed. Login failed for user 'NT AUTHORITY\IUSR'. The thing is, I've added NT AUTHOR...

ASP.NET application/web service not working on Windows Vista/IIS 7: access right problem?

I have a .NET 3.5 based web service running at http://localhost/serivce.svc/. Then I have an ASP.NET application running at http://localhost/myApp. In Application_Load my application reads some XML configuration from the web service. That works fine on my machine, but: On Windows Vista with IIS 7 the request to the web services fails. ...

"Invalid Certificate" Error from IIS 7

I am running my code via debugger in asp.net and it works fine, I can authenticate against the remote web service, and no problems detected. I then created an installer for my application, and its setup as a virtual directory in IIS7, default website (just for testing) Now I get this error, when i run the code, and it pulls data from ...

really annoying permissions problem with IIS

I've created a web site (virtual directory) in IIS7. Now for some reason 1 folder I create in the web site, has read only permissions... Doesn't matter what I do, I can't get rid of the read only flag. . I tried: deleting the folder, recreating it - read only!!! setting permissions to uncheck read only... again it resets itself auto...

How does IIS7 authorization work when setting up an application outside of wwwroot

I tried to add a new application in II7 and point it to another directory on my hard drive outside of wwwroot. I have it under the default app pool and connecting as an application user. The application contains simple static html pages not asp.net and this is my development server and will only be used for just that. When I try to acce...

Running .NET 2.0 & 3.5 web sites in IIS 7

I heard there is a problem or a certain way you must setup IIS in order to run both .NET 2.0 and .NET 3.5 sites concurrently? We don't see a .NET 3.5 option in the dropdown when configuring the site framework. ...

Regular Time Interval - App Pool Settings

Someone on our prod server had set the "Regular Time Interval" setting in the Recycling section to 0 on our app pool advanced properties. Well, I tried that on our dev server. And I get this error: The 'Idle Time-out (minutes)' property of the application pool's process model must be less than the 'Regular Time Interval (minutes)' pro...

Custom Http Handlers IIS7 and ASP.NET

We have some HTTP handlers specified in our web.config. When we were running this site via a Web Site Project, all worked fine. But for some reason, after porting this over to a WAP project and pointing to the .NET 3.5 framework, the handlers are not working when I bring up the site in IIS 7 on our dev box. Do I need to do something s...

Separate application pools for ASP.net applications in IIS

I've read recommendations that we should create separate application pools for each asp.net application on our Win2008 server. We have about 20 apps that would be on the same server. I know this would create 20 separate worker processes which seems very wasteful. Is it good practice to create separate application pools for each applic...

System.Security.SecurityException when writing to Event Log

I’m working on trying to port an ASP.NET app from Server 2003 (and IIS6) to Server 2008 (IIS7). When I try and visit the page on the browser I get this: Server Error in ‘/’ Application. Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the ...

How to remove application from IIS7 website

We are migrating some ASP.NET applications from IIS6 to 7. In IIS6, you could create a website and then REMOVE the application. We have several sites with static content to migrate so we would like to do the same in IIS7 but cannot seem to find a way to remove the application. OTOH is there any overhead to having a website in IIS7 that ...

Any way to access the IIS kernel cache from ASP.Net?

This only clears items in the user cache: public static void ClearCache() { foreach (DictionaryEntry entry in HttpRuntime.Cache) { HttpRuntime.Cache.Remove(entry.Key.ToString()); } } Is there any way to access the kernel cache as well? Clarification: I want to print the keys of all item...

WCF Windows Activation Services Debugging

I have a WCF service hosted in WAS using net.tcp. Am I correct in thinking that this runs under a svchost process? If so, how do you use "attach to process" in VS to debug? Thanks ...

How to set default homepage for subdomain on iis7?

I've already set default homepage for "www.mydomain.com" sucessfully. Now, I want to set default homepage for "sub.mydomain.com", but it throw 404 page if i don't type "sub.mydomain.com/default.aspx" ? The first and the second site are separate physical folders and virtual directories on iis7. ...

ASP.NET Web.config question

The server is IIS7. Is there a way to disable web.config files in subfolders? I am asking because, I have a folder on the web server that is for uploads. When someone uploads files, a new folder is created for the user's session and the files they upload go in the folder. So the path to uploads would be like this: ~/uploads/3F2504E0-4...

CC.Net Access Denied Error

I have CruiseControl.Net setup as my continuous integration environment. I've been working on adding a Visual Studio 2008 Web Deployment Project to my solution but I'm getting a weird "access denied" error and I can't figure out why. I have CC.Net running under its own account on my server which is a member of the administrators group, ...

Classic ASP using COM+ .Net Interop 64 Bit Windows Server 2008 IIS 7 Server.CreateObject Fails

I am having an issue related to executing a .Net dll from a classic asp application on a 64 Bit Windows Server 2008 server running IIS7. The situation is as follows: I have written a .Net C# assembly to perform some encryption tasks. This assembly has been made available to the classic ASP environment via inheriting from ServicedCompo...

IIS7 & X.509 certificates: connecting from asp.net to a web service - where to store certs?

Hi, I have to make a connection to an XMLRPC site from a web application, which uses an X.509 certificate for authentication. Here on my development machine (Vista), I have the keys installed under my User and it's in my Personal certificates storage; if I run my code, it works well (loading the key from a file): X509Certificate cli...