iis7

What are the minimum security permissions for a website in ASP.NET?

Can someone guide me to a reference for the minumum security permissions on each webfolder in an IIS7 website? For Users, Admin, System, Network Service? I have Network Service as a DB Owner on SQL as well, is this necessary or should I restrict access from it? EDIT: MVC FOLDERS SPECIFICALLY ...

Track IIS Internal Error

I use JavaScript to post an Asynchronous Request to a Web Service. This works about 95% of the time. Sometimes, the request fails to be processed. Below is the error message in the Trace file of IIS: 2009-02-24 06:14:40 W3SVC861612620 10.248.24.20 POST /TestWebService /TestWebService.asmx - 3112 - 10.250.201.45 Mozilla/4.0+ (c...

IIS 7 And Failover Partner

I'm trying to migrate a few asp.net applications from iis 6 to iis 7 and I've run into a few snags along the one. I can't find any documentation for the issue I'm seeing and wanted to see if someone else has encountered the same problem. I'm using SQL Server 2005 db mirroring on my databases. In the connection strings of my applicatio...

Attempted to read or write protected memory at System.Web.Hosting.UnsafeIISMethods.MgdGetSiteNameFromId

I'm getting an AV when I hit a COM interop ASP page (that calls managed .NET code). Feels like this has something to do with IIS 7 / Windows 2008. Google can't figure this out. Any ideas? Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Web.Hosting.UnsafeIISMethods.M...

Can I host a WCF service with NetMsmqBinding in root "/" application of an IIS7 site?

I have created a WCF service with NetMsmqBinding, and hosted it in IIS7 using Windows Activation Service (WAS). Current (works perfectly): Hosted in IIS at: http://localhost/MyService/MyService.svc With the service endpoint address: http://localhost/private/MyService/MyService.svc And the corresponding queue: .\private$\MyService/M...

IIS7 - only serves up one page at a time. It's a making me crAzY!

Situation: Classic ASP application, using a custom Application Pool. Default settings. On some IIS7 machines, IIS decides to serve only one page at a time. So if multiple load any pages from a site, each one has to load in succession. e.g. If I load http://foo.com/default.asp from one browser, and from another machine I load http://...

Can I programmatically add an IP address to Dynamic IP Restrictions extension in IIS7 from my ASP.NET app?

I'm creating a forums based site and want to block the members that post spam or abuse. I was thinking about using an HTTPModule to do this but I came across the Dynamic IP Restrictions extension to IIS7. I wonder if it's possible to add IPs dynamically from my app to the extension? Also, if you have experience with that extension this ...

IIS7 Permission Problem*EDIT

I have a normal Windows Server 2008 installation with II7. Each website has it's own application pool. But there is a security realated problem. There is no restriction for an asp.net application to write a file into C: or any other directorys. In IIS 6 before this could happen I would have to set those rights in the windows folder se...

How to assign a SSL Certificate to IIS7 Site from Command Prompt

Can you advise me whether it is possible or not to assign a SSL Certificate to a website in IIS7 using the APPCMD application? I am familiar with the command to set the HTTPS Binding appcmd set site /site.name:"A Site" /+bindings.[protocol='https',bindingInformation='*:443:www.mysite.com'] and how to obtain current mappings %windir...

Sharing single application across a 2 subdomains in IIS7

I have an application that is currently deployed (ex. www.example.com ). However, now we have a "secure" subdomain, which will take all of the requests that need to be encrypted (ex. secure.example.com). The site that is at www.example.com is currently mapped to C:\inetpub\example.com\wwwroot\, and I've mapped secure.example.com to C:\...

IIS - Different processing of default document in Integrated Pipeline mode?

Hi all, I have an HTTP Module to handle authentication from Facebook, which works fine in classic pipeline mode. In integrated pipeline mode, however, I'm seeing an additional request pass through for the default document, which is causing the module to fail. We look at the request (from Facebook) to retrieve and validate the user a...

IIS7: View resources used by specific website

Is there a way to view the resources (RAM, CPU, etc) used by specific websites hosted in IIS? Something like task manager, but specifically for IIS. ...

Joomla Search Engine Friendly URLs issue on IIS7

Hello, I have Joomla 1.5.9 running with php 5.2.8, mySQL 5.1.31 on IIS7 on a vista 64 dev box. I have both SEO Settings "Search Engine Friendly URLs" and "Use Apache mod_rewrite" working correctly. I'm also setting up a hosted site (with www.mochahosting.com). They use slightly older versions of the same software: Joomla 1.5.5, php 5.2...

Classic ASP always return code 200 in IIS7

Hi, I enabled tracing in IIS7. I set those properties to true in the ASP tab of the IIS management tool: appAllowClientDebug, appAllowDebugging, errorsToNTLog, scriptErrorSentToBrowser; To test it, I wrote a small classic ASP test page in wich I voluntary include a bug (bad activeX name). My asp test page is rendered until th...

How to know for sure if FastCGI is being used to run php scripts

Hello, I have a hosted site and I'm having trouble configuring Joomla (running Joomla + php + mySQL on IIS7 + win server 2008). I have a similar configuration running on a local machine (Joomla + php + mySQL on IIS7 + vista x64), so I was at least able to follow instructions showed in various tutorials on how to set this up. This sympt...

Why am I having a weird issue comparing object instances on IIS 7?

I have a really weird issue that I can't figure out with comparing objects on IIS 7. We are in the process of deploying our old IIS 6 based ASP.NET application on IIS 7, however we have this equality comparison issue that we can't seem to figure out. Let me start out by saying that I have the same assemblies and code running both on I...

IIS 7.0 503 errors with generic handler (.ashx) implementing IHttpAsyncHandler

I'm running into some performance issues using a generic handler that implements IHttpAsyncHandler. At its simplest, the handler receives a GET request, and 20 seconds later ends the response after writing '< timeout / >' to the response. When hammering the .ashx with 10000-20000 simultaneous requests, it fails with 503 server unavailab...

IIS7 Response.WriteBuffer not working

We have an ASP.NET 1.1 application that uses Crystal Reports to spit out an excel spreadsheet. The codes works under IIS6 but when we try to migrate it to IIS7 it is spitting out html with no content instead of the Excel file. The MIME Type exists. Below is the code we are using. I did not write this code as I'm working primarily in ...

Can Intelligencia.UrlRewriter be made to work in IIS7?

We've inherited an application that uses the Intelligencia.UrlRewriter module. Our environment though is IIS7. We've already set our site to run in the classic asp.net application pool (which aparantly works for a lot of these kinds of problems). However we're still not seeing the URLs in our app be rewritten. Has anyone run into this? ...

Creating what is equivalent to an ISAPI extension for IIS7

I've searched the IIS7 MSDN database but can't find any concrete material on how to create custom C#.NET extensions for IIS7, I know that previously in IIS6 you had to write an ISAPI extension in C++ if you wanted to say plug in your own scripting language for websites (this is sort of what I want to do) but in IIS7 you're supposed to be...