Last post Jan 24, 2009 11:08 AM by Super_Julius
Dec 03, 2007 12:08 AM|aboreham|LINK
Using old ASMX services, the web reference information was stored in web.config under <appSettings>.
I configured my WDP to replace the <system.serviceModel> with the contents of another config file (i.e. in the WDP GUI, I'm using system.serviceModel=System.ServiceModel.Test.config;)
When I build the WDP, I get the following error:
web.config(1): error WDP00002: missing section system.serviceModel
But it works with the replacement of appSettings.
Why doesn't this work? Is it because WDP cannot handle elements in web.config that contain a dot (e.g. system(DOT)serviceModel)?
May 27, 2008 09:03 AM|Super_Julius|LINK
I encountered the same problem and it took me sometimes to figure it out so I thought it might help somebody else.
In fact you cannot replace the whole system.serviceModel because it's not a configuration section, but a configuration section group...and WDP can only replace configuration sections and not section groups. What you can do though is replacing a section within
the section group.
Within system.serviceModel, you can replace the client configuration section for instance using the replacement string "system.serviceModel/client=system.serviceModel.client.dev.config;"
Hope this helps
Nov 13, 2008 12:09 PM|anotherbug|LINK
Jan 20, 2009 08:28 PM|balexandre|LINK
can you guys place the code to add the dll into the web.config please?
Jan 21, 2009 02:30 AM|Super_Julius|LINK
I am not sure to understand your question.
The thread was about using the Microsoft Web Deployment Project, and more precisely using its configuration replacement feature to update the serviceModel configuration section.
Please be more specific if you need any help
Jan 24, 2009 03:18 AM|balexandre|LINK
It's because I get an error reading the Microsoft.ServiceModel.Web (WCF RESTful Services) and that could be a solution to me.
it is not reading the dll file from the BIN folder and I thought that I should mention it into the web.config as well.
The type or namespace name 'ServiceModel' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Jan 24, 2009 11:08 AM|Super_Julius|LINK
I have not used the WCF Rest Starter kit yet, so I cannot be of much help but from the error it clearly says thait it cannot find the assembly.
I would check the following:
1. Have you checked if the System.ServiceModel assembly was not still required for Microsoft.ServiceModel.Web to work?
2. Is not Microsoft.ServiceModel.Web requiring anything special in the web.config to work (i.e. a specific configSection)?
3. Is the host on which you deploy have the WCF Rest Starter kit installed?
Hope you will find what goes wrong. Good luck