iis7

How can I impersonate the current user with IronPython?

I am trying to manage an IIS7 installation remotely using the Microsoft.Web.Administration library. I'm doing this in IronPython: import Microsoft.Web.Administration from Microsoft.Web.Administration import ServerManager manager = ServerManager.OpenRemote("RemoteServerName") for site in manager.Sites: print "Site: %(site)s" % { '...

How to restrict download of specified file types

I want to restrict my web app so that .ini files can not be downloaded/shown. Is this something I can set up in my web.config file? EDIT based on answer: I tried this in my config file: <system.web> <httpHandlers> <add verb="*" path="*.txt" type="System.Web.HttpForbiddenHandler" /> </httpHandlers> </system.web> ...bu...

MSSQL, Joomla and IIS7

Is there a MSSQL Provider for Joomla? I know that there is a MSSQL Client for PHP in beta and I wonder whether it would be hard to change the database provider to point to MSSQL instead of MySQL. ...

Drupal, SQL Server and IIS7

Is there a SQL Server Provider for Drupal? I know that there is a SQL Server Client for PHP in beta and I wonder whether it would be hard to change the database provider to point to SQL Server instead of MySQL. ...

How do I reference a site by ID using IIS7 APPCMD?

I know how to reference a site by name to stop and start it? For example: appcmd stop site /site.name:"Microsoft SharePoint Administration" How do I reference a site using its IIS ID? I tried these variations: appcmd start stop /site.id:2 appcmd start stop /site.id:"2" appcmd start stop /site.id:2 appcmd start site /section:sites /[i...

Cache-Control Header & Browser Caching IIS7

Hi Guys, I am using Google Page Speed on my website in IIS7 and I was wondering how to set Leverage browser caching - The following resources are missing a cache expiration Leverage proxy caching - Consider adding a "Cache-Control: public" header to the following resources. I am using doDynamicCompression in my web.config and little...

how does iis 7 generate etags

what method/algorithm does iis 7 use to generate etags. I'm looking for exact, not 'well they use checksum on the date' This leaves lots of questions. What algorithm for checksum, which date, which format of the date (short, utc, 'mm-dd-yyyy ttad', 'MMDDDYYY', etc) Thanks in advance. i have scoured the net and cannot find this answer....

IIS 7 Applications and asp.net - newbie question

Just getting started on a project to migrate from win 2003 iis6 to win 2008 / IIS7, and after reading the MS documentation and also various articles I am a little confused, as it states a site needs to have one or more applications. However I have setup a new site pointed at my .Net 3.5 directory and it works. This means that .... A...

Problem connecting to MySQL from ASP in IIS

I have a ASP application running on a IIS7 server on Windows Vista Home Premium (developing environment). The application has an ASA file to configure connections to the database: <SCRIPT LANGUAGE=VBScript RUNAT=Server> Sub Application_OnStart Application("db") = 2 Application("dbconnect") = "Driver={MySQL ODBC 3.51 Driver};Ser...

Application pool restart automaticly if file change in repositery

Why does the application restart automatically when we create a new folder under a web site in IIS 7.0 or Cassini? Is it a config we can change ? What is the impact ? I read this post and the post not answer to my question ...

can we program classic ASP in VSTS 2008

Hello everyone, If I have .Net 3.5 + VSTS 2008 + IIS 7.0 on my machine, could I develop and debug some classic ASP code (in VB Script). If I can, any reference guide to setup development environment for both IIS 7.0 and VSTS 2008? thanks in advance, George ...

generating Excel file error

Hello everyone, I am using the following code in classic ASP to generate Excel file, the code is simple and it works. I run the code under IIS 7.0 on Windows Vista x86. Two issues, there is a weird warning box, here is the screen snapshot http://i27.tinypic.com/2n81udw.jpg All cells' background is white, no border of each cell sho...

Browser Caching IIS7

Hi Guys, Does anyone know how to set up Browser Caching in IIS7 via the web.config file ? Thx ...

Strange ASP.NET error !

I'm running Windows 7 - x64 Edition with IIS 7.5 I have a simple asp.net website that i've run on other versions of windows and IIS but now, on SOME pages it gives me the following error Exception information: Exception type: HttpParseException Exception message: Request for the permission of type 'System.Web.AspNetHostingPer...

Setting ResponseCode manually at CodeBehind fails with IIS7 and 2008 Server

I have developed a web app a year ago aimed to work with IIS6. Now we are moving to IIS7 and I thought, I'd do some integration tests. One of this fails: The web app is more or less a search-engine, giving a 404 or 500 (thanks to your google-advisor ...) when there weren't any results or the data-container is not loaded yet. With IIS6 t...

Port IIS 7 Setup to another machine

What's the fastest and most efficient way of porting over an IIS setup on one machine to a blank IIS 7 install on another? Including all the sites, applications, virtual directorys, ftp accounts, etc? Thanks. ...

Full folder path prefixed to application root for MVC at GoDaddy

I am having a similar problem as described here: stackoverflow.com/questions/364637/asp-net-mvc-on-godaddy-not-working-not-primary-domain-deployment I have multiple domains pointing to different folders. Each folder is set as an application root in IIS7 on GoDaddy's shared hosting. These folders are [ContentRoot]/websites/folder1, [C...

Debug Classic ASP via IIS 7

I'm having a problem showing detailed errors for classic ASP pages. Initially it just showed default 500 error page, we then followed the instructions here but now it only shows: An error occurred on the server when processing the URL. Please contact the system administrator. Any ideas? ...

Sql Server Filestream access denied

I have trouble accessing filestream via SqlFileStream. Sql server and IIS7 are on different servers, remote access to Filestream is enabled. Workgroup for both servers is the same. I've tried everything, including opening user with identical username/passwords on both servers. Didn't work. Dim sqlFileStream As New SqlTypes.SqlFileStre...

Check if IIS Application is running without causing it to run

I am writing a web monitor app that gives information about all app pools / apps on my IIS server. I am looking for a way in C# to programmatically check if an IIS application is running without causing it to run if it is not. Here is what I have found... application is running, there are one or more sessions active. all sessions dro...