-
Posted to
IIS7 - Setup
by
CarlosAg
on
20 hours, 12 minutes ago
Which SKU of Windows 7 are you using?
Have you double checked if Windows auth is installed? Run "optionalfeatures.exe" and inside "Internet Information Services -> World Wide Web Services -> Security" make sure it is checked.
If the option is not there, see: http://forums.iis.net/t/1140631.aspx
-
Posted to
IIS7 - Known Issues and Workarounds
by
CarlosAg
on
11-19-2009, 2:31 PM
A couple of comments before posting the solution, I would consider using instead URL Rewrite for this, that way you can continue to name your pages .ASPX physically and just rewrite the URLs from HTML to be ASPX, this way editors, etc, just work as expected.
Now, to map a different extension I wrote a blog on how to do it, but I figure I would ...
-
Posted to
IIS7 - URL Rewrite Module
by
CarlosAg
on
11-18-2009, 2:06 PM
Yes, thanks for reporting it, we have confirmed this is a bug in our code, the problem will reproduce in Windows XP and Windows 2003, basically the code is trying to use an API that is only avaiable in Windows Vista and later, but the check to prevent this code path to happen in XP and 2003 failed so its causing to try to use it which will ...
-
Posted to
IIS7 - UI & Remote Management
by
CarlosAg
on
11-18-2009, 1:20 AM
Depending on which settings you want to enable, enabling SSL you basically have to add a binding, the Site has a Bindings collection which has an overload that receives the certificateHash and the certificateStore, something like:
ServerManager serverManager = new ServerManager();
serverManager.Sites["Default Web ...
-
Posted to
IIS7 - Extensibility
by
CarlosAg
on
11-18-2009, 1:16 AM
Basically you need to add it to the root applicaiton for the site, something like:
using(ServerManager mgr = new ServerManager()) {
mgr.Sites["Default Web Site"].Applications["/"].VirtualDirectories.Add("/", @"C:\test");
}
(Note I typed this here, so the Add path/physicalPath could be backwards, but I ...
-
Posted to
IIS7 - General
by
CarlosAg
on
11-18-2009, 1:11 AM
Here is how you can get the path for default web site:
using(ServerManager serverManager = new ServerManager() {
Console.WriteLine(serverManager.Sites["Default Web Site"].Applications["/"].VirtualDirectory["/"].PhysicalPath);
}
(note that I typed it in here, so typos might exist but ...
-
Posted to
IIS7 - URL Rewrite Module
by
CarlosAg
on
11-17-2009, 1:14 PM
Just to confirm, are you connecting from Windows XP or Windows 2003?
-
Posted to
IIS7 - Extensibility
by
CarlosAg
on
11-13-2009, 1:48 PM
Of yeah, and when you install the SDK's or VS (which ships them) you will have it at:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
-
Posted to
IIS7 - Extensibility
by
CarlosAg
on
11-13-2009, 1:48 PM
Gacutil is no longer part of the .NET redist, you need to get the SDK. However to add it to the GAC is enough to just open Windows Explorer and navigate to C:\Windows\assembly and drag and drop the DLL there. This will be equivalent to gacutil it.
Of course of this is for distribution, the right approach is to write an installer or some setup ...
-
Posted to
IIS7 - General
by
CarlosAg
on
11-13-2009, 1:45 PM
That seems to be iterating all the sites and finding the first root application that has a physical path, is that right?
Is the intent just to get the physical path of the first site?
That would be:
using(ServerManager mgr = new ServerManager()) {
return ...