The execution environment is the web, so you need to have the bits setup in web.config. The generation (design-time) environment is your class project - so when you generate up the code it needs to see the config.
You can use a config file and set the "src" tag if you like, but I'm not sure what the problem is here - it's just text...
Find a bug? Create a Work Item for a fast response.. Want to help? Create a patch for us!