I am running a CSLA 3.x project with a WCF data portal on my Windows XP Pro box running IIS 5.0 and everything works fine.
On my new Windows 7 box running IIS 7.5 I cannot run the data portal and am running into numerous errors - which I believe are all related to configuration/permission issues. Here is an example of one of the errors I have seen:
|Config Error||There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined|
7: <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
8: <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
9: <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=22.214.171.124, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
Apparently when I run the data portal code on IIS 5.0 in Windows XP this config key is fine, but on IIS 7.5 it says this key is a duplicate.
Are there step-by-step instructions anywhere for configuring the CSLA WCF data portal on IIS 7.5?
I often find it easier to just create a new empty web project that targets the current IIS version, lettting Visual Studio do the right thing...
Remember that the data portal has very, very few requirements.
At least with ASP.NET 4 your web.config can be pretty much empty beyond the data portal endpoint configuration.
Copyright (c) Marimer LLC