Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: web.config vs. wc.ini

$
0
0
Re: web.config vs. wc.ini
Web Connection 5.0
Re: web.config vs. wc.ini
Apr. 22, 2013
12:03 pm
3RN0PU7ERShow this entire thread in new window
Gratar Image based on email address
From:Kirk Allen
To:Rick Strahl
That makes sense. I think I was confused because there WERE Web Connection settings in my web.config file, but then I remembered I originally set up the site using the managed module, then switched to ISAPI when I ran into problems. Those settings must have been placed there during the time it was using the managed module.

Thanks for the assist,
Kirk


Hi Kirk,

If you're running ISAPI the INI file is used for Web Connection settings. If running the managed module web.config is used for Web Connection settings.

For development with Visual Studio web.config is used to hold some environment settings - those settings are not required at runtime.

However, IIS 7 stores virtual directory configuration information in web.config. So even if you're running ISAPI, any IIS settings like script maps, permission settings (anything from the Managemnet Console) will end up in Web.config. On IIS 7 you will most likely have a web.config file, but if you're using ISAPI messaging no Web Connection settings are stored there.

This is actually a very good thing although it can seem confusing. On IIS 7 all local configuration settings can be localized in a web.config file that travels with the application and can be xcopy deployed. Especially if you use the managed module no further configuration beyond copying the web.config file to the server is required as virtuals, scriptmaps and permissions are all set in the .config file.

If you're runing on IIS 7 and you are running your application in a single virtual directory (or the root) using the managed module is highly recommended as it's more stable, slightly more efficient and tuned for IIS 7 and later.

I hope this helps,

+++ Rick ---


Hello.

I recently upgraded from 4.xx to 5.65 and I'm a little confused about which configuration files Web Connection uses and when it uses them. I'm running 5.65, Win2008/IIS7, using ISAPI script-mapping and not the managed handler.

Does WC use the wc.ini file or the web.config file, or both? And what about the myserver.ini file?

Thanks!
Kirk Allen





Viewing all articles
Browse latest Browse all 10393

Trending Articles