iis7

Microsoft.Web.Administration on Windows XP

Is it possobile to use / reference Microsoft.Web.Administration in Visual Studio on Windows XP ? I know, that is not possible to install IIS 7 on XP, but I (must) use Windows XP as a development machine. ...

IIS7 and 301 permanent redirects using the location tag in web.config

I need to setup some 301 permanent redirects in the web.config of an ASP.NET MVC application running under IIS. The easiest way is to add a tag similar to the one below to the web.config file: <location path="TheMenu.aspx"> <system.webServer> <httpRedirect enabled="true" destination="menus/" httpResponseStatus="Per...

How can I change a virtual directory's physical path in IIS7 and C#?

I need to change the where a virtual directory's physical path is in C#. This is executed via an installer so it will be running on the machine where the virtual directory resides. This is what I have so far: using (DirectoryEntry webSiteRoot = WmiUtility.GetWebSiteRootDirectory(webSite)) { DirectoryEntry...

Programmatic check if the IIS6 compatibility role is enabled/disabled in IIS7

How can I check with C# if the IIS6 compatibility role is enabled/disabled on IIS7 ? ...

IIS 7 Website Migration & Configuration

Hi - I am in the process of migrating an existing webserver running IIS 6 to IIS 7. I have setup the new websites on the new server but cant seem to test them as once I have entered the domain name when I selec t "browse" from within IIS 7 I get the site on my original server. How can I test the configuration of my new sites on my new ...

wcf 4.0 service on IIS7

I am currently developing a service with wcf 4.0 (visual studio 2010 RC). When I try my service on the Visual Studio Development Server, it all works perfect. However, when I tree to run my service on IIS7 on a windows 7 machine, the service doesn't work anymore. (I already changed the framework version on my application pool). When I...

How to programmatically get sites list and virtual dirs in IIS 7?

Does anybody know how to programmatically get the sites list and virtual dirs in IIS 7? ...

Default document on GoDaddy when using UrlRewriter.net

I've got an Asp.net site set up on GoDaddy which is using UrlRewriter.net (not to be confused with UrlRewriting.net) to enable url rewriting which seems to be working ok, though I had to set IIS to run in IIS6 mode, rather than IIS7. The problem I have is that my default document is 'virtual' so while it's possible to browse to mydomain...

How can I stop IIS7 from using HttpHandlers?

I'm having a bit of a play around with IIS7, just trying to catch events manually in global.asax and skip the ASP httphandler pipeline entirely. To this end, I've set <httpHandlers> <clear/> </httpHandlers> <httpModules> <clear/> </httpModules> but when I call the server I get a YSOD [HttpException]: No http handler was fo...

URL Rewriting under IIS at readyhosting

Hello all, I have a website designed in ASP.2.0 (classical Asp) i wanted re-write my all urls using Microsoft url rewriting tool. my web website is hosted on shared server with ready hosting company. Now the Readyhosting people said that they are not giving any support to these modules. Can any please help me in this. Thanks, Rau ...

IIS 7.0 Global CSS File

I am setting up my new 2008 Server w/ IIS 7 and I am having trouble getting a global application style css file to apply to my web apps. So my app is in c:\inetpub\wwwroot\firmApps\applicationName and my css is in c:\inetpub\wwwroot\firmApps\applicationStyle/global.css. This set up works fine on my production and test iis 6 boxes bu...

Why is my WCF Rest Service on IIS7 Authenticating TWICE!?!?

Ok, if someone could shed some light on this for me, I would greatly appreciate it. So here we go. I had a rest service running fine the other day but after I accidentally overwrote the web.config all hell broke loose. I've spent the past day and a half trying to sort things out but I can't seem to figure out what is missing or misplaced...

Castle ActiveRecord: SessionScope.Current is null under IIS 7

I'm using ASP.Net MVC (still 1.0 for now) with Castle ActiveRecord and NHibernate.Linq. All is fine under IIS 6. However, I'm faced with a problem deploying my app to IIS 7: ActiveRecord's SessionScope.Current seems to be not available for some reason. Any ideas? ...

IIS7 + WCF + Silverlight problems

Hey, I've been building a silverlight application and a WCF service for a while now and recently tried to host them in IIS7. I installed IIS7 on Windows Server 2008 R2 and added these two application to my default website. I am having a number of problems so im hoping one of you can help out... 1) The silverlight and WCF service applic...

How to differentiate between / (the root) and /default.aspx in ASP.NET

Request.RawUrl always returns the /default.aspx variant. I did not find any way at all to differentiate between these urls. Does anybody know how to do that? Environment is .NET 3.5SP1 on IIS 7. ...

the Access problem by no-WWW

my problem looks strange. when I enter www.upitr.com in browsers, it works, but for upitr.com, It works just in FireFox and Safari while it doesn't work in IE and Chrome. Any ideas? Thanks ...

Loading a .dll file into silverlight (hosted with IIS7)

I seem to have a problem loading .dll files into my silverlight application. this.pluginDownloader = new WebClient(); this.pluginDownloader.OpenReadCompleted += new OpenReadCompletedEventHandler(pluginDownloader_OpenReadCompleted); this.pluginDownloader.DownloadProgressChanged += new DownloadProgressChangedEventHandler(pluginDownloader_...

Anybody have any success getting around IIS7 issues with WiX 3.5?

WiX 3.5 still is having issues with creating websites in IIS7. I can get around most of them, but I'm getting hosed by the inability to configure the website authentication mode. Traditionally, you would just use the WebDirProperties to, for instance, turn on windows authentication: <iis:WebDirProperties Id="OMFG3.5BUGSUX" WindowsAuth...

'URL Rewrite' option missing from IIS Manager (IIS7)

Hi, I just finished building up a new web server (2k8 x64) and have installed 'URL Rewrite' and 'Application Request Routing' but noticed that the 'URL Rewrite' option in IIS Manager is missing. I messed around for a little while by re-installing both modules repeatedly and in different ways and then gave up. I returned later, only to...

IIS7 MVC deploy - 404 not found on some actions

Hello. Once deployed parts of my web-application stop working. Index-es on each controller do work, and one form posting via Ajax, Login works too. Other then that yields 404. I understand that nothing particular should be done in integrated mode. I don't know how to proceed with troubleshooting. Some info: App is using default app...