IIS 7 Configuration - Is everything configurable via web.config? - iis-7

Is everything in IIS 7 configurable with the web.config?
Is there anything that can't be configured with web.config?
I am using IIS Express and am can't figure out how to do some of the configurations I can do in IIS 7 because I don't have the GUI to configure things.

No, there will be a lot of things that cannot be configure in web.config, such as bindings, permissions, logging, etc.
Try this for an option on how to configure : IIS Express Configuration

Related

Web deploy deleting SMTP configs from IIS

When deploying my asp.net website to IIS using Web deploy, my previously configured SMTP settings (in my IIS application) are erased. I know I can set this settings in web.config but i don't want to.

How to config IIS so that it uses web.config of each folder

I am working on a DotNetNuke module and I need to put some settings in its web.config. So far I was using IIS Express for my development environment and everything was working fine.(The module has a web.config in its folder and it can read its settings from there while it's hosted on IIS Express)
Now I am testing my module on a DNN that is hosted on IIS and the module can't find it's settings ( It seems that IIS doesn't look at web.config files in other folders rather that its main web.config)
The question is how should I configure IIS so that my module can access its web.config in its folder ?
Yes, in IIS you'll have to convert your folder to an application (right-click on that folder), that will create a new AppDomain root and be using a different global.asax, bin folder and web.config.

IIS 7 Authentication Configuration section is not supported

I have discovered that apparently even though encrypted identities are supported in ASP.NET (via encrypting in the web.config), IIS 7 will not allow you to change the authentication settings in the IIS Manager. You get a message like this
A workaround for this is to temporarily comment out (using "<!-- -->") the identity section in the web.config and then IIS 7 Manager will allow you to view/modify authentication section. Then remember to uncomment the section in web.config.

IIS 7 authorization rules not synced with web.config

Is there something wrong with my IIS setup? I have a 64-bit IIS 7.0 installation. My site has a web.config, with authorization rules specified.
In IIS Manager, when I open the authorization rules, I had expected the rules from the web.config to be displayed and be editable, with any changes I make synced back to the web.config. This does not seem to be the case.
From what I can tell, the site obeys whatever rules are put into the authorization settings in IIS, but completely ignores any rules that are put into the web.config.
Is this correct? How is this supposed to work? Is there some way to force a sync?
It appears that IIS puts the rules into the system.webserver section of the web.config.

httpModules URL rewriter works on Visual Studios Dev Server, but not on IIS 7.5

In my web.config, I have a custom Url rewriter class that takes query strings such as /movies/godzilla.aspx and turns it into /template.aspx?id=1234
The rewriter works fine when I run it locally on the built in web server in Visual Studios, but when I put it on IIS 7.5 and try to access the page using the friendly name, I get a message saying the connection was reset and have to do an iisreset to get the site back online. The page is perfectly accessible from the server using the query string URL.
Here is a snippet of my web.config:
<system.web>
<httpModules>
<add name="ApFriendlyURL" type="FriendlyURL" />
</httpModules>
....
</system.web>
I'm confused as to why this works when running on the Dev Server in Visual Studios but not on IIS. I've played around with the settings in IIS, but I can't seem to find anything that would let me use the FriendlyURL class as the rewriter
HTTP modules in IIS 7.5 have to be configured in the system.webServer/modules section. Just copy your module definition there.
http://msdn.microsoft.com/en-us/library/aa347531(VS.90).aspx
Please be aware of the possible problem with the duplicate module configuration. If this is so, you turn off the integrated mode configuration:
http://www.iis.net/ConfigReference/system.webServer/validation
If you are working on .NET 2.0 application you should enable "Integrated mode" in your AppPool setings.

Resources