Windows Azure Emulator is a tool that provide us the ability to debug and run application for Windows Azure on our machine.
When we have a WEB application, by default when we run our application on the local machine will use IIS Express. 90% of the people will say: That’s great, I don’t need a normal IIS for this. This is true until you use features of IIS that are not supported on IIS Express.
For example “IPSecurity” section, that give us the ability to control what IPs we allow to access our application. If we run a web application into a web role with this configuration, we will receive a 500 error code. After this we will spend 1h to activate the feature that allow us to see the custom error and in the end we will see 500.19 internal error: “This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default…”.
What should we do next? An option is to comment the configuration but WAIT. If we open the properties of Azure project, under the Web section we will see that we can select if we want to use IIS Express of the normal IIS. By default IIS Express is selected.
I highly recommend to not use IIS Express in the development phase, especially when you don’t have a simple web application.
Enjoy 500 errors!
When we have a WEB application, by default when we run our application on the local machine will use IIS Express. 90% of the people will say: That’s great, I don’t need a normal IIS for this. This is true until you use features of IIS that are not supported on IIS Express.
For example “IPSecurity” section, that give us the ability to control what IPs we allow to access our application. If we run a web application into a web role with this configuration, we will receive a 500 error code. After this we will spend 1h to activate the feature that allow us to see the custom error and in the end we will see 500.19 internal error: “This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default…”.
What should we do next? An option is to comment the configuration but WAIT. If we open the properties of Azure project, under the Web section we will see that we can select if we want to use IIS Express of the normal IIS. By default IIS Express is selected.
I highly recommend to not use IIS Express in the development phase, especially when you don’t have a simple web application.
Enjoy 500 errors!
Comments
Post a Comment