iis7

ASP.NET Mvc absolute url with an application inside a website

Hello everyone, I have 1 website on IIS ("myWebsite") and another inside this one ("secondWebsite") as an application. Both are ASP.NET Mvc websites. I have a method who works perfectly on the first one : public static string AbsolutePath(this UrlHelper url, string path) { Uri requestUrl = url.RequestContext.HttpContext.Re...

What is the new method of querying the metabase in IIS 7?

In IIS 6, I typically used code to query the metabase as in the following: var entry = new DirectoryEntry("IIS://localhost/W3SVC"); foreach (DirectoryEntry site in entry.Children) { // Blah } Now in IIS 7, this only functions if IIS 6 compatibility is installed. What I'd really like to do is use the recommended IIS 7 way of doing thi...

How to programatically detect if my application is running in IIS 7.0 Integrated mode from within an ASP.NET page

Generally we should have control of our AppPools and be able to force the Managed Pipeline Mode. In my case I don't have control and would like to implement the code behind code a little differently based on the Managed Pipeline Mode (Integrated vs Classic). I just don't know how to detect this. Is there a simple way to do it from within...

Default.aspx not firing events

We have recently put up a new server with IIS7, where we now have published a .NET4 site. Locally everything works fine, but on this server the Default.aspx is not working. No events are firing at all for this page. Every other page works as should. We've tried deleting the Default.aspx and adding a new blank one with just a button eve...

Image URL with session string

I cannot display images in my application when I have the session string in the URL. This works: http://server/application/image.png This doesn't: http://server/application/(S(ane2sz55z15ra045gocejcq1))/image.png It worked fine when it was running in Windows XP, but now I have moved it to Windows Server 2008 instead. The same happens ...

Login failed for user ''.

I have a an ASP .Net MVC website which works fine when testing locally. I have put the website onto IIS 7 on our windows server 2008 machine. The website uses .net membership provider and when I try to login I receive the following error: Login failed for user ''. This is the membership connection string: data source=(local);Integr...

XML Parsing Error: not well-formed error in IIS7 & CruiseControl.NET

I've set-up a cruisecontrol.net server with IIS7. I want to be able to view the web dashboard. Everything has worked for me before fine in IIS6, but now it seems to be broke in IIS7. If I browser to: http://192.168.93.133:21234/default.aspx I get the following error: XML Parsing Error: not well-formed Location: http://192.168.93.133:21...

Prevent Path from Being Displayed in IIS7.0 500 Error - Detailed Output

I am used to IIS6 and recently tried IIS7 for a new site. One thing that differs is the ability to display the exact error that occurs in a page and output it to the browser. IIS7 will just simply throw a 500 Error page out without explaining the details, unless the detailed output option is selected. However, when I have the detailed...

IIS 7 Extremely slow for .aspx pages

I'm running IIS7 on Server 2008 (R1). When I run a completely blank .aspx page, the page still takes more than one second to load, even after compiling and refreshing the browser several times. A non-aspx file, i.e. image or css file takes about 200ms. I've even timed it from the BeginRequest event to the EndRequest event, which rep...

PHP & .htaccess working together

Any help on this would be greatly appreciated: I have a website running with php on IIS6 IIS7. I am protecting all the .php files by starting a session. The .php pages can only be accessed if the session is started by logging in through the login.php page All my .php files are in the following directory (using as example): home/dir ...

Form Authentication on Purely HTML pages

Hello! I am using forms authentication in IIS7 to password-protect a dev site, but the authentication seems to get by-passed when the site contains only static HTML files + login.aspx + web.config. When I renamed the files to .aspx, I am prompted with the login form I am not doing anything fancy. I have a very simple login script and i...

How to list files and their parent folders in php on IIS server?

I'm working on a site that has a downloads section and I want it to be so that I can simply drop a file in a subfolder of a bin_docs directory and have it linked and listed automatically by the server on page refresh. I see people using a combination of php and .htaccess rules to accomplish this, however the site will be hosted on an I...

Error 500 with custom HttpHandler in ASP.NET website (IIS 7.5, Win7)

Hi I'm trying to get custom HttpHandler working in my sample web application. I've been experiencing a lot of issues, but finally got stuck with error 500. Application pool is being run in Classic ASP.NET 2.0 mode. Server is IIS 7.5, OS is Win 7 Pro. Here's a code of my handler: public class SampleHandler : IHttpHandler { public ...

How to Setup Mercurial Security.. specifically the users.

I have mercurial setup by following these instructions. I'm trying to understand where or what file to setup the users in. Everything I've read seems kind of cryptic... it gives all these snippets of code saying use this but it seems to be leaving out steps of how it's all connected and what file to put the snippets of code in... can so...

How to skip authentication for certain user agentes on IIS7?

Hello! I'm writting a software in C# and .NET to manage my store, which has a site where you can go and opt in to receive a sellers person visit. This site has an behind the scenes manager, but I want the software to do this instead, effectively removing the browser manager and the first step towards this goal is to allow the software a...

Define connection pool size in iis 7 (not by connection string)

So our connection string is constructed from app settings rather than stored as an actual connection string. Stupid I know, was done years before I was here. Question is, can I do something in the web.config or in IIS itself to define the processes default connection pool from a configuration standpoint so I don't have to change the cod...

Looking to use a Hierarchical configuration system like the one in IIS 7 for my own application

As the title states, I would like to implement a Hierarchical configuration in my application. The configuration system in IIS7 is basically what I need. Configuration applies to a Hierarchical collection of objects Defualt configuration is applied to the root node Individual settings propagate down the hiearchy At any point in the hi...

Error in opening Silverlight 4 application thorugh aspx page in XP

Hi, I created a silverlight business application on VS2010 in my Win7 virtual PC. I only added a button to home.xaml..rest everything else is untouched in the template's code. I deployed the application on IIS 7 and when I try access it on win XP machine..I get an error "Unhandled Error in Silverlight Application" code: 2105 After a b...

IIS7 doesn't seem to like <soapExtensionTypes>, what's the alternative?

I'm essentially logging errors to ELMAH in the same way as this SO answer suggests but initially I got an error from IIS suggesting the setting wasn't used and then when I cleared up the error (by turning of legacy config validation) my hooks don't appear to be called. HTTP Error 500.22 - Internal Server Error An ASP.NET setting has bee...

.NET 4.0 framework on same server as .NET 1.1

Can these framework versions work and play well on the same server? Meaning that can IIS support two application pools where one pool is configured with .NET 4.0 and the other with .NET 1.1. EDIT: This question is concerned with IIS 7. ...