iis7

How to prevent AppDomain recycles in IIS 7.0 when deleting a sub directory?

I have an asp.net web application that allows users to upload files to an 'uploads' directory that is located in the same virtual directory as the web app. Each uploaded file goes into a temporary sub directory that is named after the user's session id. Once I'm finished with the files, I delete the temp sub directory. The only problem i...

ASP.Net web application trying to use Impersonation and Delegation to connect to SQL Server

I'm trying to use Impersonation and Delegation in an intranet ASP.Net web-app in order to pass authenticated users' credentials onto a SQL Server. The web server and SQL server are two separate machines, but in the same domain, so Delegation is required. I've done the following: set <authentication mode="Windows"/> and <identity impe...

IIS7 Home Premium requires Windows Authentication

Browsing many websites, I came to a know that IIS7 does not support "Windows Authentication" if computer is running on Windows 7 Home Premium version. When tried to creating "Virtual Directory" for an web application from "Solution->Properties->Web" it is giving an alert that "Windows Authentication" component should be installed. If H...

IIRF Rewrite Rule for IIS7

i am using IIRF v2.1 for Rewrite Rule i write on rule like this but its not working RewriteRule ^(prod|pag|staf)/([A-Za-z0-9-]+)/?$ $1.php?iid=$2 [QSA,L] if i use follwoing url http://localhost/prod/22/new-item what i need actual URL is http://localhost/prod.php?iid=22 yes working version is RewriteRule /^(prod|pag|staf)/([A-Za-z...

JS,Images and CSS getting intercepted by HTTPModule

I have a simple HTTPModule which does some custom session state management. public void Init(HttpApplication context) { context.AcquireRequestState += new EventHandler(ProcessBeginRequest); ActivityLogger.LogInfo( DateTime.UtcNow.ToLongTimeString() + " In Init " + HttpContext.Current.Request.Url.AbsoluteU...

Broken Images on IIS7

I have a ASP.NET MVC site and it works just fine when I run it locally. Once I deploy that site to IIS 7 all links to resources are broken (ie. script files, images, css files). Could this be a route issue or would it be an IIS setting? Here are my routes: public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRou...

How to set ASP.NET version for virtual directory in windows 7

Hi All, can anyone guide me how to set ASP.NET version for virtual directory in windows 7. I am searching in IIS Manager, The UI of IIS Manager in Windows 7 is totally changed and I could not find it at all. ...

Use WMI to create IIS Application Directory with C#

We have a web application that is installed on Windows 2003 and Windows 2008 systems. In the past, our install code used ADSI to create a couple of application directories in IIS, but this requires the IIS 6 management components to be installed in Windows 2008. I have been trying to use WMI to create the application directories so we ca...

Proper setup for IIS7.5 machine account for anonymous Web site access

Using IIS 7.5, IIS_IUSRS is supposed to be the account to use. I get '401 - Unauthorized: Access is denied due to invalid credentials' error. If I add an EVERYONE account with Read, it works. But rather not have Everyone account. Any idea why IIS_IUSRS does not work? It has Read access. Anonymous Access=enabled. Specific User=IUSR As a ...

Class 'CLSID_CorSymWriter' could not be created: Access is denied.

i keep getting this error. not sure what it is. this is what i have done so far. am working on VISTA and have IIS7. i created a new site and have a directory with my aspx files attached to it. then i converted one of the subfolders to an application. But for some reason when i try to turn on that application (right click browse) i get th...

WCF communication between 2 servers crashes after IIS7 process recycle

Hi guys, I am kind of stumped with this one, and was hoping I could find some answers here. Basically, I have an ASP.NET application that is running across 2 servers. Server A has all of the business logic/data access exposed as web services, and Server B has the website which talks to those services (via WCF, with net.tcp binding). T...

Global 301 redirect using IIS7 and applicationHost.config

I have written a simple redirect rule for IIS7, I would like to apply this same rule across the entire server so I added it to the applicationHost.config via the IIS interface. I have confirmed it has created the rule correctly in the file, however it simply does not work, I get no error so it is hard to know what I am doing wrong? ...

IIS 7 Restarts Automatically

Dear Gurus I have a WCF Service Deployed on IIS. (BasicHTTPBinding with [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]) I have built custom in-memory session management and Now I am facing a strange problem that is IIS 7 Restarts Automatically without even throwing any kind of warning...

How do I compress a Json result from ASP.NET MVC with IIS 7.5

I'm having difficulty making IIS 7 correctly compress a Json result from ASP.NET MVC. I've enabled static and dynamic compression in IIS. I can verify with Fiddler that normal text/html and similar records are compressed. Viewing the request, the accept-encoding gzip header is present. The response has the mimetype "application/json", bu...

BizTalk low latency - response time issue calling C# to WCF-Published-Orchestration

Calling a WCF published orchestration from a C# program usually is sub-second response time. However, on some occasions, it can take 20-50- seconds between the call in the C# program and the first trace message from the orchestration. The C# that runs calls the WCF runs under HIS/HIP (Host Integration Services/CICS Host-Initiated Proce...

Registry access error when Migrating ASP.NET application to IIS7

I'm running windows 7 64-bit and iis7. I'm trying to setup a web application that was previously in iis6 on XP. It's giving me the error below. I've added the network service user to the Performance Monitor Users group to no avail. Access to the registry key 'Global' is denied. Description: An unhandled exception occurred dur...

asp.net localhost or ip issues

Hi, This is my current situation: Im trying to execute a website that access to some files in my hardisk. Im into a network of a company with an ip. I have IIS 5.1. This is the problem that im having: When i try with localhost, there isnt any problem, but when i try with the ip of my network computer, i get "file not found", an...

Does IIS 7 have limit of simultaneous requests?

Hi, Does IIS 7 have some limit of simultaneous requests? I'm using Windows Server 2008. Thanks in advance. ...

ASP.NET session state and multiple worker processes

I need to understand something about ASP.NET session state, as it applies to IIS 7 and ASP.net 3.5. If an application is configured to use in-process session state, will that work OK if there are multiple worker processes? In other words, do worker processes share session state? The default configuration for IIS 7 is to use in-process ...

FormsAuthentication redirecting to login page when visiting root of website

I wanted to use FormsAuthentication to secure my static files as well on my site, so I followed the instructions located here http://learn.iis.net/page.aspx/244/how-to-take-advantage-of-the-iis7-integrated-pipeline/ under title "Enabling Forms Authentication for the Entire Application". Now though, when I try to visit the site by going...